mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 16:51:51 +03:00
Add a test case
This commit is contained in:
parent
aba9fa706c
commit
3245a3e66f
6
tests/node/executable/TestExecutable.idr
Normal file
6
tests/node/executable/TestExecutable.idr
Normal file
@ -0,0 +1,6 @@
|
||||
module TestExecutable
|
||||
|
||||
import System
|
||||
|
||||
main : IO ()
|
||||
main = putStrLn "Hi there!"
|
2
tests/node/executable/expected
Normal file
2
tests/node/executable/expected
Normal file
@ -0,0 +1,2 @@
|
||||
Hi there!
|
||||
Hi there!
|
9
tests/node/executable/run
Normal file
9
tests/node/executable/run
Normal 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
|
Loading…
Reference in New Issue
Block a user