Updated MAKE with new ENVTEST2 and IFLEVEL.

This commit is contained in:
Patrick Kloepfer 2019-03-03 21:43:07 -05:00
parent 2515e8d0cf
commit d0a92f3b9b
4 changed files with 63 additions and 1 deletions

Binary file not shown.

23
TESTS/ENVTEST2.txt Normal file
View File

@ -0,0 +1,23 @@
NEW
PREFIX
AUTO 4,1
#!/BIN/SH
read -P "String size: " Z
IF [ $Z = "20" ]
SET A = "A"
ELSE
IF [ $Z = "40" ]
SET A = "AA"
ELSE
IF [ $Z = "60" ]
SET A = "AAA"
ELSE
ECHO "\n\nYou did not enter a valid size"
EXIT
FI
FI
FI
ECHO
ECHO "I reached Here"
MAN
TEXT /MAKE/USR/SHARE/TESTS/ENVTEST2

39
TESTS/IFLEVEL.txt Normal file
View File

@ -0,0 +1,39 @@
NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
# If Level test
#
READ -P "Enter a number 1 through 7: " ANum
IF [ $ANum = "1" ]
ECHO "1 Typed"
ELSE
IF [ $ANum = "2" ]
ECHO "2 Typed"
ELSE
IF [ $ANum = "3" ]
ECHO "3 Typed"
ELSE
IF [ $ANum = "4" ]
ECHO "4 Typed"
ELSE
IF [ $ANum = "5" ]
ECHO "5 Typed"
ELSE
IF [ $ANum = "6" ]
ECHO "6 Typed"
ELSE
IF [ $ANum = "7" ]
ECHO "7 Typed"
ELSE
ECHO "Bad Choice Typed"
FI
FI
FI
FI
FI
FI
FI
MAN
TEXT /MAKE/USR/SHARE/TESTS/IFLEVEL

View File

@ -16,7 +16,7 @@ ECHO "\f\n MD5 Test"
ECHO "\n\nThis script tests the MD5 command to make sure"
ECHO "it is properly generating and returning correct"
ECHO "MD5 values.\n\n"
SET Result = `MD5 -D $TestPhrase`
SET Result = `MD5 -D "$TestPhrase"`
IF [ $Result = $CorrectValue ]
ECHO "This Test Passed"
ELSE