Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace |& which is not widely supported #1399

Merged
merged 2 commits into from Oct 19, 2023
Merged

replace |& which is not widely supported #1399

merged 2 commits into from Oct 19, 2023

Conversation

tim0s
Copy link
Contributor

@tim0s tim0s commented Oct 17, 2023

Some versions of bash (which is the only thing the shebang asks for) do not support |&, on the other hand 2>&1 does the same thing and is widely supported.

The test_all.sh script currently runs cpp tests using g++.
This is not good for the following reasons:
* During normal DaCe compilation we use cmake (and thus whatever compiler cmake picks up).
* We don't check if g++ is available.

This change uses whatever the user set as CXX env var. Cmake also uses CXX when it is set.
Thus if a user sets CXX, he will use the same compiler for tests and during dace compilation.
If CXX is not set we fall back to g++ as the hard-coded compiler.

The test script also prints the current progress before each test now.
@tbennun
Copy link
Collaborator

tbennun commented Oct 17, 2023

FYI test_all.sh is deprecated afaik

@tim0s
Copy link
Contributor Author

tim0s commented Oct 17, 2023

FYI test_all.sh is deprecated afaik

Then it should be deleted? What is the up-to-date way to run all tests? Maybe we can add this into the installation guide? Also some of the tests seem dated, i.e., they generate warnings about deprecated functions.

@tbennun tbennun self-requested a review October 19, 2023 14:16
@tbennun tbennun merged commit 6f471cf into master Oct 19, 2023
9 checks passed
@tbennun tbennun deleted the fix_test_script branch October 19, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants