mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Java - Upgraded Java to JDK 20; added Initial support for light-weight test cases
This commit is contained in:
Executable
+15
@@ -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
|
||||||
Executable
+8
@@ -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 $?
|
||||||
Reference in New Issue
Block a user