Idris2/tests/base/system_system/run
Mathew Polzin 4220c644cf
Add a few missing NodeJS FFI functions to System (#2271)
* support for system command via node backend.

* Add env var set/unset

* fix env unset function

* Update libs/base/System.idr

* modify system test to cover node and chez.

* Add base tests for env get/set
2022-01-18 22:43:03 -08:00

12 lines
243 B
Plaintext
Executable File

rm -rf build
# @system@ uses primitive functions with definitions for both
# C (supported by most backends) and Node.
$1 --cg chez -o test Test.idr
./build/exec/test
rm -rf ./build
$1 --cg node -o test.js Test.idr
node ./build/exec/test.js