From 5dfae3416eb3e8e872645864eda08d29a4f19489 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Fri, 12 Dec 2025 12:27:41 +0200 Subject: [PATCH] Improve testing --- Jenkinsfile | 4 ++-- Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 46621b0..cdf4005 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ pipeline { [(SCHEME): { stage("${SCHEME}") { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "make SCHEME=${SCHEME} DOCKER_QUIET='' test-r6rs-docker" + sh "timeout 600 make SCHEME=${SCHEME} DOCKER_QUIET='' test-r6rs-docker" } } }] @@ -48,7 +48,7 @@ pipeline { [(SCHEME): { stage("${SCHEME}") { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "make SCHEME=${SCHEME} DOCKER_QUIET='' test-r7rs-docker" + sh "timeout 600 make SCHEME=${SCHEME} DOCKER_QUIET='' test-r7rs-docker" } } }] diff --git a/Makefile b/Makefile index 07c483e..23de3c8 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ test-r6rs-docker: ${TMPDIR} test-r7rs: ${TMPDIR} cd ${TMPDIR} && echo "(import (scheme base) (scheme write) (scheme read) (scheme char) (scheme file) (scheme process-context) (srfi 64) (retropikzel ${LIBRARY}))" > test-r7rs.scm cat ${TESTFILE} >> ${TMPDIR}/test-r7rs.scm - cd ${TMPDIR} && COMPILE_R7RS=${SCHEME} timeout 120 compile-scheme -I . -o test-r7rs test-r7rs.scm + cd ${TMPDIR} && COMPILE_R7RS=${SCHEME} timeout 120 compile-scheme -o test-r7rs test-r7rs.scm cd ${TMPDIR} && timeout 60 ./test-r7rs test-r7rs-docker: ${TMPDIR}