From aeccf77075399f05d91554340fadec6e6d4a84a3 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Tue, 15 Jul 2025 15:09:02 +0300 Subject: [PATCH] Add timeout to tests --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fda74b7..69ff65a 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ test-r7rs: echo "(define baz (lambda () (display \"Test successfull\") (newline)))" > ${R7RSTMP}/libs/foo/bar.scm echo "(define-library (foo bar) (import (scheme base) (scheme write)) (export baz) (include \"bar.scm\"))" > ${R7RSTMP}/libs/foo/bar.sld cd ${R7RSTMP} && COMPILE_R7RS=${SCHEME} compile-r7rs -I ./libs -o main main.scm - -cd ${R7RSTMP} && ./main > compile-r7rs-test-result.txt 2>&1 + -cd ${R7RSTMP} && timeout 60 ./main > compile-r7rs-test-result.txt 2>&1 @grep "Test successfull" ${R7RSTMP}/compile-r7rs-test-result.txt || (echo "Test failed, output: " && cat ${R7RSTMP}/compile-r7rs-test-result.txt && exit 1) test-r7rs-docker: