A2osX/TESTS/MD5TEST.txt
2019-03-03 15:15:24 -05:00

29 lines
742 B
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 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.
#
SET TestPhrase = "Hello World"
SET CorrectValue = "b10a8db164e0754105b7a99be72e3fe5"
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`
IF [ $Result = $CorrectValue ]
ECHO "This Test Passed"
ELSE
ECHO "This Test Failed"
ECHO "The returned result was: $Result"
FI
echo \n\n
MAN
TEXT /MAKE/USR/SHARE/TESTS/MD5TEST