diff --git a/README.md b/README.md index 2e55c9fe0f71f80ecbe8656f191e8be8396ddc11..cd8a50e0cea180fd39afaffcf2f992a3f7aaf815 100644 --- a/README.md +++ b/README.md @@ -31,20 +31,18 @@ testcases relies on [tests/glib-gio-fs](https://gitlab.apertis.org/tests/glib-gio-fs) to ship binary test programs from the `libglib2.0-tests` package. -To do so: -1. it lists the required files in - [`external-binaries.cfg`](https://gitlab.apertis.org/tests/apparmor-pulseaudio/-/blob/apertis/v2021dev2/external-binaries.cfg) -2. it lists the repository name [in - `helper-tools/test-repositories.txt`](https://gitlab.apertis.org/tests/helper-tools/-/blob/51f60a1c/test-repositories.txt#L20) +To do so it lists the required files in +[`external-binaries.cfg`](https://gitlab.apertis.org/tests/glib-gio-fs/-/blob/apertis/v2022/external-binaries.cfg) +and the [`.gitlab-ci.yml`](https://gitlab.apertis.org/tests/glib-gio-fs/-/blob/apertis/v2022/.gitlab-ci.yml) +includes `gitlab-ci/update-test-binaries.yaml` in this repository. -On every nightly run, the `helper-tools` pipeline: +A daily schedule triggers the GitLab pipeline and: -* goes through the listed repositories; * fetches the required packages (`libglib2.0-tests` in this case); * extracts the needed files; -* commits them in each repository (if they changed). +* commits them to the repository (if they changed). -See [this run](https://gitlab.apertis.org/tests/glib-gio-fs/-/commit/9d49af1c7dbef1a0266ff432902104607dcc309d) +See [this run](https://gitlab.apertis.org/tests/glib-gio-fs/-/pipelines/305237) as an example. ### Tests that need to build new binaries @@ -55,32 +53,19 @@ the required binaries on OBS. See for instance the [`apparmor-pulseaudio-tester` package](https://gitlab.apertis.org/pkg/development/apparmor-pulseaudio-tester) used by the [`tests/apparmor-pulseaudio` -repository](https://gitlab.apertis.org/tests/apparmor-pulseaudio/-/blob/apertis/v2021dev2/external-binaries.cfg) +repository](https://gitlab.apertis.org/tests/apparmor-pulseaudio/-/blob/apertis/v2022/external-binaries.cfg) for the [`apparmor-pulseaudio`](https://qa.apertis.org/apparmor-pulseaudio.html) testcase. # Contents of the repository -updater.sh: -updater.sh is executed by the GitLab CI/CD pipeline. -It searches in the helper-tools repository -for test_repositories.txt and runs update_test_binaries on each. - -update_test_binaries.sh: +`update_test_binaries.sh`: update_test_binaries is a script used to update external binaries required by tests and storing them in individual test case git repositories. It will read -the external binaries definition from external-binaries.cfg located in the test +the external binaries definition from `external-binaries.cfg` located in the test case git repository and update the binaries in the test repo accordingly. +The binaries will be copied in an architecture specific tree in the test repository. -test_repositories.txt: -This file lists all projects from the group gitlab.apertis.org/tests which needs -external binaries. - -external-binaries.cfg: -In each of these projects, a file called external-binaries.cfg lists the binaries -required to run the test. The binaries will be copied in an architecture -specific tree in the test repository. - -gitlab-ci/update-test-binaries.yaml: +`gitlab-ci/update-test-binaries.yaml`: The snippet to be included by the projects needing the external binaries.