29 lines
789 B
Bash
Executable File
29 lines
789 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh
|
|
|
|
TEST="/AppStream/exempi/Sanity/upstream-test-suite"
|
|
|
|
PACKAGES=${PACKAGES:-"exempi"}
|
|
REQUIRES=${REQUIRES:-"exempi-devel gcc gcc-c++ make autoconf automake libtool boost-devel"}
|
|
|
|
rlJournalStart
|
|
rlPhaseStartSetup
|
|
rlAssertRpm --all
|
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
|
rlRun "cp -r exempi/* $TmpDir/." 0 "Copying test suite"
|
|
rlRun "pushd $TmpDir"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest
|
|
rlRun "autoreconf -f -i && ./configure --prefix=/usr" 0 "Configuring test suite"
|
|
rlRun "make check" 0 "Running tests"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartCleanup
|
|
rlRun "popd"
|
|
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
|
rlPhaseEnd
|
|
rlJournalPrintText
|
|
rlJournalEnd
|