re-import sources as agreed with the maintainer
This commit is contained in:
parent
1127dc7c83
commit
7640d2cbd0
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
SOURCES/libqb-1.0.3.tar.xz
|
/libqb-*.tar.*
|
||||||
/libqb-1.0.3.tar.xz
|
|
||||||
|
41
tests/run-tests.sh
Normal file
41
tests/run-tests.sh
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
TESTS="array.test map.test rb.test log.test blackbox-segfault.sh loop.test ipc.test"
|
||||||
|
TESTDIR=/usr/lib64/libqb/tests
|
||||||
|
|
||||||
|
TESTS_RUN=0
|
||||||
|
TESTS_FAILED=0
|
||||||
|
|
||||||
|
export PATH=$TESTDIR:$PATH
|
||||||
|
|
||||||
|
for i in ${TESTS}
|
||||||
|
do
|
||||||
|
echo
|
||||||
|
echo "---- running $i"
|
||||||
|
|
||||||
|
# Cope with non-executable scripts
|
||||||
|
if [ -z "`echo $i|grep \\.sh`" ]
|
||||||
|
then
|
||||||
|
${TESTDIR}/${i}
|
||||||
|
else
|
||||||
|
sh ${TESTDIR}/${i}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Did it succeed?
|
||||||
|
if [ $? != 0 ]
|
||||||
|
then
|
||||||
|
TESTS_FAILED=$((TESTS_FAILED + 1))
|
||||||
|
echo "FAILED: $i"
|
||||||
|
fi
|
||||||
|
TESTS_RUN=$((TESTS_RUN + 1))
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
echo "Tests run: $TESTS_RUN"
|
||||||
|
echo "Tests failed: $TESTS_FAILED"
|
||||||
|
|
||||||
|
if [ $TESTS_FAILED -gt 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
20
tests/tests.yml
Normal file
20
tests/tests.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-source # Fetch source tarball and unpack it into the test environment
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- atomic
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- bash
|
||||||
|
- libqb-tests
|
||||||
|
- check
|
||||||
|
- words
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- check: # Run tests
|
||||||
|
dir: .
|
||||||
|
run: ./run-tests.sh
|
Loading…
Reference in New Issue
Block a user