From: Tom Krizek Date: Tue, 8 Aug 2023 11:23:20 +0000 (+0200) Subject: ci: run out-of-tree system tests with pytest runner X-Git-Tag: v9.19.17~46^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d49d9ec80e0f3a771c1af3d8db68b0bf2739bff3;p=thirdparty%2Fbind9.git ci: run out-of-tree system tests with pytest runner Out-of-tree builds are built in a directory that is different from source directory. The build directory doesn't contain the non-compiled test files from bin/tests/system which are the test cases required by the pytest runner. In order to run the system tests for out-of-tree build, copy over the contents (tests) of bin/tests/system/ from the source directory into the build directory. Then, it is possible to invoke the pytest runner inside the build directory. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 36df5e44792..4d443618ffa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -393,7 +393,7 @@ cross-version-config-tests: <<: *default_triggering_rules stage: system before_script: - - test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}" + - test -n "${OUT_OF_TREE_WORKSPACE}" && cp -r bin/tests/system/* "${OUT_OF_TREE_WORKSPACE}/bin/tests/system/" && cd "${OUT_OF_TREE_WORKSPACE}" - *setup_interfaces script: - *find_pytest @@ -953,7 +953,6 @@ system:gcc:out-of-tree: artifacts: true <<: *base_image <<: *system_test_job - <<: *system_test_legacy <<: *api_schedules_tags_triggers_web_triggering_rules unit:gcc:out-of-tree: