mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-25 20:33:13 +00:00
Updated tests and Issue List
This commit is contained in:
parent
59b6971432
commit
2515e8d0cf
Binary file not shown.
@ -3,10 +3,11 @@ NEW
|
|||||||
AUTO 4,1
|
AUTO 4,1
|
||||||
#!/BIN/SH
|
#!/BIN/SH
|
||||||
#SET -X
|
#SET -X
|
||||||
ECHO "\n\nThis is the ENV Test"
|
ECHO "\f\n This is the ENV Test"
|
||||||
ECHO "\n This will stress the ENV space and string handling"
|
ECHO "\n This will stress the ENV space and string handling"
|
||||||
ECHO "\n\nEnter the size of the base string to use."
|
ECHO "\n\nEnter the size of the base string to use."
|
||||||
ECHO "Acceptable values are 20, 40, 60, 80 and 100\n"
|
ECHO "Acceptable values are 20, 40, 60, 80 and 100"
|
||||||
|
ECHO
|
||||||
read -P "String size: " Z
|
read -P "String size: " Z
|
||||||
IF [ $Z = "20" ]
|
IF [ $Z = "20" ]
|
||||||
SET A = "A1B2C3D4E5F6G7H8I9J0"
|
SET A = "A1B2C3D4E5F6G7H8I9J0"
|
||||||
@ -30,6 +31,7 @@ ELSE
|
|||||||
FI
|
FI
|
||||||
FI
|
FI
|
||||||
FI
|
FI
|
||||||
|
ECHO
|
||||||
ECHO "Base String Set to ${A}"
|
ECHO "Base String Set to ${A}"
|
||||||
ECHO Copy A to B
|
ECHO Copy A to B
|
||||||
SET B = ${A}
|
SET B = ${A}
|
||||||
|
@ -3,12 +3,26 @@ NEW
|
|||||||
AUTO 4,1
|
AUTO 4,1
|
||||||
#!/BIN/SH
|
#!/BIN/SH
|
||||||
#
|
#
|
||||||
|
# This script tests the MD5 command to make sure
|
||||||
|
# it is properly generating and returning correct
|
||||||
|
# MD5 values.
|
||||||
#
|
#
|
||||||
|
# This test uses the SET var = `command` directive,
|
||||||
|
# testing that facility as well.
|
||||||
#
|
#
|
||||||
ECHO \n\nMD5 Test
|
SET TestPhrase = "Hello World"
|
||||||
ECHO Hash should be:
|
SET CorrectValue = "b10a8db164e0754105b7a99be72e3fe5"
|
||||||
ECHO B10A8DB164E0754105B7A99BE72E3FE5
|
ECHO "\f\n MD5 Test"
|
||||||
MD5 -D "Hello World"
|
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`
|
||||||
|
IF [ $Result = $CorrectValue ]
|
||||||
|
ECHO "This Test Passed"
|
||||||
|
ELSE
|
||||||
|
ECHO "This Test Failed"
|
||||||
|
ECHO "The returned result was: $Result"
|
||||||
|
FI
|
||||||
echo \n\n
|
echo \n\n
|
||||||
MAN
|
MAN
|
||||||
TEXT /MAKE/USR/SHARE/TESTS/MD5TEST
|
TEXT /MAKE/USR/SHARE/TESTS/MD5TEST
|
||||||
|
Loading…
Reference in New Issue
Block a user