Enhance test output

This commit is contained in:
2024-12-23 18:20:15 +01:00
parent 4e7b5f5c39
commit 68c771b7b0
6 changed files with 54 additions and 64 deletions

10
run
View File

@@ -1 +1,9 @@
java -jar target/PBC4Project-1.0-SNAPSHOT-jar-with-dependencies.jar
rm error.log 2> /dev/null
java -jar target/PBC4Project-1.0-SNAPSHOT-jar-with-dependencies.jar 2>error.log
if [ -s error.log ]
then
echo "Error in the program"
cat error.log
else
echo "Program executed successfully"
fi