diff options
| author | J08nY | 2025-10-02 12:50:43 +0200 |
|---|---|---|
| committer | J08nY | 2025-10-02 12:50:43 +0200 |
| commit | 5528f8a804be5e0673335e5e843ce8dbe2dd02ba (patch) | |
| tree | 795a67e5025fae4be052f0e059d1f7a264fc5e55 /test/Makefile | |
| parent | 3a0ebdac2067e5695b632a12345fae0b6ba75c83 (diff) | |
| download | pyecsca-codegen-5528f8a804be5e0673335e5e843ce8dbe2dd02ba.tar.gz pyecsca-codegen-5528f8a804be5e0673335e5e843ce8dbe2dd02ba.tar.zst pyecsca-codegen-5528f8a804be5e0673335e5e843ce8dbe2dd02ba.zip | |
More tests for bn functions.
Diffstat (limited to 'test/Makefile')
| -rw-r--r-- | test/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index eb6724a..d0068a2 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,3 +1,13 @@ -test_bn: test_bn.c ../pyecsca/codegen/bn/bn.c +test_bn_san: test_bn.c ../pyecsca/codegen/bn/bn.c gcc -g -o $@ $^ -fsanitize=address -fsanitize=undefined -I ../pyecsca/codegen/ -I ../pyecsca/codegen/tommath/ -L ../pyecsca/codegen/tommath/ -l:libtommath-HOST.a + +test_bn_val: test_bn.c ../pyecsca/codegen/bn/bn.c + gcc -g -o $@ $^ -I ../pyecsca/codegen/ -I ../pyecsca/codegen/tommath/ -L ../pyecsca/codegen/tommath/ -l:libtommath-HOST.a + + +test: test_bn_san test_bn_val + ./test_bn_san + valgrind -q ./test_bn_val + +.PHONY: test
\ No newline at end of file |
