From f0b212cb18b3d0990e9a56495c3a96d6847c3f5a Mon Sep 17 00:00:00 2001 From: Ashutosh Varma Date: Thu, 18 Mar 2021 20:25:50 +0530 Subject: [PATCH] add readme for test helper cli wasm --- utils/testsuite_helper/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 utils/testsuite_helper/README.md diff --git a/utils/testsuite_helper/README.md b/utils/testsuite_helper/README.md new file mode 100644 index 0000000..1fdd99f --- /dev/null +++ b/utils/testsuite_helper/README.md @@ -0,0 +1,25 @@ +# testsuite_helper + +This module is primarily used to expose `JSON.parse` through a CLI environment for testing purpose. + +### Return codes :- +- 0 - If successfully parsed the input +- 2 - Can't read the file properly + +(It needs `wasmtime` to execute) + +## Build +``` +yarn +yarn build +``` + +## Run +``` +yarn start --dir FOLDER JSON_FILE_NAME +``` +or +``` +wasmtime build/index.wasm --dir FOLDER JSON_FILE_NAME +``` +