Test the entry point of the application. More...
Go to the source code of this file.
Namespaces | |
namespace | test-entry-point |
Variables | |
str | test-entry-point.APP = "./app/build/x86_Qt5_15_2-Debug/HotWheels-app" |
The path to the application. | |
test-entry-point.OUTPUT = $($APP --test 2>&1) | |
Capture both stdout and stderr. | |
str | test-entry-point.EXPECTED_OUTPUT = "[Main] HotWheels Cluster starting...[Main] Test mode activated. Exiting..." |
The expected output of the application. | |
Test the entry point of the application.
This script tests the application's entry point by running it in test mode and comparing the output with the expected result.
MIT License
Run this script in a terminal:
The script will compare the output of the application and return a success or failure message.
Definition in file test-entry-point.sh.