A2osX/TESTS/CORETEST.txt
2019-03-06 21:13:28 -05:00

58 lines
1.5 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 script performs a series of tests for commands or
# features that are needed by even the most basic tests so
# therefor are CORE to entire test suite.
#
ECHO "\nThis script will test the core commands and features"
ECHO "\needed by most if not all other tests."
ECHO "\nIf you are reading this then the first two tests have"
ECHO "already passed, being able to run scripts with BIN/SH and"
ECHO "the ECHO command."
ECHO "\nPress Return to begin additional tests."
PAUSE
ECHO "\nThe third test is of the Read command.\n"
READ -P "Please enter Y and press return " Z
IF [ $Z = "y" ]
SET Z = "Y"
FI
IF [ $Z != "Y" ]
ECHO "\nFAILED Coretest READ"
ECHO "\nTerminating CORETEST Early\n"
EXIT 99
FI
ECHO "\nNext we test for Return Codes."
ECHO "Note: You may see an error on the screen from running"
ECHO "this test, that is OK. You will be told if the RC"
ECHO "test PASSED or FAILED"
ECHO "\nPress Return to begin RC tests."
PAUSE
RC144
IF [ $? -EQ 144 ]
ECHO "\nPassed RC Test"
ELSE
ECHO "\nFAILED Coretest RC"
ECHO "\nTerminating CORETEST Early\n"
EXIT 99
FI
ECHO "\nNext we test the IF script element."
ECHO "Note this does not test all IF options,"
ECHO "run Internal Command Tests to fully test IF."
ECHO "\nPress Return to begin IF tests."
PAUSE
IF [ -D ${ROOT} ]
ELSE
ECHO "\nFailed Coretest IF -D"
EXIT 99
FI
IF [ -F ${ROOT}A2OSX.SYSTEM ]
ELSE
ECHO "\nFailed Coretest IF -F"
EXIT 99
FI
MAN
TEXT /MAKE/USR/SHARE/TESTS/CORETEST