summaryrefslogtreecommitdiff
path: root/polux/application/busybox/testsuite/touch
diff options
context:
space:
mode:
Diffstat (limited to 'polux/application/busybox/testsuite/touch')
-rw-r--r--polux/application/busybox/testsuite/touch/touch-creates-file2
-rw-r--r--polux/application/busybox/testsuite/touch/touch-does-not-create-file2
-rw-r--r--polux/application/busybox/testsuite/touch/touch-touches-files-after-non-existent-file3
3 files changed, 7 insertions, 0 deletions
diff --git a/polux/application/busybox/testsuite/touch/touch-creates-file b/polux/application/busybox/testsuite/touch/touch-creates-file
new file mode 100644
index 0000000000..4b49354210
--- /dev/null
+++ b/polux/application/busybox/testsuite/touch/touch-creates-file
@@ -0,0 +1,2 @@
+busybox touch foo
+test -f foo
diff --git a/polux/application/busybox/testsuite/touch/touch-does-not-create-file b/polux/application/busybox/testsuite/touch/touch-does-not-create-file
new file mode 100644
index 0000000000..885259286f
--- /dev/null
+++ b/polux/application/busybox/testsuite/touch/touch-does-not-create-file
@@ -0,0 +1,2 @@
+busybox touch -c foo
+test ! -f foo
diff --git a/polux/application/busybox/testsuite/touch/touch-touches-files-after-non-existent-file b/polux/application/busybox/testsuite/touch/touch-touches-files-after-non-existent-file
new file mode 100644
index 0000000000..a869ec267d
--- /dev/null
+++ b/polux/application/busybox/testsuite/touch/touch-touches-files-after-non-existent-file
@@ -0,0 +1,3 @@
+touch -t 198001010000 bar
+busybox touch -c foo bar
+test x"`find bar -mtime -1`" = xbar