github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/test/sharness/t0070-user-config.sh (about) 1 #!/bin/sh 2 # 3 # Copyright (c) 2015 Brian Holder-Chow Lin On 4 # MIT Licensed; see the LICENSE file in this repository. 5 # 6 7 test_description="Test user-provided config values" 8 9 . lib/test-lib.sh 10 11 test_init_ipfs 12 13 test_expect_success "bootstrap doesn't overwrite user-provided config keys (top-level)" ' 14 ipfs config Foo.Bar baz && 15 ipfs bootstrap rm --all && 16 echo "baz" >expected && 17 ipfs config Foo.Bar >actual && 18 test_cmp expected actual 19 ' 20 21 test_done