Commit 9fcd3c14 authored by Kunshan Wang's avatar Kunshan Wang

Added a test.sh script

Preparations need to be done before testing, such as compiling native
programs and setting environment variables.
parent cbcf4592
......@@ -93,6 +93,31 @@ need to be built.
See [cbinding/README.md](cbinding/README.md) and
[pythonbinding/README.md](pythonbinding/README.md) for more details.
## How to test
For the impatient: run the `test.sh` script.
Detailed steps:
1. Compile native programs necessary for testing the native interface:
```bash
pushd tests/c-snippets
make
popd
```
2. Set the `TRAVIS` environment variable to `true`:
```bash
export TRAVIS=true
```
This will tell the test cases in `src/test/scala` not to print excessive logs
which would be helpful for identifying problems for individual test cases.
3. Run `sbt test`.
## How to run
For the impatient: Execute the following command and see Mu running a factorial
......
#!/bin/sh
pushd tests/c-snippets/
make
popd
env TRAVIS=true sbt test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment