diff --git a/plans/potrace.fmf b/plans/potrace.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/potrace.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/plans/tier1.fmf b/plans/tier1.fmf deleted file mode 100644 index 5265e16..0000000 --- a/plans/tier1.fmf +++ /dev/null @@ -1,39 +0,0 @@ ---- - -summary: Tier1 plan for potrace - -discover: - how: fmf - url: https://pkgs.devel.redhat.com/git/tests/potrace - ref: master - filter: tier:1 - -prepare: - - how: shell - script: | - set -euxo pipefail - - ENABLE_REPO_CMD="yum-config-manager --enable" - if command -v dnf >/dev/null 2>&1; then - ENABLE_REPO_CMD="dnf config-manager --set-enabled" - fi - - ${ENABLE_REPO_CMD} beaker-tasks || : - - how: shell - script: | - set -exuo pipefail - - if [[ -f /etc/os-release ]]; then - . /etc/os-release - if [[ "${ID:-}" == "rhel" && "${VERSION_ID%%.*}" -ge 8 ]]; then - dnf config-manager --enable rhel-CRB - fi - fi - -execute: - how: tmt - -adjust: - enabled: false - when: distro == centos-stream or distro == fedora - diff --git a/potrace.spec b/potrace.spec index b1940fe..5fc3802 100644 --- a/potrace.spec +++ b/potrace.spec @@ -1,6 +1,6 @@ Name: potrace Version: 1.16 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Transform bitmaps into vector graphics # README defines license as GPLv2+ # potrace/potrace-1.16/src/getopt.c is LGPL-2.0-or-later @@ -83,6 +83,9 @@ rm -rf %{buildroot}%{_docdir}/%{name} %doc potrace.pdf potracelib.pdf %changelog +* Tue Dec 03 2024 Parag Nemade - 1.16-16 +- Resolves: RHEL-60823, Move potrace-devel to CRB repository + * Tue Oct 29 2024 Troy Dawson - 1.16-15 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018 diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..2625006 --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,5 @@ +test: ./runtests.sh +duration: 10m +framework: beakerlib +require: + - potrace diff --git a/tests/runtests.sh b/tests/runtests.sh new file mode 100755 index 0000000..1d7793f --- /dev/null +++ b/tests/runtests.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +rlJournalStart + rlPhaseStartSetup + rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" + rlRun "cp test.pbm $tmp/" + rlRun "pushd $tmp" + rlRun "set -o pipefail" + rlPhaseEnd + + rlPhaseStartTest + rlRun "potrace --help" 0 "Check help message" + rlRun "potrace --version" 0 "Check version message" + rlRun "potrace --license" 0 "Check license message" + rlRun "potrace test.pbm" 0 "Check basic functionality" + rlRun "potrace test.pbm -b svg" 0 "Check svg" + rlRun "potrace test.pbm -b pdf" 0 "Check pdf" + rlRun "potrace test.pbm -b eps" 0 "Check eps" + rlRun "potrace test.pbm -b pgm" 0 "Check pgm" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $tmp" 0 "Remove tmp directory" + rlPhaseEnd +rlJournalEnd + diff --git a/tests/test.eps b/tests/test.eps new file mode 100644 index 0000000..787b39b --- /dev/null +++ b/tests/test.eps @@ -0,0 +1,29 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: potrace 1.16, written by Peter Selinger 2001-2019 +%%LanguageLevel: 2 +%%BoundingBox: 0 0 100 100 +%%HiResBoundingBox: 0 0 100.000000 100.000000 +%%Pages: 1 +%%EndComments +%%Page: 1 1 +currentfile /ASCII85Decode filter /LZWDecode filter cvx exec +J/lc\@jia36p6os-K?5!aCR.L@HM5X8G7'_Rgk/$,T)ho0q6GnR,f*WHT4QlU@Ws&Afqrs$ +:4h$OrH%kbbgS4!L3(`1eQ&KZQ[iV+;tM3o.t+1fh)fNBp@jbL5ABuL^n&r&:iPI1X[d01S +B860V)?A'!l\#[^[5S,F`,RiEdUm)'!9V6VQfVh2!Oi"^FZD_ +tLA>-$.69@Rbe1QK9<"`#a$o//G)K+5W9[0^m>S-jHd/-M)BID+V54`#`VuqKLP9['qWD$' +/X,2$/cg;W3Mg1%p8#C^Ld8VfM9sP5MSn3`]Srgl`pUP!EmFqLOE+A`%rg#6Su#pnp9V-PP +N\qt$S+QMVJh\'&2Rg0hW544dT/3C.lc%DM(6)sikZcP.%=S.[aK6ZN6NWTRNTY!Q&p= +@@GT[#P+02V@F +g$Pf7@OX/\U@>IO,*QMk'g$0:L?gg2ZdPPl:)gUMRUG.'[AZ@ALio9Z\qbL^H(+l"1JW;i4Dh5K`79T: +^6a?m*OD.^/G0>N;Dj`I^(p]I)9ZCsYBPUG!%P8'$`V(KcNS482F1?5f2Z*^h<9Cf.<6C4C +Ig41M(rfP6VA5k8(]%Os;g8NRUNipeM1kV(Is^23(^rLMV;k=)eBc9=B6Ac*<9CM5iN;?X? +WQ35h#/#m2r9:\n855*$."^15m,.3C`RE![]&RZ_)Ym1-/H.bLk6Qg2-.cNTYNIK:)XJ,;Q +jrhWWr%&_6K4P0-,V0G;?#2OhM&RTgBpQ,fge,iF<;$\MjV:;I8pZGtU7S!2/Bj6^c,Qi$a +,+~> +%%EOF diff --git a/tests/test.pbm b/tests/test.pbm new file mode 100644 index 0000000..ee185c1 Binary files /dev/null and b/tests/test.pbm differ