Add a test case

This commit is contained in:
Mathew Polzin 2024-01-06 14:30:35 -06:00
parent aba9fa706c
commit 3245a3e66f
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
module TestExecutable
import System
main : IO ()
main = putStrLn "Hi there!"

View File

@ -0,0 +1,2 @@
Hi there!
Hi there!

View File

@ -0,0 +1,9 @@
. ../../testutils.sh
idris2 --cg node -o node_executable TestExecutable.idr > /dev/null
# node still executes it
node ./build/exec/node_executable
# can be executed on its own due to shebang and executable bit
./build/exec/node_executable