-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Run tests in non-linear order (see #9303) #9320
base: main
Are you sure you want to change the base?
Conversation
now, some test seems to fails: at least 2: --seed BM1BUVUADHUWWKPN --filter audio_initOpenCloseQuitAudio |
I asked about this in #9301. SDL_zero(testspec);
#if SDL_VERSION_ATLEAST(3,5,0)
testspec.parallel = SDL_TRUE
#endif
SDLTest_RunSuites(&testspec); |
yes, we need to modify the parameters of SDLTest_RunSuites @slouken
|
I wonder if we could always permute them, based on the random seed? Alternatively this could be done in the application just by permitting the test suites before passing them in. |
A seed should always give the same permutation. we can permute the suite&case before passing them. (probably we need to create the seed before). but we lose the correct numbering of case/suite in the log. |
Good point. |
I have updated the branch so that we don't lose the suite numbers neither. Also added a "--no-random-order" parameter to testautomation so that we can still run test in linear order |
Run tests in non-linear order (see #9303)
It mixes the testSuites array, and for each suite, it mixes the sub-tests.
Hence, it changes the public API behavior of SDLTest_RunSuites(). not sure if this is acceptable ?