Skip to content

Commit

Permalink
Verify output of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-s committed Jun 24, 2024
1 parent 9cd4c23 commit f13c8d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
gcc -Wall -o example example.c -lcalc -lsbcl
sudo mv libcalc.so /usr/local/lib
sudo cp libcalc.core /usr/local/lib
echo "(+ 1 2)" | ./example
echo "(+ 1 2)" | python ./example.py
echo "(+ 1 2)" | ./example | tr -d '\n' | grep "> 3> "
echo "(+ 1 2)" | python ./example.py | tr -d '\n' | grep "> 3> "
4 changes: 2 additions & 2 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:
$SBCL_SRC/run-sbcl.sh --script script.lisp
gcc -Wall -fPIC -shared -o libcalc.dylib libcalc.c -lsbcl
gcc -Wall -o example example.c -lcalc -lsbcl
echo "(+ 1 2)" | ./example
echo "(+ 1 2)" | python3 ./example.py
echo "(+ 1 2)" | ./example | tr -d '\n' | grep "> 3> "
echo "(+ 1 2)" | python3 ./example.py | tr -d '\n' | grep "> 3> "
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ jobs:
gcc -Wall -o example example.c -lcalc -L.
mv libcalc.dll $MSYSTEM_PREFIX/bin
cp libcalc.core $MSYSTEM_PREFIX/bin
echo "(+ 1 2)" | ./example.exe
echo "(+ 1 2)" | python ./example.py
echo "(+ 1 2)" | ./example.exe | tr -d '\r\n' | grep "> 3> "
echo "(+ 1 2)" | python ./example.py | tr -d '\r\n' | grep "> 3> "

0 comments on commit f13c8d6

Please sign in to comment.