#!/bin/bash set -euo pipefail patch --no-backup-if-mismatch -p1 <<'PATCH' --- a/debian/rules +++ b/debian/rules @@ -75,10 +75,12 @@ chmod +x ./maxima-local touch tests/tests-gcl.log +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) GCL_MEM_MULTIPLE=1.0 GCL_GC_PAGE_MIN=0.5 GCL_GC_PAGE_MAX=0.75 GCL_GC_ALLOC_MIN=0.05 HOME=$$(pwd) \ ./maxima-local -g --lisp=gcl --batch-string="run_testsuite(share_tests=true);" >tmp 2>&1 & \ j=$$! ; echo Waiting on pid $$j ; \ tail -f --pid=$$j --retry tests/tests-gcl.log tmp & wait $$j +endif touch tmp cat tmp >debian/test_results.out PATCH