2019-02-18 05:41:06 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
|
|
|
|
#!/BIN/SH
|
|
|
|
|
#
|
|
|
|
|
# This menu will display a menu of test options
|
|
|
|
|
# to run, both interactive and batch.
|
|
|
|
|
#
|
2019-03-02 21:19:35 +00:00
|
|
|
|
SET MENULOOP = 1
|
|
|
|
|
WHILE [ $MENULOOP -EQ 1 ]
|
2019-02-18 05:41:06 +00:00
|
|
|
|
ECHO "\f A2osX Test System Menu\n"
|
|
|
|
|
ECHO " 1) Core Tests"
|
2019-02-22 03:47:12 +00:00
|
|
|
|
ECHO " 2) Display Tests (Echo and Read)"
|
2019-02-18 05:41:06 +00:00
|
|
|
|
ECHO " 3) Pathing Tests (CD PWD POPD PUSHD)"
|
|
|
|
|
ECHO " 4) Internal Command Tests"
|
|
|
|
|
ECHO " 5) External Command Tests"
|
|
|
|
|
ECHO " 6) SHTEST"
|
|
|
|
|
ECHO " 7) Copy Test Files\n"
|
|
|
|
|
ECHO " 8) Display Logs\n"
|
|
|
|
|
ECHO " 9) Build Test Suite with Logging"
|
2019-03-02 21:19:35 +00:00
|
|
|
|
ECHO "\n 0) Exit Test System"
|
2019-02-18 05:41:06 +00:00
|
|
|
|
ECHO "\n"
|
|
|
|
|
READ -P "Enter Choice: " Z
|
2019-03-10 05:20:43 +00:00
|
|
|
|
ECHO
|
|
|
|
|
ECHO
|
2019-02-22 03:47:12 +00:00
|
|
|
|
IF [ $Z = "1" ]
|
2019-02-18 05:41:06 +00:00
|
|
|
|
CORETEST
|
|
|
|
|
ELSE
|
2019-02-22 03:47:12 +00:00
|
|
|
|
IF [ $Z = "2" ]
|
2019-02-18 05:41:06 +00:00
|
|
|
|
DISPLAYTEST
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "3" ]
|
|
|
|
|
PATHTEST
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "4" ]
|
|
|
|
|
INTERNALTEST
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "5" ]
|
|
|
|
|
EXTERNALTEST
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "6" ]
|
|
|
|
|
SHTEST
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "7" ]
|
|
|
|
|
COPYTESTS
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "8" ]
|
|
|
|
|
LOG
|
|
|
|
|
ELSE
|
|
|
|
|
IF [ $Z = "9" ]
|
|
|
|
|
BUILDTEST
|
|
|
|
|
ELSE
|
2019-03-02 21:19:35 +00:00
|
|
|
|
IF [ $Z = "0" ]
|
|
|
|
|
SET MENULOOP = 0
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "\n\nInvalid Selection\n"
|
|
|
|
|
ECHO "Press return to continue"
|
|
|
|
|
PAUSE
|
|
|
|
|
FI
|
2019-02-18 05:41:06 +00:00
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
|
|
|
|
FI
|
2019-03-02 21:19:35 +00:00
|
|
|
|
LOOP
|
2019-02-18 05:41:06 +00:00
|
|
|
|
MAN
|
|
|
|
|
TEXT /MAKE/USR/SHARE/TESTS/TESTMENU
|