mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 04:37:30 +08:00
adding tests
License: MIT Signed-off-by: Michael Pfister <pfista@gmail.com>
This commit is contained in:
@ -244,6 +244,21 @@ test_expect_success "repo stats are updated correctly" '
|
|||||||
test $(get_field_num "RepoSize" repo-stats-2) -ge $(get_field_num "RepoSize" repo-stats)
|
test $(get_field_num "RepoSize" repo-stats-2) -ge $(get_field_num "RepoSize" repo-stats)
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success "'ipfs repo version' succeeds" '
|
||||||
|
ipfs repo version > repo-version
|
||||||
|
'
|
||||||
|
|
||||||
|
test_expect_success "repo version came out correct" '
|
||||||
|
egrep "^ipfs repo version fs-repo@[0-9]" repo-version >/dev/null
|
||||||
|
'
|
||||||
|
|
||||||
|
test_expect_success "'ipfs repo version' succeeds" '
|
||||||
|
ipfs repo version -q > repo-version-q
|
||||||
|
'
|
||||||
|
test_expect_success "repo version came out correct" '
|
||||||
|
egrep "^fs-repo@[0-9]" repo-version-q >/dev/null
|
||||||
|
'
|
||||||
|
|
||||||
test_kill_ipfs_daemon
|
test_kill_ipfs_daemon
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
Reference in New Issue
Block a user