30 lines
782 B
Plaintext
30 lines
782 B
Plaintext
|
#!/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
|