commit 0482d0499cfaa5e0f1d47cb6431a07aa3679e15b
parent bfbb35d091d986579edafe7b01ce0ce12dc1a27d
Author: lumidify <nobody@lumidify.org>
Date:   Fri, 17 Dec 2021 09:25:13 +0100
Fix tests
Diffstat:
12 files changed, 75 insertions(+), 75 deletions(-)
diff --git a/README b/README
@@ -4,7 +4,7 @@ lumia is meant for managing checksums of files in order to prevent bitrot.
 It does this by storing several special files in each directory to keep
 track of the checksums.
 
-See the perldoc in lumia for the documentation (run perldoc -F lumia.pl).
+See the perldoc in lumia for the documentation (run perldoc -F lumia).
 Alternatively, install it with 'make install' (as root; this just generates
 a man page and copies lumia and the generated man page to the appropriate
 system directories) and then run 'man lumia'.
diff --git a/tests/README b/tests/README
@@ -1,4 +1,4 @@
-All tests must sort the output from lumia.pl since the
+All tests must sort the output from lumia since the
 order in the checksum files is random.
 
 To run all tests, simply run alltests.sh
diff --git a/tests/addcknew.sh b/tests/addcknew.sh
@@ -11,23 +11,23 @@ touch f1
 touch f2
 touch f3
 
-../../lumia.pl addnew | sort
-../../lumia.pl clean -q
-../../lumia.pl addnew -q
+../../lumia addnew | sort
+../../lumia clean -q
+../../lumia addnew -q
 touch -- -bob
-../../lumia.pl checknew
-../../lumia.pl addnew
+../../lumia checknew
+../../lumia addnew
 touch a/fred
-../../lumia.pl checknew a
-../../lumia.pl addnew a
-../../lumia.pl check | sort
+../../lumia checknew a
+../../lumia addnew a
+../../lumia check | sort
 
 echo
 # keep checksum files of subdirectories
-../../lumia.pl clean -q
+../../lumia clean -q
 touch a/bob
-../../lumia.pl addnew a | sort
-../../lumia.pl checknew | sort
+../../lumia addnew a | sort
+../../lumia checknew | sort
 
 cd ..
 rm -r tmp
diff --git a/tests/checkupdate.sh b/tests/checkupdate.sh
@@ -11,11 +11,11 @@ touch f1
 touch f2
 touch f3
 
-../../lumia.pl addnew | sort
+../../lumia addnew | sort
 echo "a" > f1
-../../lumia.pl check -q
-../../lumia.pl update f1 a
-../../lumia.pl check | sort
+../../lumia check -q
+../../lumia update f1 a
+../../lumia check | sort
 
 cd ..
 rm -r tmp
diff --git a/tests/cp.sh b/tests/cp.sh
@@ -11,19 +11,19 @@ touch f1
 touch f2
 touch f3
 
-../../lumia.pl addnew | sort
-../../lumia.pl cp -v f1 bob
-../../lumia.pl cp f2 a
-../../lumia.pl cp f* b
-../../lumia.pl check | sort
+../../lumia addnew | sort
+../../lumia cp -v f1 bob
+../../lumia cp f2 a
+../../lumia cp f* b
+../../lumia check | sort
 echo "a" > f4
-../../lumia.pl addnew
-echo "n" | ../../lumia.pl cp f4 a/f2
+../../lumia addnew
+echo "n" | ../../lumia cp f4 a/f2
 cat a/.lumidify_archive_cksums
-../../lumia.pl check a | sort
-../../lumia.pl cp -vf f4 a/f2
+../../lumia check a | sort
+../../lumia cp -vf f4 a/f2
 cat a/.lumidify_archive_cksums
-../../lumia.pl check | sort
+../../lumia check | sort
 
 cd ..
 rm -r tmp
diff --git a/tests/extract.sh b/tests/extract.sh
@@ -11,9 +11,9 @@ touch f1
 touch f2
 touch f3
 
-../../lumia.pl addnew -q
+../../lumia addnew -q
 mkdir bob
-../../lumia.pl extract bob
+../../lumia extract bob
 find bob | sort
 cat bob/.lumidify_archive_cksums | sort
 
diff --git a/tests/filenames.sh b/tests/filenames.sh
@@ -11,23 +11,23 @@ touch -- ' a/-d'
 touch -- '-b/$\%")'
 cd ..
 
-../lumia.pl addnew tmp | sort
-../lumia.pl check tmp | sort
+../lumia addnew tmp | sort
+../lumia check tmp | sort
 cat 'tmp/ a/.lumidify_archive_cksums' | sort
-../lumia.pl rm 'tmp/ a/-d'
+../lumia rm 'tmp/ a/-d'
 cat 'tmp/ a/.lumidify_archive_cksums' | sort
-../lumia.pl check tmp/-b | sort
-../lumia.pl check tmp | sort
+../lumia check tmp/-b | sort
+../lumia check tmp | sort
 cd tmp
-../../lumia.pl cp -- -b -e
-../../lumia.pl check | sort
+../../lumia cp -- -b -e
+../../lumia check | sort
 # this is sent to /dev/null because Perl produces a
 # warning (see BUGS in the perldoc) which shows the
 # line number and thus would change frequently
-../../lumia.pl mv -- '-c   
+../../lumia mv -- '-c   
 
 ' '-f' > /dev/null 2>&1
-../../lumia.pl check | sort
+../../lumia check | sort
 
 cd ..
 rm -rf tmp
diff --git a/tests/mkdir.sh b/tests/mkdir.sh
@@ -3,9 +3,9 @@
 mkdir tmp
 cd tmp
 
-../../lumia.pl addnew
-../../lumia.pl mkdir -- a b -c
-../../lumia.pl check | sort
+../../lumia addnew
+../../lumia mkdir -- a b -c
+../../lumia check | sort
 
 cd ..
 rm -r tmp
diff --git a/tests/mv.sh b/tests/mv.sh
@@ -6,27 +6,27 @@ mkdir a
 mkdir b
 mkdir c
 
-../../lumia.pl addnew | sort
+../../lumia addnew | sort
 cat .lumidify_archive_dirs | sort
-../../lumia.pl mv a b
+../../lumia mv a b
 cat .lumidify_archive_dirs | sort
 cat b/.lumidify_archive_dirs | sort
-../../lumia.pl mv b b
-../../lumia.pl mv c d
+../../lumia mv b b
+../../lumia mv c d
 cat .lumidify_archive_dirs | sort
 touch tmp1
 touch tmp2
 touch tmp3
-../../lumia.pl addnew | sort
+../../lumia addnew | sort
 cat .lumidify_archive_cksums | sort
-../../lumia.pl mv tmp1 tmp4 | sort
+../../lumia mv tmp1 tmp4 | sort
 cat .lumidify_archive_cksums | sort
-../../lumia.pl mv b tmp2
-../../lumia.pl mv tmp2 tmp3 tmp4
-../../lumia.pl mv tmp3 b tmp4
-echo "y" | ../../lumia.pl mv ./ c
-../../lumia.pl mkdir final
-../../lumia.pl mv * final
+../../lumia mv b tmp2
+../../lumia mv tmp2 tmp3 tmp4
+../../lumia mv tmp3 b tmp4
+echo "y" | ../../lumia mv ./ c
+../../lumia mkdir final
+../../lumia mv * final
 cat .lumidify_archive_dirs | sort
 cat .lumidify_archive_cksums | sort
 cat final/.lumidify_archive_dirs | sort
diff --git a/tests/rm.sh b/tests/rm.sh
@@ -11,17 +11,17 @@ touch f1
 touch f2
 touch f3
 
-../../lumia.pl addnew | sort
-../../lumia.pl rm f1
+../../lumia addnew | sort
+../../lumia rm f1
 # Note: this doesn't check what happens when you try to remove this
 # file without '-f', since it seems to be a paint to try to make
 # rm believe that we're in a tty
 chmod 444 f2
-../../lumia.pl rm -f f2
+../../lumia rm -f f2
 echo "a" > a/meh
-../../lumia.pl addnew a
-../../lumia.pl rm a f3 c
-../../lumia.pl check | sort
+../../lumia addnew a
+../../lumia rm a f3 c
+../../lumia check | sort
 
 cd ..
 rm -rf tmp
diff --git a/tests/rmckold.sh b/tests/rmckold.sh
@@ -11,17 +11,17 @@ touch f1
 touch f2
 touch f3
 
-../../lumia.pl addnew | sort
+../../lumia addnew | sort
 rm f1
-../../lumia.pl check | sort
-../../lumia.pl checkold
-../../lumia.pl rmold
-../../lumia.pl check | sort
+../../lumia check | sort
+../../lumia checkold
+../../lumia rmold
+../../lumia check | sort
 rm -r a
-../../lumia.pl check | sort
-../../lumia.pl checkold
-../../lumia.pl rmold -q
-../../lumia.pl check | sort
+../../lumia check | sort
+../../lumia checkold
+../../lumia rmold -q
+../../lumia check | sort
 
 cd ..
 rm -r tmp
diff --git a/tests/updatespecial.sh b/tests/updatespecial.sh
@@ -10,20 +10,20 @@ mkdir c
 touch f1
 touch f2
 
-../../lumia.pl addnew -q
+../../lumia addnew -q
 rm f2
 echo '4294967295 0 "f1"' > .lumidify_archive_cksums
-../../lumia.pl check -q
-../../lumia.pl updatespecial
-../../lumia.pl check | sort
+../../lumia check -q
+../../lumia updatespecial
+../../lumia check | sort
 rm -r c
 echo '"a"
 "b"' > .lumidify_archive_dirs
-../../lumia.pl check -q
+../../lumia check -q
 cd a
-../../../lumia.pl updatespecial ..
+../../../lumia updatespecial ..
 cd ..
-../../lumia.pl check | sort
+../../lumia check | sort
 
 cd ..
 rm -r tmp