Skip to content

Commit 45c7d2d

Browse files
committed
fix tests
1 parent 0c12b25 commit 45c7d2d

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

.github/workflows/job-test-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
uses: actions/download-artifact@v4
2525
with:
2626
name: Build-linux-${{ inputs.configuration }}
27-
path: Result.Linux.x64.${{ inputs.configuration }}
2827

2928
- name: Update access permission of ZEngineTests
30-
run: chmod +x ./Result.Linux.x64.${{ inputs.configuration }}/tests/ZEngineTests
29+
run: chmod +x ./tests/ZEngineTests
3130

3231
- name: Run Tests
3332
env:

.github/workflows/job-test-macOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
path: Result.Darwin.${{inputs.architecture}}.${{ inputs.configuration }}
2828

2929
- name: Update access permission of ZEngineTests
30-
run: chmod +x ./Result.Darwin.${{inputs.architecture}}.${{ inputs.configuration }}/tests/ZEngineTests
30+
run: chmod +x ./tests/ZEngineTests
3131

3232
- name: Run Tests
3333
env:

.github/workflows/job-test-windows.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- name: Download All Artifacts
2121
uses: actions/download-artifact@v4
2222
with:
23-
path: Result.Windows.x64.MultiConfig
2423
name: Build-Windows-x64-${{ inputs.configuration }}
2524

2625
- name: Run Tests

Scripts/RunTests.ps1

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,7 @@ function RunTests {
6363
[string]$Configuration
6464
)
6565

66-
[string]$testExecutablePath = ""
67-
switch ($SystemName) {
68-
"Windows" {
69-
$testExecutablePath = Join-Path $OutputBuildDirectory -ChildPath "tests/ZEngineTests.exe")
70-
}
71-
"Darwin" {
72-
$testExecutablePath = Join-Path $OutputBuildDirectory -ChildPath "tests/ZEngineTests"
73-
}
74-
"Linux" {
75-
$testExecutablePath = Join-Path $OutputBuildDirectory -ChildPath "tests/ZEngineTests"
76-
}
77-
Default {
78-
throw 'This system is not supported'
79-
}
80-
}
66+
[string]$testExecutablePath = "tests/ZEngineTests"
8167

8268
# Check if the executable exists
8369
if (Test-Path $testExecutablePath) {

0 commit comments

Comments
 (0)