CI/makefiles: introduce dedicated test target

Make it easy to use the same set of test flags
throughout all current and future CI builds.

Reviewed-by: Jay Satiro

Follow up to #7690
Closes #7785
This commit is contained in:
Marc Hoersken 2021-09-27 21:17:29 +02:00
parent aceff6088c
commit ab1671cafe
No known key found for this signature in database
GPG key ID: 61E03CBED7BC859E
9 changed files with 19 additions and 9 deletions

View file

@ -299,11 +299,11 @@ build_script:
test_script:
- if %TESTING%==ON (
if %BUILD_SYSTEM%==CMake (
set TFLAGS=-r -rm -u %DISABLED_TESTS% &&
cmake --build . --config %PRJ_CFG% --target test-nonflaky
set TFLAGS=%DISABLED_TESTS% &&
cmake --build . --config %PRJ_CFG% --target test-ci
) else (
if %BUILD_SYSTEM%==autotools (
bash.exe -e -l -c "cd /c/projects/curl && make V=1 TFLAGS='-r -rm -u %DISABLED_TESTS%' test-nonflaky"
bash.exe -e -l -c "cd /c/projects/curl && make V=1 TFLAGS='%DISABLED_TESTS%' test-ci"
) else (
bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -p !flaky -r -rm -u %DISABLED_TESTS%"
))