From c8a9668d46f4d334c6ea202d972984e9cae8bb60 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Tue, 18 Jul 2023 11:59:27 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 1 + tests/make_check.sh | 18 ++++++++++++++++++ tests/tests.yml | 20 ++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 tests/make_check.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 6f93ca2..bece7de 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +/libdatrie-0.2.8.tar.xz /libdatrie-0.2.9.tar.xz 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..2354d18 --- /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 + - doxygen + tests: + - make-check: + dir: ./ + run: bash ./make_check.sh ./source