Making tests work

This commit is contained in:
retropikzel 2025-07-20 12:52:43 +03:00
parent 8b81d265ea
commit e49cd2eff3
2 changed files with 5 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -32,7 +32,7 @@ pipeline {
DOCKERIMG="${implementation}:head"
}
sh "docker build --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${implementation} --tag=foreign-c-test-${implementation} -f dockerfiles/Dockerfile.snow-chibi-install-test ."
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make SCHEME=${implementation} clean install-jenkins && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} timeout 120 printf \"\\n\" | compile-r7rs -o hello hello.scm && timeout 120 printf \"\\n\" | ./hello\""
sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make SCHEME=${implementation} clean install-jenkins && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} printf \"\\n\" | timeout 120 compile-r7rs -o hello hello.scm && printf \"\\n\" | timeout 120 ./hello\""
}
}
tests.each { test ->

View File

@ -1,7 +1,10 @@
ARG SCHEME=chibi
ARG IMAGE=chibi:head
FROM schemers/${IMAGE}
RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install \
--no-install-suggests \
--no-install-recommends \
-y \
build-essential \
make \
libffi-dev \