summaryrefslogtreecommitdiff
path: root/tests/ls/time-1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-12-08 17:05:59 +0000
committerJim Meyering <jim@meyering.net>1999-12-08 17:05:59 +0000
commit6845fc7c963e0c38c0f37d3fa66c9ad81a8cc088 (patch)
tree22a793c191b7582f327797f8930c6e86814f2a50 /tests/ls/time-1
parent84339c827f4ff0069e16940b7ae48564d3dae61f (diff)
downloadcoreutils-6845fc7c963e0c38c0f37d3fa66c9ad81a8cc088.tar.xz
Test more of the framework (touch's -a and -m
options) before running the actual ls test.
Diffstat (limited to 'tests/ls/time-1')
-rwxr-xr-xtests/ls/time-128
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/ls/time-1 b/tests/ls/time-1
index b64ae409a..ff2a4a89e 100755
--- a/tests/ls/time-1
+++ b/tests/ls/time-1
@@ -45,6 +45,34 @@ sleep 2
# Create a link, updating c's ctime.
ln c d || framework_failure=1
+# Before we go any further, verify that touch's -m option works.
+set -- `ls --full -l a`
+case "$*" in
+ *'Jan 15 23:00:00 1998 a') ;;
+ *)
+ # This might be what's making HPUX 11 systems fail this test.
+ cat >&2 << \EOF
+A basic test of touch -a has just failed, so the subsequent
+tests in this file will not be run.
+EOF
+ framework_failure=1
+ ;;
+esac
+
+# Now test touch's -a option.
+set -- `ls --full -lu a`
+case "$*" in
+ *'Jan 14 11:00:00 1998 a') ;;
+ *)
+ # This might be what's making HPUX 11 systems fail this test.
+ cat >&2 << \EOF
+A basic test of touch -m has just failed, so the subsequent
+tests in this file will not be run.
+EOF
+ framework_failure=1
+ ;;
+esac
+
if test $framework_failure = 1; then
echo 'failure in testing framework'
exit 1