Testing functions

For testing, debugging, demonstrations and benchmarks. Declared in pbc_test.h:

void pbc_demo_pairing_init(pairing_t pairing, int argc, char **argv)

Initializes pairing from file specified as first argument, or from standard input if there is no first argument.

double pbc_get_time(void)

Returns seconds elapsed since the first call to this function. Returns 0 the first time.


Macro: if condition evaluates to 0 then print an error.

int pbc_err_count

Total number of failed EXPECT checks.