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

Organize tests #91

Merged
merged 15 commits into from
Jul 13, 2023
Merged

Organize tests #91

merged 15 commits into from
Jul 13, 2023

Conversation

vasdommes
Copy link
Collaborator

This PR organizes test folder, which used to be quite messy.

Summary:

  1. All input data is stored in test/data/ and its subfolders.
  2. All test output is written to test/out/ (added to .gitignore) and its subfolders.
  3. Added main testing script test/run_all_tests.sh (can be called from any folder, not only from root as before).
  4. run_all_tests.sh finds and runs all scripts such as sdpb_test.sh, pvm2sdp_test.sh, which are moved to test/tests/ folder.
  5. Testing scripts heavily refactored, common functions extracted to to test/common_test_setup.sh.
  6. PASS test printed in green, FAIL - in red.
  7. stdout and stderr for each test case are written to test/out/log/ folder.
  8. Added sdp2input tests.
  9. Fixed spectrum tests.
  10. Updated test file paths in documentation.

…" do not really test what they should

Remove these tests, add "pvm2sdp cannot write zip" instead.
+ more refactoring for run_test.sh, outer_test.hs, spectrum_test.sh
NB: ./test/spectrum_test.sh still not working davidsd#89
- Add common_test_setup.sh: common functions and variables such as $TEST_DATA_DIR
- Rename run_test.sh -> sdpb_test.sh
This name is more informative
Also remove unused input test files
…test/run_all_tests.sh

Add green/red test output
…ite all profiles and should FAIL

Add separate check for failing profiling.0 and successful profiling.1
@vasdommes vasdommes requested a review from davidsd July 12, 2023 20:22
@vasdommes vasdommes self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants