sharness: add `files ls` test (without `-l`)
License: MIT Signed-off-by: Lucas Molas <schomatis@gmail.com>
Lucas Molas committed
Jul 1, 2018 at 10:35 UTC
cbc239ce44ab79f3b33d56cafb1906bfe47e5857
1 file changed
+6
test/sharness/t0250-files-api.sh
+6
@@ -192,6 +192,12 @@ test_files_api() {
192
test_cmp ls_l_expected ls_l_actual
193
'
194
195
+ test_expect_success "file shows up with the correct name" '
196
+ echo "file1" > ls_l_expected &&
197
+ ipfs files ls /cats/file1 > ls_l_actual &&
198
+ test_cmp ls_l_expected ls_l_actual
199
+ '
200
+
201
test_expect_success "can stat file $EXTRA" '
202
ipfs files stat /cats/file1 > file1stat_orig
203
'