]> thyrsus.com Git - src.git/commitdiff
ls now has a regression test.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 8 Nov 2014 20:15:29 +0000 (15:15 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 8 Nov 2014 20:15:29 +0000 (15:15 -0500)
srctest

diff --git a/srctest b/srctest
index cfa73d4155242c59c1fb035160701fba34846287..5f964d3a3f415e606df739e11352d722a4abd634 100755 (executable)
--- a/srctest
+++ b/srctest
@@ -184,11 +184,17 @@ if [ -e newname2 -a -e $SANDBOX/newname2,v ]
 then
     echo "srctest: content copy succeeded"
 else
-    echo "src: content move failed"
+    echo "src: content copy failed"
     exit 1
 fi
 
+cat >testfile16<<EOF
+newname1
+newname2
+EOF
+src $TESTOPTS ls | diff -u testfile16 -
+check "ls"
 
-# untested: ls, moveto, copyto
+# untested: moveto, copyto
 
 # end