summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2020-11-11 19:26:17 +0100
committerjvoisin2020-11-11 19:26:17 +0100
commitc0c0cf70a8579095d5b7c0fb53f86fca21799e52 (patch)
treefa23a6401f24c29661c476ccfb18492372366aff
parentc76c67ce7624bab488790a4843eb12348c6c044a (diff)
Add a `make tests` to run the testsuite
-rw-r--r--.gitlab-ci.yml6
-rw-r--r--Makefile3
2 files changed, 4 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75aa17e..8f99bb8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,14 +7,14 @@ testsuite:debian:
7 script: 7 script:
8 - apt-get -qqy update 8 - apt-get -qqy update
9 - apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev 9 - apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev
10 - make debug 10 - make tests
11 11
12testsuite:fedora: 12testsuite:fedora:
13 image: fedora 13 image: fedora
14 stage: testsuite 14 stage: testsuite
15 script: 15 script:
16 - dnf install -y php-devel gcc make pcre-devel 16 - dnf install -y php-devel gcc make pcre-devel
17 - make debug 17 - make tests
18 18
19testsuite:ubuntu: 19testsuite:ubuntu:
20 image: ubuntu 20 image: ubuntu
@@ -22,7 +22,7 @@ testsuite:ubuntu:
22 script: 22 script:
23 - apt-get -qqy update 23 - apt-get -qqy update
24 - DEBIAN_FRONTEND=noninteractive apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev php-cgi php-curl php-xml 24 - DEBIAN_FRONTEND=noninteractive apt-get -qqy install --no-install-recommends php-dev gcc make libpcre3-dev php-cgi php-curl php-xml
25 - make debug 25 - make tests
26 26
27testsuite:alpine: 27testsuite:alpine:
28 image: alpine 28 image: alpine
diff --git a/Makefile b/Makefile
index 4520875..695bfc0 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,7 @@ compile_debug: ## compile a debug build
18 export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug 18 export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug
19 make -C src 19 make -C src
20 20
21debug: compile_debug ## compile and run a debug build 21tests: release
22 sed -i "s/\$$ext_params -d display_errors=0 -r/-d display_errors=0 -r/" src/run-tests.php
23 TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test 22 TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test
24 23
25coverage: ## compile snuffleugpaus, and run the testsuite with coverage 24coverage: ## compile snuffleugpaus, and run the testsuite with coverage