diff --git a/.gitignore b/.gitignore index 63644b5..e7b40be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -SOURCES/libhangul-0.1.0.tar.gz +libhangul-0.0.10.tar.gz +/libhangul-0.0.11.tar.gz +/libhangul-0.0.12.tar.gz /libhangul-0.1.0.tar.gz diff --git a/libhangul.spec b/libhangul.spec index 52fda92..117706f 100644 --- a/libhangul.spec +++ b/libhangul.spec @@ -29,9 +29,9 @@ providing Hangul input. %prep %setup -q -autoreconf -fi %build +autoreconf -fi %configure --disable-static make %{?_smp_mflags} diff --git a/tests/make_check.sh b/tests/make_check.sh new file mode 100644 index 0000000..00f8111 --- /dev/null +++ b/tests/make_check.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -x + +check_return_value () { + if [ $1 != 0 ] ; then + exit $1 + fi +} + +cd $1 +autoreconf -f -i -v +./configure --prefix=/usr +check_return_value $? +make +check_return_value $? +make check +exit $? diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..541d40c --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,20 @@ +- hosts: localhost + vars: + - artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}" + tags: + - classic + remote_user: root + roles: + - role: standard-test-source # to get the source tar ball to do “make check” + - role: standard-test-basic + required_packages: + - make + - gcc + - autoconf + - automake + - libtool + - gettext-devel + tests: + - make-check: + dir: ./ + run: bash ./make_check.sh ./source