2019-01-16 04:50:18 +00:00
|
|
|
|
NEW
|
2019-02-14 04:45:39 +00:00
|
|
|
|
PREFIX
|
2019-01-16 04:50:18 +00:00
|
|
|
|
AUTO 4,1
|
2019-02-18 05:41:06 +00:00
|
|
|
|
#!/BIN/SH
|
2019-01-16 04:50:18 +00:00
|
|
|
|
#
|
|
|
|
|
# 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
|
2019-03-01 18:19:14 +00:00
|
|
|
|
echo "\f"
|
2019-01-16 04:50:18 +00:00
|
|
|
|
#
|
2019-02-26 20:48:30 +00:00
|
|
|
|
echo "\n\n Build Test Script\n\n"
|
2019-01-16 04:50:18 +00:00
|
|
|
|
#
|
|
|
|
|
# Now get the build Number
|
|
|
|
|
#
|
|
|
|
|
READ -P " Enter Build Number: " B
|
2019-03-01 18:19:14 +00:00
|
|
|
|
ECHO
|
2019-01-16 04:50:18 +00:00
|
|
|
|
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}"
|
2019-03-01 18:19:14 +00:00
|
|
|
|
ECHO > ${Log}
|
|
|
|
|
ECHO >> ${Log}
|
|
|
|
|
ECHO " Build Test Suite" >> ${Log}
|
|
|
|
|
ECHO "\nBuild No: ${B}" >> ${Log}
|
2019-01-16 04:50:18 +00:00
|
|
|
|
ECHO -N " Date: " >> ${Log}
|
|
|
|
|
DATE >> ${Log}
|
2019-03-07 02:13:28 +00:00
|
|
|
|
ECHO "----------------------------------------\n" >> ${Log}
|
2019-01-16 04:50:18 +00:00
|
|
|
|
#
|
|
|
|
|
# Capture Mem to Log
|
|
|
|
|
#
|
|
|
|
|
MEM >> ${Log}
|
2019-03-07 02:13:28 +00:00
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-01-16 04:50:18 +00:00
|
|
|
|
#
|
|
|
|
|
# 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
|
2019-03-07 02:13:28 +00:00
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-11 01:20:09 +00:00
|
|
|
|
ECHO "\n Calling ECHOTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
|
|
|
|
. ECHOTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-18 02:50:11 +00:00
|
|
|
|
ECHO "\n Calling VTTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
|
|
|
|
. VTTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-11 01:20:09 +00:00
|
|
|
|
ECHO "\n Calling CATTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
|
|
|
|
. CATTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-18 02:50:11 +00:00
|
|
|
|
ECHO "\n Calling ARGTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
|
|
|
|
. ARGTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling IFLEVEL\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-07 02:13:28 +00:00
|
|
|
|
. IFLEVEL
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling MD5TEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-07 02:13:28 +00:00
|
|
|
|
. MD5TEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling IFZNTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-07 02:13:28 +00:00
|
|
|
|
. IFZNTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling IFFILETEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-10 05:20:43 +00:00
|
|
|
|
. IFFILETEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling IFSTRTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-10 05:20:43 +00:00
|
|
|
|
. IFSTRTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling IFNUMTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-10 05:20:43 +00:00
|
|
|
|
. IFNUMTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling IFANDORTEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-04-07 02:20:39 +00:00
|
|
|
|
. IFANDORTEST
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n Calling WHILETEST\n" >> ${Log}
|
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
2019-03-11 03:49:44 +00:00
|
|
|
|
. WHILETEST
|
2019-01-16 04:50:18 +00:00
|
|
|
|
#
|
|
|
|
|
# End of Tests
|
|
|
|
|
#
|
2019-09-09 02:10:34 +00:00
|
|
|
|
ECHO "\n----------------------------------------\n" >> ${Log}
|
|
|
|
|
ECHO "\n All Tests Run\n" >> ${Log}
|
2019-01-16 04:50:18 +00:00
|
|
|
|
echo "----------------------------------------"
|
|
|
|
|
echo " Total Tests: ${T}"
|
|
|
|
|
echo " Tests Passed: ${P}"
|
|
|
|
|
echo " Tests Failed: ${F}"
|
|
|
|
|
echo "----------------------------------------\n"
|
|
|
|
|
#echo
|
2019-03-07 02:13:28 +00:00
|
|
|
|
echo "\n----------------------------------------" >> ${Log}
|
2019-01-16 04:50:18 +00:00
|
|
|
|
echo " Total Tests: ${T}" >> ${Log}
|
|
|
|
|
echo " Tests Passed: ${P}" >> ${Log}
|
|
|
|
|
echo " Tests Failed: ${F}" >> ${Log}
|
|
|
|
|
echo "----------------------------------------" >> ${Log}
|
2019-04-07 02:20:39 +00:00
|
|
|
|
echo
|
|
|
|
|
echo "Here are the variables that are still SET" >> ${Log}
|
|
|
|
|
echo "----------------------------------------" >> ${Log}
|
|
|
|
|
echo >> ${Log}
|
|
|
|
|
SET >> ${Log}
|
|
|
|
|
echo "----------------------------------------" >> ${Log}
|
2019-03-07 02:13:28 +00:00
|
|
|
|
SET T =
|
|
|
|
|
SET P =
|
|
|
|
|
SET F =
|
|
|
|
|
SET B =
|
|
|
|
|
SET Log =
|
2019-01-16 04:50:18 +00:00
|
|
|
|
MAN
|
2019-02-14 04:45:39 +00:00
|
|
|
|
TEXT /MAKE/USR/SHARE/TESTS/BUILDTEST
|