diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/file.test | 2 | ||||
-rwxr-xr-x | tests/rm.test | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/file.test b/tests/file.test index 419da0a6..4b7b5a9e 100755 --- a/tests/file.test +++ b/tests/file.test @@ -17,7 +17,7 @@ BROKEN=$(readlink dangler) testing "directory" "file ." ".: directory\n" "" "" testing "empty" "file empty" "empty: empty\n" "" "" -testing "bash.script" "file bash.script | grep -o ' script"' " script\n" "" "" +testing "bash.script" "file bash.script | grep -o ' script'" " script\n" "" "" testing "bash.script with spaces" "file bash.script2 | grep -o ' script'" " script\n" "" "" testing "env python script" "file env.python.script" "env.python.script: python script\n" "" "" testing "ascii" "file ascii" "ascii: ASCII text\n" "" "" diff --git a/tests/rm.test b/tests/rm.test index 91cd37e1..5ecbfdc1 100755 --- a/tests/rm.test +++ b/tests/rm.test @@ -53,10 +53,10 @@ chmod 777 one 2>/dev/null ; rm -rf one mkdir -p d1 touch d1/f1.txt d1/f2.txt -testing "-rv dir" \ - "rm -rv d1 | sed \"s/emoved/m/;ectory //" | sort" "rm 'd1/f1.txt'\nrm 'd1/f2.txt'\nrmdir 'd1'\n" "" "" +testing "-rv dir" "rm -rv d1 | sed 's/emoved/m/;s/ directory/dir/' | sort" \ + "rm 'd1/f1.txt'\nrm 'd1/f2.txt'\nrmdir 'd1'\n" "" "" rm -rf d1 -touch "'" -testing "-v \\'" "rm -v \\'" "rm '''\n" "" "" # TODO: coreutils escapes quote -rm -f \' +touch "meep" +testing "-v" "rm -v meep | sed 's/emoved/m/'" "rm 'meep'\n" "" "" +rm -f meep |