From 27e10f647744909560df77d1a8d5036d240ba7d4 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Fri, 28 Jul 2023 14:44:03 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 12 ++++++++++++ gating.yaml | 6 ++++++ tests/tests.yml | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 49fbacf..88b8f41 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,13 @@ +/text-0.8.1.0.tar.gz +/text-0.10.0.0.tar.gz +/text-0.11.0.0.tar.gz +/text-0.11.0.5.tar.gz +/text-0.11.0.6.tar.gz +/text-0.11.1.5.tar.gz +/text-0.11.1.13.tar.gz +/text-0.11.3.1.tar.gz +/text-1.1.0.0.tar.gz +/text-1.1.1.3.tar.gz +/text-1.2.1.3.tar.gz +/text-1.2.2.1.tar.gz /text-1.2.2.2.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..6985029 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..27792e3 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,18 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + vars: + - pkg: "{{playbook_dir|dirname|basename}}" + - develpkg: "{{pkg}}-devel" + - pkgname: "{{pkg|regex_replace('^ghc-(.*)$', '\\1')}}" + required_packages: + - "{{develpkg}}" + tests: + - ghc: + run: echo 'main = return ()' > test.hs; ghc -package {{pkgname}} test.hs; ./test + - revdeps: + run: revdeps=$(dnf -q repoquery --qf "%{name}" --whatrequires={{develpkg}}); if [ -z "${revdeps}" ]; then echo "No valid dependents"; exit 1; else dnf -y install ${revdeps}; fi +...