mirror of
https://github.com/A2osX/A2osX.git
synced 2024-09-10 07:54:37 +00:00
33 lines
810 B
Plaintext
33 lines
810 B
Plaintext
NEW
|
||
PREFIX
|
||
AUTO 4,1
|
||
#!/BIN/SH
|
||
#
|
||
# BADSHTEST tests that the shell detects and properly handles
|
||
# (with error) an invalid shell script. It should return error
|
||
# F6/246. This script calls BADSCRIPT and checks for that code.
|
||
#
|
||
echo "\f\n\n Bad Shell Script Test"
|
||
echo "\n\nThis script tests that the A2osX Shell (SH)"
|
||
echo "correctly tests that scripts contain the correct"
|
||
echo "shell script header #!:/bin/sh"
|
||
echo
|
||
BADSCRIPT 2> /DEV/NULL
|
||
SET R = $?
|
||
IF [ $R -EQ 246 ]
|
||
IF [ -N $Log ]
|
||
SET P = $P + 1
|
||
echo "BADSHTEST Passed" >> ${Log}
|
||
FI
|
||
echo "\nBADSHTEST Passed\n"
|
||
ELSE
|
||
IF [ -N $Log ]
|
||
SET F = $F + 1
|
||
echo "BADSHTEST Failed - $R" >> ${Log}
|
||
FI
|
||
echo "\nBADSHTEST Failed - $R\n"
|
||
FI
|
||
SET R =
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/TESTS/BADSHTEST
|