Skip to content

Commit

Permalink
Test harness for "wasm-themis" package
Browse files Browse the repository at this point in the history
Add some test using Mocha as test runner (just like we do for JsThemis).
We don't have much API to check, just verify some basic invariants.

Add "test_wasm" target to Makefile and integrate that into CI builds.
Note that this target has to be run with 'emmake' helper.
  • Loading branch information
ilammy committed Apr 12, 2019
1 parent 2a7724b commit d5350fa
Show file tree
Hide file tree
Showing 6 changed files with 1,069 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ jobs:
- run: source /etc/profile.d/rvm.sh && rvm use system && make test_ruby
- run: make test_go
- run: make test_rust
- run: source "$HOME/emsdk/emsdk_env.sh"; emmake make test BUILD_PATH=build-wasm
- run: source "$HOME/emsdk/emsdk_env.sh"; emmake make BUILD_PATH=build-wasm test
- run: source "$HOME/emsdk/emsdk_env.sh"; emmake make BUILD_PATH=build-wasm test_wasm
- run: make fuzz
- run: $HOME/valgrind/bin/valgrind build/tests/soter_test 2>&1 | grep "ERROR SUMMARY\|definitely lost\|indirectly lost\|possibly lost" | awk '{sum += $4} END {print $0; if ( sum > 0 ) { exit 1 } }'
- run: $HOME/valgrind/bin/valgrind build/tests/themis_test 2>&1 | grep "ERROR SUMMARY\|definitely lost\|indirectly lost\|possibly lost" | awk '{sum += $4} END {print $0; if ( sum > 0 ) { exit 1 } }'
Expand Down
Loading

0 comments on commit d5350fa

Please sign in to comment.