Java - Upgraded Java to JDK 20; added Initial support for light-weight test cases

This commit is contained in:
Gaston Gonzalez
2024-11-03 08:57:53 -07:00
parent 42d1934997
commit c3515f96f6
2 changed files with 23 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 3 November 2024
# Purpose : Post installation validation script
PATH=.:$PATH
ls test-*.sh | while read test_case; do
eval ${test_case}
if [[ $? -eq 0 ]]; then
printf "%20s %s\n" "${test_case}" "[PASSED]"
else
printf "%20s %s\n" "${test_case}" "[FAILED]"
fi
done
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 3 November 2024
# Purpose : Test Java installation
# We need to redirect stderr to stdout otherwise grep will not match.
JAVA_OUT=$(java -version 2>&1 | grep 20.0.1)
exit $?