re-import sources as agreed with the maintainer
This commit is contained in:
parent
b0738b56bf
commit
f490d28e28
17
hyphen-dumplog.patch
Normal file
17
hyphen-dumplog.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- tests/test.sh 2012-04-12 15:29:53.576994298 +0100
|
||||
+++ tests/test.sh 2012-04-12 15:30:06.447143498 +0100
|
||||
@@ -7,12 +7,14 @@
|
||||
if ! grep -q 'ERROR SUMMARY: 0 error' $log; then
|
||||
echo "Fail in $NAME $1 checking detected by Valgrind"
|
||||
echo "$log Valgrind log file moved to $TEMPDIR/badlogs"
|
||||
+ cat $log
|
||||
mv $log $TEMPDIR/badlogs
|
||||
exit 1
|
||||
fi
|
||||
if grep -q 'LEAK SUMMARY' $log; then
|
||||
echo "Memory leak in $NAME $1 checking detected by Valgrind"
|
||||
echo "$log Valgrind log file moved to $TEMPDIR/badlogs"
|
||||
+ cat $log
|
||||
mv $log $TEMPDIR/badlogs
|
||||
exit 1
|
||||
fi
|
32
tests/scripts/make_check.sh
Executable file
32
tests/scripts/make_check.sh
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
############################################################################
|
||||
#Developed for hyphen
|
||||
#This script is used to check sanity for hyphen package
|
||||
#Usage : ./make_check.sh
|
||||
#
|
||||
############################################################################
|
||||
|
||||
file_count=13
|
||||
pkg="hyphen"
|
||||
|
||||
check_return_value () {
|
||||
if [ $1 != 0 ] ; then
|
||||
exit $1
|
||||
fi
|
||||
}
|
||||
|
||||
check_files_count(){
|
||||
no_of_files=`rpm -qlv $pkg | wc -l`
|
||||
if [ $no_of_files == $file_count ]
|
||||
then
|
||||
echo "PASS"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
}
|
||||
|
||||
cd ../source
|
||||
autoreconf -i
|
||||
automake --foreign -Wall
|
||||
./configure && make && make check
|
||||
check_files_count
|
24
tests/tests.yml
Normal file
24
tests/tests.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
roles:
|
||||
- role: standard-test-source
|
||||
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tests:
|
||||
- make-check:
|
||||
dir: scripts
|
||||
run: bash ./make_check.sh
|
||||
required_packages:
|
||||
- autoconf
|
||||
- automake
|
||||
- libtool
|
||||
- m4
|
||||
- gcc
|
||||
- sed
|
||||
- make
|
Loading…
Reference in New Issue
Block a user