re-import sources as agreed with the maintainer
This commit is contained in:
parent
a46041fb5c
commit
2c819b4b00
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
||||
SOURCES/malaga-7.12.tgz
|
||||
/malaga-7.12.tgz
|
||||
malaga-7.12.tgz
|
||||
|
36
tests/scripts/run.sh
Executable file
36
tests/scripts/run.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
FAIL_COUNT=0
|
||||
|
||||
check_pkg() {
|
||||
local pkg=$1
|
||||
if rpm -q $pkg
|
||||
then
|
||||
echo "PASS"
|
||||
else
|
||||
echo "FAIL"
|
||||
FAIL_COUNT=$((${FAIL_COUNT} + 1))
|
||||
fi
|
||||
}
|
||||
|
||||
check_binary(){
|
||||
COMMAND="$1 $2"
|
||||
echo $COMMAND
|
||||
${COMMAND}
|
||||
RETVAL=$?
|
||||
if [ ${RETVAL} != 0 ] ; then
|
||||
echo "FAIL"
|
||||
FAIL_COUNT=$((${FAIL_COUNT} + 1))
|
||||
else
|
||||
echo "PASS"
|
||||
fi
|
||||
}
|
||||
check_pkg "malaga"
|
||||
check_pkg "libmalaga"
|
||||
for i in malaga mallex malmake malrul malshow malsym
|
||||
do
|
||||
check_binary ${i} -v
|
||||
check_binary ${i} -h
|
||||
done
|
||||
echo "FAIL_COUNT=${FAIL_COUNT}"
|
||||
exit ${FAIL_COUNT}
|
11
tests/tests.yml
Normal file
11
tests/tests.yml
Normal file
@ -0,0 +1,11 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- malaga
|
||||
tests:
|
||||
- simple:
|
||||
dir: scripts
|
||||
run: bash run.sh
|
Loading…
Reference in New Issue
Block a user