Add Apache License version 2.0.
[pbc.git] / test
blob96cb1a0975a53a5174cf22ca2e8b0d567b6ffbf7
1 #!/bin/bash
3 function show_result() {
4 red=$'\e'"[31m"
5 green=$'\e'"[32;1m"
6 normal=$'\e'"[0m"
7 if [[ $1 != 0 ]]; then
8 echo $red"[FAILED]"$normal $t
9 else
10 echo $green"[PASSED]"$normal $t
14 make test
15 make pbc/pbc
16 for t in pbc/pairing_test.pbc pbc/g2_test.pbc pbc/bilinear.test ; do
17 pbc/pbc $t > /dev/null
18 show_result $?
19 done
21 for t in guru/fp_test guru/quadratic_test guru/poly_test guru/prodpairing_test guru/ternary_extension_field_test guru/eta_T_3_test ; do
22 $t > /dev/null
23 show_result $?
24 done