# HG changeset patch
# User Nick Wellnhofer <wellnhofer@aevum.de>
# Date 1662577742 -7200
#      Wed Sep 07 21:09:02 2022 +0200
# Node ID bd9c8fcabb45481d19cbdc14b516bcc7bc98e55c
# Parent  3dcc57fae6551d23cff41439036a9aa949c79809
gitlab-ci: Run Autotools tests with out-of-tree (VPATH) builds

diff --git a/.gitlab-ci/test.sh b/.gitlab-ci/test.sh
--- a/.gitlab-ci/test.sh
+++ b/.gitlab-ci/test.sh
@@ -8,6 +8,8 @@
 make -j$(nproc)
 cd ..
 
-sh autogen.sh $CONFIG --with-libxml-src=libxml2
+mkdir -p libxslt-build
+cd libxslt-build
+sh ../autogen.sh $CONFIG --with-libxml-src=../libxml2
 make -j$(nproc) V=1 CFLAGS="$CFLAGS -Werror"
-make -s check
+make -s CFLAGS="$CFLAGS -Werror" check