mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 02:40:11 +08:00
sharness: add files ls test (without -l)
License: MIT Signed-off-by: Lucas Molas <schomatis@gmail.com>
This commit is contained in:
parent
dfe64980ce
commit
cbc239ce44
@ -192,6 +192,12 @@ test_files_api() {
|
||||
test_cmp ls_l_expected ls_l_actual
|
||||
'
|
||||
|
||||
test_expect_success "file shows up with the correct name" '
|
||||
echo "file1" > ls_l_expected &&
|
||||
ipfs files ls /cats/file1 > ls_l_actual &&
|
||||
test_cmp ls_l_expected ls_l_actual
|
||||
'
|
||||
|
||||
test_expect_success "can stat file $EXTRA" '
|
||||
ipfs files stat /cats/file1 > file1stat_orig
|
||||
'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user