Debug additions
This commit is contained in:
parent
168d749d6d
commit
320e32d393
|
|
@ -1,26 +1,9 @@
|
||||||
ARG SCHEME=chibi
|
|
||||||
ARG IMAGE=chibi:head
|
|
||||||
FROM debian:bookworm AS cache
|
|
||||||
RUN apt-get update && apt-get install -y gcc make git
|
|
||||||
WORKDIR /cache
|
|
||||||
RUN git clone https://github.com/ashinn/chibi-scheme.git --depth=1
|
|
||||||
WORKDIR /cache/chibi-scheme
|
|
||||||
RUN make
|
|
||||||
|
|
||||||
ARG SCHEME=chibi
|
ARG SCHEME=chibi
|
||||||
ARG IMAGE=chibi:head
|
ARG IMAGE=chibi:head
|
||||||
FROM schemers/${IMAGE}
|
FROM schemers/${IMAGE}
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y gauche make
|
||||||
--no-install-recommends \
|
|
||||||
build-essential libffi-dev unzip php libreadline-dev
|
|
||||||
COPY --from=cache /cache /cache
|
|
||||||
WORKDIR /cache/chibi-scheme
|
|
||||||
RUN make install
|
|
||||||
WORKDIR /
|
|
||||||
RUN mkdir -p ${HOME}/.snow && echo "()" > ${HOME}/.snow/config.scm
|
|
||||||
RUN snow-chibi install --always-yes "(foreign c)"
|
|
||||||
RUN snow-chibi install --always-yes "(srfi 170)"
|
|
||||||
COPY Makefile .
|
COPY Makefile .
|
||||||
COPY libs libs/
|
COPY libs libs/
|
||||||
COPY compile-r7rs.scm .
|
COPY compile-scheme.scm .
|
||||||
RUN make build-chibi && make install
|
COPY doc doc/
|
||||||
|
RUN make build-gauche && make install
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -124,7 +124,7 @@ test-r7rs:
|
||||||
rm -rf ${R7RSTMP}
|
rm -rf ${R7RSTMP}
|
||||||
mkdir -p ${R7RSTMP}
|
mkdir -p ${R7RSTMP}
|
||||||
cp -r r7rs-testfiles/* ${R7RSTMP}/
|
cp -r r7rs-testfiles/* ${R7RSTMP}/
|
||||||
cd ${R7RSTMP} && COMPILE_R7RS=${SCHEME} compile-scheme -I ./libs main.scm
|
cd ${R7RSTMP} && COMPILE_R7RS=${SCHEME} compile-scheme -I --debug ./libs main.scm
|
||||||
-cd ${R7RSTMP} && ./main 1 2 3 > test-result.txt 2>&1
|
-cd ${R7RSTMP} && ./main 1 2 3 > test-result.txt 2>&1
|
||||||
@grep "Test successfull (\"1\" \"2\" \"3\")" ${R7RSTMP}/test-result.txt || (echo "Test failed, output: " && cat ${R7RSTMP}/test-result.txt && exit 1)
|
@grep "Test successfull (\"1\" \"2\" \"3\")" ${R7RSTMP}/test-result.txt || (echo "Test failed, output: " && cat ${R7RSTMP}/test-result.txt && exit 1)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -216,6 +216,11 @@
|
||||||
(apply (cdr (assoc 'library-command (cdr (assoc scheme data))))
|
(apply (cdr (assoc 'library-command (cdr (assoc scheme data))))
|
||||||
(list library-file prepend-directories append-directories r6rs?))))
|
(list library-file prepend-directories append-directories r6rs?))))
|
||||||
|
|
||||||
|
(when debug?
|
||||||
|
(display "[debug] scheme-library-command: ")
|
||||||
|
(write scheme-library-command)
|
||||||
|
(newline))
|
||||||
|
|
||||||
|
|
||||||
(define list-of-features
|
(define list-of-features
|
||||||
(letrec ((looper (lambda (rest result)
|
(letrec ((looper (lambda (rest result)
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,16 @@
|
||||||
(search-library-file (append append-directories
|
(search-library-file (append append-directories
|
||||||
prepend-directories)
|
prepend-directories)
|
||||||
library-file)))))
|
library-file)))))
|
||||||
(command . ,(lambda (input-file output-file prepend-directories append-directories library-files r6rs?)
|
(command . ,(lambda (exec-cmd
|
||||||
|
script-file
|
||||||
|
args
|
||||||
|
input-file
|
||||||
|
output-file
|
||||||
|
prepend-directories
|
||||||
|
append-directories
|
||||||
|
library-files
|
||||||
|
r6rs?
|
||||||
|
compilation-target)
|
||||||
(let ((output-tmp-file (string-append output-file ".tmp")))
|
(let ((output-tmp-file (string-append output-file ".tmp")))
|
||||||
`(,(string-append "echo \"#!/usr/bin/env gsi -:r7rs,search="
|
`(,(string-append "echo \"#!/usr/bin/env gsi -:r7rs,search="
|
||||||
(apply string-append
|
(apply string-append
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue