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

Iterate all children test suites #84

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alvarogarcia7
Copy link

Execute all children test suites after the user suggests a test suite.

Examples with test suites:

run_test "Executing at first level" "/perf"

will execute:

Executing at first level with pattern /perf
/perf/symmetric/sha2/compare         
/perf/symmetric/sha2/rand            
/perf/symmetric/sha3/compare         
/perf/symmetric/sha3/rand            
/perf/asymmetric/x25519/compare      
/perf/asymmetric/x25519/rand         
/perf/asymmetric/NIST/compare        
/perf/asymmetric/NIST/rand    
run_test "Executing at second level" "/perf/symmetric"

will execute:

Executing at second level with pattern /perf/symmetric
/perf/symmetric/sha2/compare         
/perf/symmetric/sha2/rand            
/perf/symmetric/sha3/compare         
/perf/symmetric/sha3/rand       

Also works with the "full path" of the test:

run_test "Executing at leaf level" "/perf/symmetric/sha2/rand"

will execute

Executing at leaf level with pattern /perf/symmetric/sha2/rand
/perf/symmetric/sha2/rand      

Note:

run_test

does

./test_setup $suite | grep " OK " | cut -d "[" -f1

to make the log reproducible (removing the seed and the time to execute)

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

1 participant