re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-06-29 18:10:56 +02:00
parent a46041fb5c
commit 2c819b4b00
3 changed files with 48 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/malaga-7.12.tgz
/malaga-7.12.tgz
malaga-7.12.tgz

36
tests/scripts/run.sh Executable file
View 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
View 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