]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
ci: run out-of-tree system tests with pytest runner
authorTom Krizek <tkrizek@isc.org>
Tue, 8 Aug 2023 11:23:20 +0000 (13:23 +0200)
committerTom Krizek <tkrizek@isc.org>
Mon, 21 Aug 2023 13:12:53 +0000 (15:12 +0200)
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.

.gitlab-ci.yml

index 36df5e447928b1f3690054ba33e6f825500a93cd..4d443618ffa71a2520af8f6e776737479a2a314d 100644 (file)
@@ -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: