Idris2/tests/base/system_env/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
273 B
Plaintext
Executable File

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