legacy_test.sh (139969) | legacy_test.sh (192862) |
---|---|
1#!/bin/sh 2 3#- 4# Copyright (c) June 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27 28# 29# TEST.sh - check if test(1) or builtin test works 30# | 1#!/bin/sh 2 3#- 4# Copyright (c) June 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. 5# All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27 28# 29# TEST.sh - check if test(1) or builtin test works 30# |
31# $FreeBSD: head/bin/test/TEST.sh 139969 2005-01-10 08:39:26Z imp $ | 31# $FreeBSD: head/bin/test/TEST.sh 192862 2009-05-26 22:33:10Z jilles $ |
32 33# force a specified test program, e.g. `env test=/bin/test sh TEST.sh' 34: ${test=test} 35 36ERROR=0 FAILED=0 37 38t () 39{ --- 88 unchanged lines hidden (view full) --- 128 129t 1 '"" -o ""' 130t 1 '"" -a ""' 131t 1 '"a" -a ""' 132t 0 '"a" -a ! ""' 133t 1 '""' 134t 0 '! ""' 135 | 32 33# force a specified test program, e.g. `env test=/bin/test sh TEST.sh' 34: ${test=test} 35 36ERROR=0 FAILED=0 37 38t () 39{ --- 88 unchanged lines hidden (view full) --- 128 129t 1 '"" -o ""' 130t 1 '"" -a ""' 131t 1 '"a" -a ""' 132t 0 '"a" -a ! ""' 133t 1 '""' 134t 0 '! ""' 135 |
136t 0 '!' 137t 0 '\(' 138t 0 '\)' 139 140t 1 '\( = \)' 141t 0 '\( != \)' 142t 0 '\( ! \)' 143t 0 '\( \( \)' 144t 0 '\( \) \)' 145t 0 '! = !' 146t 1 '! != !' 147t 1 '-n = \)' 148t 0 '! != \)' 149t 1 '! = a' 150t 0 '! != -n' 151t 0 '! -c /etc/passwd' 152 153t 0 '! \( = \)' 154t 1 '! \( != \)' 155t 1 '! = = =' 156t 0 '! = = \)' 157t 0 '! "" -o ""' 158t 1 '! "x" -o ""' 159t 1 '! "" -o "x"' 160t 1 '! "x" -o "x"' 161t 0 '\( -f /etc/passwd \)' 162t 1 '\( ! = \)' 163t 0 '\( ! "" \)' 164t 1 '\( ! -e \)' 165 166t 0 '0 -eq 0 -a -d /' 167t 0 '-s = "" -o "" = ""' 168t 0 '"" = "" -o -s = ""' 169t 1 '-s = "" -o -s = ""' 170t 0 '-z x -o x = "#" -o x = x' 171t 1 '-z y -o y = "#" -o y = x' 172t 0 '0 -ne 0 -o ! -f /' 173t 0 '1 -ne 0 -o ! -f /etc/passwd' 174t 1 '0 -ne 0 -o ! -f /etc/passwd' 175 |
|
136echo "" 137echo "Syntax errors: $ERROR Failed: $FAILED" | 176echo "" 177echo "Syntax errors: $ERROR Failed: $FAILED" |