Add sharness test for init --profile
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Jun 21, 2017 at 17:48 UTC
184c7a0126f69943cefa729736b3596d40ab36cd
1 file changed
+15
test/sharness/t0020-init.sh
+15
@@ -126,6 +126,21 @@ test_expect_success "clean up ipfs dir" '
126
rm -rf "$IPFS_PATH"
127
'
128
129
+# test init profiles
130
+test_expect_success "'ipfs init --profile' succeeds" '
131
+ BITS="1024" &&
132
+ ipfs init --bits="$BITS" --profile=server
133
+'
134
+
135
+test_expect_success "'ipfs config Swarm.AddrFilters' looks good" '
136
+ ipfs config Swarm.AddrFilters > actual_config &&
137
+ test $(cat actual_config | wc -l) = 17
138
+'
139
+
140
+test_expect_success "clean up ipfs dir" '
141
+ rm -rf "$IPFS_PATH"
142
+'
143
+
144
test_init_ipfs
145
146
test_launch_ipfs_daemon