A2osX/TESTS/BUILDTEST.txt
2019-11-29 15:29:25 -05:00

141 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"
#
# Check to see if VAR then VAR/LOG exits, if not create
#
IF [ -D ${ROOT}VAR ]
ELSE
MD ${ROOT}VAR
FI
IF [ -D ${ROOT}VAR/LOG ]
ELSE
MD ${ROOT}VAR/LOG
FI
IF [ -D ${ROOT}VAR/LOG/TESTS ]
ELSE
MD ${ROOT}VAR/LOG/TESTS
FI
# 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" >> ${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 ECHOTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. ECHOTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling VTTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. VTTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling CATTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. CATTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling ARGTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. ARGTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling IFLEVEL\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. IFLEVEL
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling MD5TEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. MD5TEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling IFZNTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. IFZNTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling IFFILETEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. IFFILETEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling IFSTRTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. IFSTRTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling IFNUMTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. IFNUMTEST
ECHO "\n----------------------------------------\n" >> ${Log}
MEM
PAUSE
ECHO "\n Calling IFANDORTEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. IFANDORTEST
ECHO "\n----------------------------------------\n" >> ${Log}
ECHO "\n Calling WHILETEST\n" >> ${Log}
ECHO "\n----------------------------------------\n" >> ${Log}
. WHILETEST
#
# 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/BUILDTEST