Skip to content

Commit

Permalink
Chibi R7RS Tests (#11)
Browse files Browse the repository at this point in the history
This PR introduces a modified version of the Chibi Scheme R7RS conformance tests to the spec/ folder. Also includes a simple SRFI-64 test library implementation.

This test suite checks for R7RS compliance, most of it is commented out
for now.
  • Loading branch information
iwillspeak committed Sep 17, 2021
1 parent 3b6519c commit 2356344
Show file tree
Hide file tree
Showing 9 changed files with 76,071 additions and 344 deletions.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ steps:
dotnet test --no-build --configuration $(configuration) --logger 'trx' --logger 'console;verbosity=normal'
dotnet pack --no-build --configuration $(configuration) --output=$(Build.ArtifactStagingDirectory)
- task: PublishTestResults@2
condition: always()
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/TestResults/*.trx'
Expand Down
28 changes: 28 additions & 0 deletions runspec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#! /usr/bin/env bash

if [ $# -ne 1 ]
then
cat <<EOF
Usage: runspec.sh <specname>
Arguments:
<specname> The name of the specfile to compile and run.
EOF
exit -1
fi

specname=`fd $1 spec/`
if [ $? -ne 0 ]
then
echo >2 "Can't find spec file $1"
fi

specbin=spec/bin/$(basename ${specname/.scm/.exe})

cd "$( dirname "${BASH_SOURCE[0]}" )"

set -euo pipefail

dotnet build --configuration Release src/Feersum/Feersum.fsproj > /dev/null && \
dotnet src/Feersum/bin/Release/net5.0/Feersum.dll ${specname} --outputtype exe -o ${specbin} && \
dotnet ${specbin}

0 comments on commit 2356344

Please sign in to comment.