Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
test-entry-point.sh File Reference

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.
 

Detailed Description

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.

Version
1.0
Date
2025-01-30

License

MIT License

Author
@Fle-bihh (original author)
@HotWheels (adapted)

Usage

Run this script in a terminal:

./test-entry-point.sh

The script will compare the output of the application and return a success or failure message.

Returns
0 if the test passes, 1 if it fails.

Definition in file test-entry-point.sh.