From b84a90120a9555c5a35a14fd36aac7017cca0aa0 Mon Sep 17 00:00:00 2001 From: Petr Sklenar Date: Mon, 10 Jun 2024 07:21:37 +0000 Subject: [PATCH 01/12] Update Sanity/opvp-driver-from-ArtifexSoftware/test.sh --- Sanity/opvp-driver-from-ArtifexSoftware/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh index ad3752e..6abe6f1 100755 --- a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh +++ b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh @@ -9,7 +9,7 @@ rlJournalStart rlRun "set -o pipefail" rlPhaseEnd - rlPhaseStartTest "Test" + rlPhaseStartTest "Test the driver" [ -d ghostpdl ] || rlRun "git clone https://github.com/psklenar/ghostpdl.git" rlRun "pushd ghostpdl/contrib/opvp/" rlRun "./build_opv_harness.sh" From 47ecbc1f2fcd96dfc425eb0155128a4fa880cf9a Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Tue, 11 Jun 2024 10:15:36 +0200 Subject: [PATCH 02/12] tmt test export --- Sanity/opvp-driver-from-ArtifexSoftware/main.fmf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf b/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf index b1730ca..97e3426 100644 --- a/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf +++ b/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf @@ -1,4 +1,4 @@ -summary: Trying opvp-driver from ArtifexSoftware +summary: Trying opvp-driver from ArtifexSoftware test: ./test.sh contact: psklenar@redhat.com component: @@ -7,6 +7,8 @@ framework: beakerlib require: - git - ghostscript - - gcc + - gcc duration: 35m tier: '2' +extra-nitrate: TC#0617552 +id: 8e6dd1f0-0166-4f4f-afb0-cd3296992f57 From beb4d6c50690caeba5cf7a23869edecee63ad6cd Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Tue, 11 Jun 2024 11:11:35 +0200 Subject: [PATCH 03/12] show version --- Sanity/opvp-driver-from-ArtifexSoftware/test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh index 6abe6f1..8d0e153 100755 --- a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh +++ b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh @@ -4,6 +4,7 @@ rlJournalStart rlPhaseStartSetup + rlLog "`rpm -q ghostscript`" rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" rlRun "pushd $tmp" rlRun "set -o pipefail" From f3145d981813472722dc9d6109ef109bc84f73c5 Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Wed, 12 Jun 2024 09:46:01 +0200 Subject: [PATCH 04/12] tmt test export --- Sanity/opvp-driver-from-ArtifexSoftware/main.fmf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf b/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf index b1730ca..ddd53ae 100644 --- a/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf +++ b/Sanity/opvp-driver-from-ArtifexSoftware/main.fmf @@ -1,4 +1,4 @@ -summary: Trying opvp-driver from ArtifexSoftware +summary: Trying opvp-driver from ArtifexSoftware test: ./test.sh contact: psklenar@redhat.com component: @@ -7,6 +7,8 @@ framework: beakerlib require: - git - ghostscript - - gcc + - gcc duration: 35m tier: '2' +extra-nitrate: TC#0617559 +id: 9f202f36-9b8d-4637-ad70-15ad32994191 From 6903394795f18954af0142d90547a6e1f6a8875e Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Wed, 12 Jun 2024 10:00:34 +0200 Subject: [PATCH 05/12] file by file --- Sanity/opvp-driver-from-ArtifexSoftware/test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh index 8d0e153..4f357e7 100755 --- a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh +++ b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh @@ -17,7 +17,12 @@ rlJournalStart rlRun "ls libopv.so" rlLog "$(ls)" rlRun "popd" - rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f ./ghostpdl/examples/*.*" + rlRun "ls ./ghostpdl/examples" + for i in $(ls ./ghostpdl/examples/*.*);do + rlLog "file $i" + rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f ./ghostpdl/examples/$i" + rlLog "--------------------" + done rlRun "grep opvpOpenPrinter opvp_command_dump.txt" rlPhaseEnd From e2caf4fabef3a7bb5b9d59ab1232b057e63f4e66 Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Wed, 12 Jun 2024 11:54:30 +0200 Subject: [PATCH 06/12] file path --- Sanity/opvp-driver-from-ArtifexSoftware/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh index 4f357e7..75fed91 100755 --- a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh +++ b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh @@ -20,7 +20,7 @@ rlJournalStart rlRun "ls ./ghostpdl/examples" for i in $(ls ./ghostpdl/examples/*.*);do rlLog "file $i" - rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f ./ghostpdl/examples/$i" + rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f $i" rlLog "--------------------" done rlRun "grep opvpOpenPrinter opvp_command_dump.txt" From cddeeffd5a65a9fd052e7013bf376aaddcb2d075 Mon Sep 17 00:00:00 2001 From: Ondrej Mejzlik Date: Thu, 20 Jun 2024 11:04:11 +0200 Subject: [PATCH 07/12] update plans --- README | 1 - plans/all.fmf | 5 +++++ plans/ci.fmf | 6 ------ plans/others.fmf | 20 ++++++++++++++++++++ plans/tier1.fmf | 20 ++++++++++++++++++++ plans/tier2-tier3.fmf | 20 ++++++++++++++++++++ 6 files changed, 65 insertions(+), 7 deletions(-) delete mode 100644 README create mode 100644 plans/all.fmf delete mode 100644 plans/ci.fmf create mode 100644 plans/others.fmf create mode 100644 plans/tier1.fmf create mode 100644 plans/tier2-tier3.fmf diff --git a/README b/README deleted file mode 100644 index 9900b89..0000000 --- a/README +++ /dev/null @@ -1 +0,0 @@ -Repository for ghostscript CI tests diff --git a/plans/all.fmf b/plans/all.fmf new file mode 100644 index 0000000..e1a0780 --- /dev/null +++ b/plans/all.fmf @@ -0,0 +1,5 @@ +summary: Run all tests +discover: + how: fmf +execute: + how: tmt diff --git a/plans/ci.fmf b/plans/ci.fmf deleted file mode 100644 index 239d93d..0000000 --- a/plans/ci.fmf +++ /dev/null @@ -1,6 +0,0 @@ -summary: CI plan, picks up all tests, runs in beakerlib. -discover: - - name: fedora - how: fmf -execute: - how: tmt diff --git a/plans/others.fmf b/plans/others.fmf new file mode 100644 index 0000000..066f7b4 --- /dev/null +++ b/plans/others.fmf @@ -0,0 +1,20 @@ +/public: + summary: Public other tests + discover: + how: fmf + filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' + url: "https://src.fedoraproject.org/tests/ghostscript.git" + execute: + how: tmt + +/internal: + summary: Internal other tests + discover: + how: fmf + filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' + url: git://pkgs.devel.redhat.com/tests/ghostscript + adjust: + enabled: false + when: distro == centos-stream or distro == fedora + execute: + how: tmt diff --git a/plans/tier1.fmf b/plans/tier1.fmf new file mode 100644 index 0000000..9ba24ea --- /dev/null +++ b/plans/tier1.fmf @@ -0,0 +1,20 @@ +/public: + summary: Public Tier1 tests + discover: + how: fmf + filter: 'tier: 1' + url: "https://src.fedoraproject.org/tests/ghostscript.git" + execute: + how: tmt + +/internal: + summary: Internal Tier1 tests + discover: + how: fmf + filter: 'tier: 1' + url: git://pkgs.devel.redhat.com/tests/ghostscript + adjust: + enabled: false + when: distro == centos-stream or distro == fedora + execute: + how: tmt diff --git a/plans/tier2-tier3.fmf b/plans/tier2-tier3.fmf new file mode 100644 index 0000000..00b1d9e --- /dev/null +++ b/plans/tier2-tier3.fmf @@ -0,0 +1,20 @@ +/public: + summary: Public Tier2 and Tier3 tests + discover: + how: fmf + filter: 'tier: 2 | tier: 3' + url: "https://src.fedoraproject.org/tests/ghostscript.git" + execute: + how: tmt + +/internal: + summary: Internal Tier2 and Tier3 tests + discover: + how: fmf + filter: 'tier: 2 | tier: 3' + url: git://pkgs.devel.redhat.com/tests/ghostscript + adjust: + enabled: false + when: distro == centos-stream or distro == fedora + execute: + how: tmt From c25e5a47c6c5eae669ab481cea4fcaf5bd9b45eb Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 10 Jul 2024 12:04:27 +0200 Subject: [PATCH 08/12] Merge psklenar's changes --- Sanity/opvp-driver-from-ArtifexSoftware/test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh index ad3752e..72405e9 100755 --- a/Sanity/opvp-driver-from-ArtifexSoftware/test.sh +++ b/Sanity/opvp-driver-from-ArtifexSoftware/test.sh @@ -4,6 +4,7 @@ rlJournalStart rlPhaseStartSetup + rlLog "`rpm -q ghostscript`" rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" rlRun "pushd $tmp" rlRun "set -o pipefail" @@ -16,7 +17,12 @@ rlJournalStart rlRun "ls libopv.so" rlLog "$(ls)" rlRun "popd" - rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f ./ghostpdl/examples/*.*" + rlRun "ls ./ghostpdl/examples" + for i in $(ls ./ghostpdl/examples/*.*);do + rlLog "file $i" + rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f $i" + rlLog "--------------------" + done rlRun "grep opvpOpenPrinter opvp_command_dump.txt" rlPhaseEnd From 636264e5661e4e33774b92a9ba389727889dae9f Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Thu, 11 Jul 2024 15:22:41 +0200 Subject: [PATCH 09/12] all ci plans --- plans/others.fmf | 2 +- plans/tier1.fmf | 2 +- plans/tier2-tier3.fmf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plans/others.fmf b/plans/others.fmf index 066f7b4..f4d6e73 100644 --- a/plans/others.fmf +++ b/plans/others.fmf @@ -12,7 +12,7 @@ discover: how: fmf filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost' - url: git://pkgs.devel.redhat.com/tests/ghostscript + url: https://gitlab.com/redhat/rhel/tests/ghostscript adjust: enabled: false when: distro == centos-stream or distro == fedora diff --git a/plans/tier1.fmf b/plans/tier1.fmf index 9ba24ea..51ff418 100644 --- a/plans/tier1.fmf +++ b/plans/tier1.fmf @@ -12,7 +12,7 @@ discover: how: fmf filter: 'tier: 1' - url: git://pkgs.devel.redhat.com/tests/ghostscript + url: https://gitlab.com/redhat/rhel/tests/ghostscript adjust: enabled: false when: distro == centos-stream or distro == fedora diff --git a/plans/tier2-tier3.fmf b/plans/tier2-tier3.fmf index 00b1d9e..99ab577 100644 --- a/plans/tier2-tier3.fmf +++ b/plans/tier2-tier3.fmf @@ -12,7 +12,7 @@ discover: how: fmf filter: 'tier: 2 | tier: 3' - url: git://pkgs.devel.redhat.com/tests/ghostscript + url: https://gitlab.com/redhat/rhel/tests/ghostscript adjust: enabled: false when: distro == centos-stream or distro == fedora From fdd51a0bff7f845e47499ac9a87ef05d6dea8888 Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Wed, 9 Oct 2024 12:49:01 +0200 Subject: [PATCH 10/12] file needed --- Smoke/start-stop-all-binaries/main.fmf | 1 + 1 file changed, 1 insertion(+) diff --git a/Smoke/start-stop-all-binaries/main.fmf b/Smoke/start-stop-all-binaries/main.fmf index 6215946..202ffdc 100644 --- a/Smoke/start-stop-all-binaries/main.fmf +++ b/Smoke/start-stop-all-binaries/main.fmf @@ -11,6 +11,7 @@ test: ./runtest.sh framework: beakerlib recommend: - ghostscript + - file duration: 10m enabled: true tag: From 7168e79ec97c0bf1f5323f5e6c2744b8c8712cf3 Mon Sep 17 00:00:00 2001 From: "psklenar@redhat.com" Date: Thu, 6 Feb 2025 09:16:41 +0100 Subject: [PATCH 11/12] AVC check for RHEL-77344 --- main.fmf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.fmf b/main.fmf index 41e2fab..e8554d7 100644 --- a/main.fmf +++ b/main.fmf @@ -1,2 +1,4 @@ # QE owner contact: Petr Sklenar +check: + - how: avc From 70f18f79d374396213d54286be9900bd2ff015f7 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 21 Mar 2025 10:31:56 +0100 Subject: [PATCH 12/12] No pdf2dsc in newer CXS --- Smoke/start-stop-all-binaries/runtest.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Smoke/start-stop-all-binaries/runtest.sh b/Smoke/start-stop-all-binaries/runtest.sh index 67e519e..054f491 100755 --- a/Smoke/start-stop-all-binaries/runtest.sh +++ b/Smoke/start-stop-all-binaries/runtest.sh @@ -77,9 +77,14 @@ for i in "ghostscript" "gs" "gsnd" "ps2ascii";do done rlPhaseStartTest 'pdf2dsc' - rlRun "pdf2dsc IBM-RED-HAT-Press-Release-10-2018.pdf &> $LOG" - rlRun "cff $LOG" - rlRun "file IBM-RED-HAT-Press-Release-10-2018.dsc|grep DSC" + if rlIsRHELLike '>10' + then + rlLog "pdf2dsc is not maintained upstream, skipping" + else + rlRun "pdf2dsc IBM-RED-HAT-Press-Release-10-2018.pdf &> $LOG" + rlRun "cff $LOG" + rlRun "file IBM-RED-HAT-Press-Release-10-2018.dsc|grep DSC" + fi rlPhaseEnd rlPhaseStartTest 'pdf2ps'