Skip to content

ENH: Add Functionality of running only one test file if specified #70

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

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

adit4443ya
Copy link
Collaborator

With this enhancement we can do this

 aditya-trivedi   tests    script_enhance ≢    FC='gfortran' ./run_tests.sh bcast_1.f90 
Received argument(s). Will only compile/run: bcast_1.f90
Compiling bcast_1...
Running bcast_1 with 1 MPI ranks...
 Rank=           0  received integer=           1
Test bcast_1 with 1 MPI ranks PASSED!
Running bcast_1 with 2 MPI ranks...
 Rank=           0  received integer=           1
 Rank=           1  received integer=           1
Test bcast_1 with 2 MPI ranks PASSED!
Running bcast_1 with 4 MPI ranks...
 Rank=           0  received integer=           1
 Rank=           2  received integer=           1
 Rank=           1  received integer=           1
 Rank=           3  received integer=           1
Test bcast_1 with 4 MPI ranks PASSED!

... Running standalone tests took 4 seconds ...

This is because if we are working on making new MREs or Adding new tests then we do not have to run all the tests everytime

@adit4443ya adit4443ya changed the title Add Functionality of running only one test file if specified ENH: Add Functionality of running only one test file if specified Mar 31, 2025
@adit4443ya
Copy link
Collaborator Author

I'm Merging it @gxyd Gentle ping

@adit4443ya adit4443ya merged commit 1a1a22b into lfortran:main Mar 31, 2025
16 checks passed
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.

1 participant