mirror of
https://github.com/A2osX/A2osX.git
synced 2024-06-03 05:29:38 +00:00
Updated MAKE with new ENVTEST2 and IFLEVEL.
This commit is contained in:
parent
2515e8d0cf
commit
d0a92f3b9b
Binary file not shown.
23
TESTS/ENVTEST2.txt
Normal file
23
TESTS/ENVTEST2.txt
Normal 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
39
TESTS/IFLEVEL.txt
Normal 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
|
|
@ -16,7 +16,7 @@ ECHO "\f\n MD5 Test"
|
||||||
ECHO "\n\nThis script tests the MD5 command to make sure"
|
ECHO "\n\nThis script tests the MD5 command to make sure"
|
||||||
ECHO "it is properly generating and returning correct"
|
ECHO "it is properly generating and returning correct"
|
||||||
ECHO "MD5 values.\n\n"
|
ECHO "MD5 values.\n\n"
|
||||||
SET Result = `MD5 -D $TestPhrase`
|
SET Result = `MD5 -D "$TestPhrase"`
|
||||||
IF [ $Result = $CorrectValue ]
|
IF [ $Result = $CorrectValue ]
|
||||||
ECHO "This Test Passed"
|
ECHO "This Test Passed"
|
||||||
ELSE
|
ELSE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user