adding tests
License: MIT Signed-off-by: Michael Pfister <pfista@gmail.com>
Michael Pfister committed
Jun 3, 2016 at 13:39 UTC
53ccaa9722d05c7cb03664fb4485ca785fba773b
1 file changed
+15
test/sharness/t0080-repo.sh
+15
@@ -244,6 +244,21 @@ test_expect_success "repo stats are updated correctly" '
244
test $(get_field_num "RepoSize" repo-stats-2) -ge $(get_field_num "RepoSize" repo-stats)
245
'
246
247
+test_expect_success "'ipfs repo version' succeeds" '
248
+ ipfs repo version > repo-version
249
+'
250
+
251
+test_expect_success "repo version came out correct" '
252
+ egrep "^ipfs repo version fs-repo@[0-9]" repo-version >/dev/null
253
+'
254
+
255
+test_expect_success "'ipfs repo version' succeeds" '
256
+ ipfs repo version -q > repo-version-q
257
+'
258
+test_expect_success "repo version came out correct" '
259
+ egrep "^fs-repo@[0-9]" repo-version-q >/dev/null
260
+'
261
+
262
test_kill_ipfs_daemon
263
264
test_done