mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-25 05:32:20 +00:00
Updated tests to find ENV problem.
This commit is contained in:
parent
bdcf96401e
commit
3699a547b7
Binary file not shown.
@ -19,6 +19,11 @@ AUTO 4,1
|
|||||||
#
|
#
|
||||||
# Now call Argtest Sub Script
|
# Now call Argtest Sub Script
|
||||||
#
|
#
|
||||||
|
echo "Here are the variables that are SET" >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
|
echo >> ${Log}
|
||||||
|
SET >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
. ARGTEST2 A 1 B 2 C 3 Hello $$ 82 Tenth
|
. ARGTEST2 A 1 B 2 C 3 Hello $$ 82 Tenth
|
||||||
MAN
|
MAN
|
||||||
TEXT /MAKE/USR/SHARE/TESTS/ARGTEST
|
TEXT /MAKE/USR/SHARE/TESTS/ARGTEST
|
||||||
|
@ -18,6 +18,17 @@ AUTO 4,1
|
|||||||
#
|
#
|
||||||
# $0 should be name of script
|
# $0 should be name of script
|
||||||
#
|
#
|
||||||
|
ECHO ARRIVED AT ARGTEST2
|
||||||
|
PAUSE
|
||||||
|
echo >> ${Log}
|
||||||
|
ECHO $1 $2 $3 $4 $5 $6 $7 $8 $9 $# $*
|
||||||
|
# >> ${Log}
|
||||||
|
echo >> ${Log}
|
||||||
|
echo "Here are the variables that are SET" >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
|
echo >> ${Log}
|
||||||
|
SET >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
IF [ -Z $T ]
|
IF [ -Z $T ]
|
||||||
SET T = 0
|
SET T = 0
|
||||||
FI
|
FI
|
||||||
@ -161,8 +172,7 @@ SET T = $T + 1
|
|||||||
IF [ $8 -EQ $$ ]
|
IF [ $8 -EQ $$ ]
|
||||||
IF [ -N $Log ]
|
IF [ -N $Log ]
|
||||||
SET P = $P + 1
|
SET P = $P + 1
|
||||||
echo "ARGTEST Arg 8 Passed"
|
echo "ARGTEST Arg 8 Passed" >> ${Log}
|
||||||
>> ${Log}
|
|
||||||
FI
|
FI
|
||||||
echo "ARGTEST Arg 8 Passed"
|
echo "ARGTEST Arg 8 Passed"
|
||||||
ELSE
|
ELSE
|
||||||
|
86
TESTS/BT.txt
Normal file
86
TESTS/BT.txt
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
NEW
|
||||||
|
PREFIX
|
||||||
|
AUTO 4,1
|
||||||
|
#!/BIN/SH
|
||||||
|
#
|
||||||
|
# This is the master script that calls all test scripts.
|
||||||
|
# It keeps a count of passed/failed tests and writes results
|
||||||
|
# to a log file.
|
||||||
|
#
|
||||||
|
# First Clear the Screen
|
||||||
|
echo "\f"
|
||||||
|
#
|
||||||
|
echo "\n\n Build Test Script\n\n"
|
||||||
|
#
|
||||||
|
# Now get the build Number
|
||||||
|
#
|
||||||
|
READ -P " Enter Build Number: " B
|
||||||
|
ECHO
|
||||||
|
echo "\n\n Running All Tests for Build: $B"
|
||||||
|
# Create Log File for tests VAR/LOG/TESTS/BUILD.BuildNo
|
||||||
|
#
|
||||||
|
# Write Header To Log
|
||||||
|
#
|
||||||
|
SET Log = "${ROOT}VAR/LOG/TESTS/BUILD.${B}"
|
||||||
|
ECHO > ${Log}
|
||||||
|
ECHO >> ${Log}
|
||||||
|
ECHO " Build Test Suite" >> ${Log}
|
||||||
|
ECHO "\nBuild No: ${B}" >> ${Log}
|
||||||
|
ECHO -N " Date: " >> ${Log}
|
||||||
|
DATE >> ${Log}
|
||||||
|
ECHO -N " Time: " >> ${Log}
|
||||||
|
TIME >> ${Log}
|
||||||
|
ECHO "----------------------------------------\n" >> ${Log}
|
||||||
|
#
|
||||||
|
# Capture Mem to Log
|
||||||
|
#
|
||||||
|
MEM >> ${Log}
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
#
|
||||||
|
# First Create and Set the Test Counters
|
||||||
|
#
|
||||||
|
SET T = 1
|
||||||
|
SET P = 0
|
||||||
|
SET F = 0
|
||||||
|
#
|
||||||
|
# Run The Tests using the current shell (. test)
|
||||||
|
#
|
||||||
|
. BADSHTEST
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
ECHO "\n Calling VTTEST\n" >> ${Log}
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
. VTTEST
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
ECHO "\n Calling ARGTEST\n" >> ${Log}
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
. ARGTEST
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
#
|
||||||
|
# End of Tests
|
||||||
|
#
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
ECHO "\n All Tests Run\n" >> ${Log}
|
||||||
|
echo "----------------------------------------"
|
||||||
|
echo " Total Tests: ${T}"
|
||||||
|
echo " Tests Passed: ${P}"
|
||||||
|
echo " Tests Failed: ${F}"
|
||||||
|
echo "----------------------------------------\n"
|
||||||
|
#echo
|
||||||
|
echo "\n----------------------------------------" >> ${Log}
|
||||||
|
echo " Total Tests: ${T}" >> ${Log}
|
||||||
|
echo " Tests Passed: ${P}" >> ${Log}
|
||||||
|
echo " Tests Failed: ${F}" >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
|
echo
|
||||||
|
echo "Here are the variables that are still SET" >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
|
echo >> ${Log}
|
||||||
|
SET >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
|
SET T =
|
||||||
|
SET P =
|
||||||
|
SET F =
|
||||||
|
SET B =
|
||||||
|
SET Log =
|
||||||
|
MAN
|
||||||
|
TEXT /MAKE/USR/SHARE/TESTS/BT
|
@ -58,27 +58,42 @@ SET T = 1
|
|||||||
SET P = 0
|
SET P = 0
|
||||||
SET F = 0
|
SET F = 0
|
||||||
|
|
||||||
|
echo "Here are the variables that are SET" >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
|
echo >> ${Log}
|
||||||
|
SET >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
#
|
#
|
||||||
# Run The Tests using the current shell (. test)
|
# Run The Tests using the current shell (. test)
|
||||||
#
|
#
|
||||||
. BADSHTEST
|
. BADSHTEST
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
ECHO "\n Calling ECHOTEST\n" >> ${Log}
|
echo "Here are the variables that are SET" >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
echo "----------------------------------------" >> ${Log}
|
||||||
. ECHOTEST
|
echo >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
SET >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
ECHO "\n Calling VTTEST\n" >> ${Log}
|
ECHO "\n Calling VTTEST\n" >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
. VTTEST
|
. VTTEST
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
ECHO "\n Calling CATTEST\n" >> ${Log}
|
echo "Here are the variables that are SET" >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
echo "----------------------------------------" >> ${Log}
|
||||||
. CATTEST
|
echo >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
SET >> ${Log}
|
||||||
|
echo "----------------------------------------" >> ${Log}
|
||||||
ECHO "\n Calling ARGTEST\n" >> ${Log}
|
ECHO "\n Calling ARGTEST\n" >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
. ARGTEST
|
. ARGTEST
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
ECHO "\n Calling ECHOTEST\n" >> ${Log}
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
. ECHOTEST
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
ECHO "\n Calling CATTEST\n" >> ${Log}
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
|
. CATTEST
|
||||||
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
ECHO "\n Calling IFLEVEL\n" >> ${Log}
|
ECHO "\n Calling IFLEVEL\n" >> ${Log}
|
||||||
ECHO "\n----------------------------------------\n" >> ${Log}
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
||||||
. IFLEVEL
|
. IFLEVEL
|
||||||
|
Loading…
Reference in New Issue
Block a user