mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 03:47:45 +08:00
test/sharness: Added tests for 'ipfs add -w'
This commit is contained in:
parent
1ad5b345b8
commit
54fef5ea96
@ -165,6 +165,16 @@ test_expect_success FUSE,EXPENSIVE "cat ipfs/bigfile looks good" '
|
||||
test_cmp sha1_expected sha1_actual
|
||||
'
|
||||
|
||||
test_expect_success "ipfs add -w succeeds" '
|
||||
ipfs add -w mountdir/hello.txt >actual
|
||||
'
|
||||
|
||||
test_expect_success "ipfs add -w output looks good" '
|
||||
HASH="QmVJfrqd4ogGZME6LWkkikAGddYgh9dBs2U14DHZZUBk7W" &&
|
||||
echo "added "$HASH/hello.txt" mountdir/hello.txt" >expected &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_kill_ipfs_daemon
|
||||
|
||||
test_done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user