Skip to content

Commit 8a98030

Browse files
committed
more workflow testing
1 parent cc3832b commit 8a98030

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ubuntu-gcc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
run: |
4141
chmod +x ${{github.workspace}}/TheForceEngine/Tests/runTests.sh
4242
ls -tral ${{github.workspace}}/build/
43-
${{github.workspace}}/TheForceEngine/Tests/runTests.sh
43+
${{github.workspace}}/TheForceEngine/Tests/runTests.sh ${{github.workspace}}

TheForceEngine/Tests/runTests.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# TFE Does not like ~ so lets expand it
1+
# Setup the root path
2+
root_path="$1"
3+
4+
# TFE does not like tildes in paths
25
user_path=~
36

47
# Run the demo and generate new log file
5-
${{github.workspace}}/build/theforceengine -gDark -r${{github.workspace}}/build/TheForceEngine/Tests/Replays/base_test.demo --demo_logging --exit_after_replay
8+
$root_path/build/theforceengine -gDark -r$root_path/TheForceEngine/Tests/Replays/base_test.demo --demo_logging --exit_after_replay
69

710
# 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)`
11+
result=`diff <(tail -n 1 $user_path/.local/share/TheForceEngine/replay.log) <(tail -n 1 $root_path/TheForceEngine/Tests/Replays/base_replay.log)`
912

1013
if $result > /dev/null; then
1114
exit 0

0 commit comments

Comments
 (0)