Improving testing

This commit is contained in:
retropikzel 2025-11-29 09:20:28 +02:00
parent a63ea418b6
commit 900d196661
4 changed files with 19 additions and 5 deletions

12
.gitignore vendored
View File

@ -5,4 +5,16 @@
.* .*
Akku.lock Akku.lock
Akku.manifest Akku.manifest
foreign
*.log
*.a
*.o
*.so
*.c
*.import.scm
*.link
test-r6rs.sps
test-r6rs
test-r7rs.scm
test-r7rs

View File

@ -10,12 +10,13 @@ RUN wget https://gitlab.com/-/project/6808260/uploads/094ce726ce3c6cf8c14560f1e3
&& mv akku-1.1.0.amd64-linux akku && mv akku-1.1.0.amd64-linux akku
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1 RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
RUN git clone https://codeberg.org/retropikzel/compile-scheme.git --depth=1 RUN git clone https://codeberg.org/retropikzel/compile-scheme.git --depth=1
RUN git clone https://codeberg.org/foreign-c/foreign-c.git --depth=1
WORKDIR /build/chibi-scheme WORKDIR /build/chibi-scheme
RUN make RUN make
RUN make install RUN make install
WORKDIR /build/compile-scheme WORKDIR /build/compile-scheme
RUN make build-gauche RUN make build-gauche
WORKDIR /build
RUN git clone https://codeberg.org/foreign-c/foreign-c.git --depth=2
ARG SCHEME=chibi ARG SCHEME=chibi
ARG IMAGE=${SCHEME}:head ARG IMAGE=${SCHEME}:head
@ -35,8 +36,8 @@ RUN bash install.sh
ENV PATH=/root/.local/bin:${PATH} ENV PATH=/root/.local/bin:${PATH}
RUN akku update RUN akku update
WORKDIR /build/foreign-c WORKDIR /build/foreign-c
RUN timeout 60 snow-chibi install --impls=${SCHEME} --always-yes "(srfi 64)" RUN if [ ! "${SCHEME}" = "racket" ]; then timeout 30 snow-chibi install --impls=${SCHEME} --always-yes "(srfi 64)"; fi
RUN timeout 60 snow-chibi install --impls=${SCHEME} --always-yes "(foreign c)" RUN if [ ! "${SCHEME}" = "larceny" ]; then timeout 30 snow-chibi install --impls=${SCHEME} --always-yes "(foreign c)"; fi
RUN make SCHEME=${SCHEME} build install RUN make SCHEME=${SCHEME} build install
WORKDIR /workdir WORKDIR /workdir
RUN cp -r /build/foreign-c/foreign . RUN cp -r /build/foreign-c/foreign .

4
Jenkinsfile vendored
View File

@ -35,7 +35,7 @@ pipeline {
def IMG="${SCHEME}:head" def IMG="${SCHEME}:head"
stage("${SCHEME} - ${LIBRARY}") {k stage("${SCHEME} - ${LIBRARY}") {k
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker" sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r6rs-docker"
} }
} }
} }
@ -54,7 +54,7 @@ pipeline {
} }
stage("${SCHEME} - ${LIBRARY}") { stage("${SCHEME} - ${LIBRARY}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "timeout 6000 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker" sh "timeout 600 make SCHEME=${SCHEME} LIBRARY=${LIBRARY} test-r7rs-docker"
} }
} }
} }

View File

@ -1,4 +1,5 @@
.SILENT: build install test test-docker clean .SILENT: build install test test-docker clean
.PHONY: test-r6rs test-r7rs
SCHEME=chibi SCHEME=chibi
LIBRARY=system LIBRARY=system
AUTHOR=Retropikzel AUTHOR=Retropikzel