Skip to content

Commit

Permalink
test: Try fixing tests on macOS/Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed May 2, 2024
1 parent bc2036b commit 1c35483
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions out/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function runTests(buildDirPath) {
process.exit(1);
}
yield qt.removeNonLinking();
/// On macOS and Windows we don't have ldd or equivalent, so we can't check if the test links to QtTest
/// Use the help way instead
yield qt.removeByRunningHelp();
// 1. Test that the executable test names are correct:
var i = 0;
for (var executable of qt.qtTestExecutables) {
Expand Down
4 changes: 4 additions & 0 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ async function runTests(buildDirPath: string) {

await qt.removeNonLinking();

/// On macOS and Windows we don't have ldd or equivalent, so we can't check if the test links to QtTest
/// Use the help way instead
await qt.removeByRunningHelp();

// 1. Test that the executable test names are correct:
var i = 0;
for (var executable of qt.qtTestExecutables) {
Expand Down

0 comments on commit 1c35483

Please sign in to comment.