aboutsummaryrefslogtreecommitdiff
path: root/tests/touch.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
committerRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
commit336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch)
tree9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/touch.test
parenteb830728b12152702c3852d079ad5c8a7f6e709b (diff)
downloadtoybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/touch.test')
-rwxr-xr-xtests/touch.test20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/touch.test b/tests/touch.test
index d6430d0d..d386156d 100755
--- a/tests/touch.test
+++ b/tests/touch.test
@@ -5,26 +5,26 @@
#testing "name" "command" "result" "infile" "stdin"
testing "touch" "touch walrus && [ -e walrus ] && echo yes" "yes\n" "" ""
-testing "touch 1 2 3" "touch one two three && rm one two three && echo yes" "yes\n" \
+testing "1 2 3" "touch one two three && rm one two three && echo yes" "yes\n" \
"" ""
-testing "touch -c" "touch -c walrus && [ -e walrus ] && echo yes" "yes\n" "" ""
-testing "touch -c missing" "touch -c warrus && [ ! -e warrus ] && echo yes" \
+testing "-c" "touch -c walrus && [ -e walrus ] && echo yes" "yes\n" "" ""
+testing "-c missing" "touch -c warrus && [ ! -e warrus ] && echo yes" \
"yes\n" "" ""
-testing "touch -d" \
+testing "-d" \
"touch -d 2009-02-13T23:31:30Z walrus && date -r walrus +%s" \
"1234567890\n" "" ""
-testing "touch -d nanoseconds" \
+testing "-d nanoseconds" \
"touch -d 2009-02-13T23:31:30.123456789Z walrus && date -r walrus +%s.%N" \
"1234567890.123456789\n" "" ""
-testing "touch -r" \
+testing "-r" \
"touch -r walrus walrus2 && date -r walrus2 +%s.%N" \
"1234567890.123456789\n" "" ""
-#testing "touch -a"
-#testing "touch -m"
-#testing "touch -am"
-#testing "touch -t"
+#testing "-a"
+#testing "-m"
+#testing "-am"
+#testing "-t"
rm walrus walrus2