blob: d0068a24754cce0ca55fcd8ffbef368eb0cc758c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|