summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-05-31 22:54:20 +0000
committerjilles <jilles@FreeBSD.org>2013-05-31 22:54:20 +0000
commit47380cf857ccbe869ba42827d5027c4b41d6a7ef (patch)
treed17942ed35ffaf8b78680c77346cbe0799600bda /tools/regression
parentb7eb49ed335865a47f466f72d5ce6597dde950f0 (diff)
downloadFreeBSD-src-47380cf857ccbe869ba42827d5027c4b41d6a7ef.zip
FreeBSD-src-47380cf857ccbe869ba42827d5027c4b41d6a7ef.tar.gz
test: Remove -ntXY and -otXY primaries.
This reverts commit r247274. As maintainer of sh, I disapprove of this feature addition. It is too specific and can be done without easily using find(1) or stat(1). I will add some hints to the test(1) man page shortly. In general, FreeBSD sh is not the place to invent new shell language features. This is how it has been maintained and adding features randomly does not work with that. The new syntax (e.g. [ FILE1 -ntca FILE2 ]) looks cryptic to me.
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/bin/test/regress.sh65
1 files changed, 1 insertions, 64 deletions
diff --git a/tools/regression/bin/test/regress.sh b/tools/regression/bin/test/regress.sh
index 117a7e2..9229551 100644
--- a/tools/regression/bin/test/regress.sh
+++ b/tools/regression/bin/test/regress.sh
@@ -52,7 +52,7 @@ t ()
}
count=0
-echo "1..266"
+echo "1..130"
t 0 'b = b'
t 0 'b == b'
@@ -194,66 +194,3 @@ t 1 '\( ! -a \)'
t 0 '\( -n -o \)'
t 1 '\( -z -o \)'
t 1 '\( ! -o \)'
-
-# Test all file timestamp comparison operators
-s() {
- t ${1} "${35} -nt ${36}"
- t ${2} "${35} -ntaa ${36}"
- t ${3} "${35} -ntab ${36}"
- t ${4} "${35} -ntac ${36}"
- t ${5} "${35} -ntam ${36}"
- t ${6} "${35} -ntba ${36}"
- t ${7} "${35} -ntbb ${36}"
- t ${8} "${35} -ntbc ${36}"
- t ${9} "${35} -ntbm ${36}"
- t ${10} "${35} -ntca ${36}"
- t ${11} "${35} -ntcb ${36}"
- t ${12} "${35} -ntcc ${36}"
- t ${13} "${35} -ntcm ${36}"
- t ${14} "${35} -ntma ${36}"
- t ${15} "${35} -ntmb ${36}"
- t ${16} "${35} -ntmc ${36}"
- t ${17} "${35} -ntmm ${36}"
- t ${18} "${35} -ot ${36}"
- t ${19} "${35} -otaa ${36}"
- t ${20} "${35} -otab ${36}"
- t ${21} "${35} -otac ${36}"
- t ${22} "${35} -otam ${36}"
- t ${23} "${35} -otba ${36}"
- t ${24} "${35} -otbb ${36}"
- t ${25} "${35} -otbc ${36}"
- t ${26} "${35} -otbm ${36}"
- t ${27} "${35} -otca ${36}"
- t ${28} "${35} -otcb ${36}"
- t ${29} "${35} -otcc ${36}"
- t ${30} "${35} -otcm ${36}"
- t ${31} "${35} -otma ${36}"
- t ${32} "${35} -otmb ${36}"
- t ${33} "${35} -otmc ${36}"
- t ${34} "${35} -otmm ${36}"
-}
-
-a=/tmp/test$$.1
-b=/tmp/test$$.2
-trap "rm -f $a $b" EXIT
-
-# Tests 131-164
-s 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $a $b
-
-touch $a
-# Tests 165-198
-s 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $a $b
-
-sleep 2 # Ensure $b is newer than $a
-touch $b
-# Tests 199-232
-s 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 $a $b
-
-sleep 2
-echo >$b # Updates mtime & ctime
-sleep 2
-touch -A 01 -a $b
-
-# $b now has ctime > mtime > atime > btime
-# Tests 233-266
-s 1 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 0 0 0 1 0 0 1 1 1 1 1 1 0 1 $b $b
OpenPOWER on IntegriCloud