File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 34
34
- name : Build
35
35
# Build your program with the given configuration
36
36
run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
37
+
38
+ - name : Tests
39
+ # Run TFE tests such as replay verification for any deltas
40
+ - name : Run Tests
41
+ run : |
42
+ chmod +x ${{github.workspace}}/build/TheForceEngine/Tests/runTests.sh
43
+ ${{github.workspace}}/build/TheForceEngine/Tests/runTests.sh
Original file line number Diff line number Diff line change @@ -1123,11 +1123,11 @@ namespace TFE_Input
1123
1123
restoreGameSettings ();
1124
1124
restoreInputs ();
1125
1125
1126
- TFE_System::logWrite (LOG_MSG, " Replay" , " Finished playing back demo..." );
1127
-
1128
1126
enableCutscenes (cutscenesEnabled);
1129
1127
endCommonReplayStates ();
1130
1128
1129
+ TFE_System::logWrite (LOG_MSG, " Replay" , " Finished playing back demo..." );
1130
+
1131
1131
if (TFE_Settings::getTempSettings ()->exit_after_replay )
1132
1132
{
1133
1133
TFE_FrontEndUI::setState (APP_STATE_QUIT);
Original file line number Diff line number Diff line change
1
+ # TFE Does not like ~ so lets expand it
2
+ user_path=~
3
+
4
+ # Run the demo and generate new log file
5
+ $user_path /tfe/theforceengine -gDark -r$user_path /tfe/TheForceEngine/Tests/Replays/base_test.demo --demo_logging --exit_after_replay
6
+
7
+ # Diff Results of the rest
8
+ result=` diff <( tail -n 1 $user_path /.local/share/TheForceEngine/replay.log) <( tail -n 1 $user_path /tfe/TheForceEngine/Tests/Replays/base_replay.log) `
9
+
10
+ if $result > /dev/null; then
11
+ exit 0
12
+ else
13
+ echo $result
14
+ exit 1
15
+ fi
16
+
You can’t perform that action at this time.
0 commit comments