libtiff/tests/upstream-test-suite
Ondřej Sloup afab5f6d40 Add tests folder for standard beakerlib
Related: RHEL-4683 RHEL-4685 RHEL-4686 RHEL-4687 RHEL-4688
2023-09-21 14:04:18 +02:00

30 lines
782 B
Bash
Executable File

#!/bin/bash
. /usr/share/beakerlib/beakerlib.sh
TEST="/AppStream/libtiff/Sanity/upstream-test-suite"
PACKAGES=${PACKAGES:-"libtiff"}
REQUIRES=${REQUIRES:-"libtiff-tools libtiff-devel libjpeg-turbo-devel gcc make cmake"}
rlJournalStart
rlPhaseStartSetup
rlAssertRpm --all
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "cp -r libtiff/* $TmpDir/." 0 "Copying test suite"
rlRun "pushd $TmpDir"
rlPhaseEnd
rlPhaseStartTest
rlRun "cmake ." 0 "Running cmake"
rlRun "make" 0 "Compiling sources"
rlRun "make test" 0 "Running tests"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd