Lines Matching refs:tests

3 	* tests/run-tests: Update WINEPATH, instead of overwriting it.
14 * tests/t-str.c: Test out-of-range bases for mpz_out_str.
15 * tests/t-mpq_str.c: Likewise, for mpq_out_str.
19 * tests/run-tests: Better support for make check on wine or cygwin.
23 * tests/t-mpq_double.c (mpq_get_d_exact_p): Cleanup.
25 * mini-gmp.h: Update FILE tests from gmp-h (tx Vincent Lefèvre).
29 * tests/t-mpq_muldiv_2exp.c (testmain): Cast printf args to right type.
31 * tests/t-double.c: Provide default M_PI definition.
35 * tests/hex-random.h (enum hex_random_op): Remove final ",".
52 * tests/t-gcd.c (gcdext_valid_p): Stricter checks for gcdext
67 * tests/hex-random.c (hex_random_lucm_op): New function.
68 * tests/hex-random.h: Declare it.
69 * tests/mini-random.c (mini_random_lucm_op): New function.
70 * tests/mini-random.h: Declare it.
71 * mini-gmp/tests/t-lucm.c: New test
72 * mini-gmp/tests/Makefile (CHECK_PROGRAMS): Add t-lucm.
76 * tests/t-div.c (testmain): Add missing const declarations.
85 * tests/t-double.c (test_matissa): Tests converted bits.
91 * tests/t-mpq_addsub: New tests for mpq_add and sub.
92 * tests/t-mpq_muldiv: New tests for mpq_mul and div.
93 * tests/t-mpq_muldiv_2exp: New tests for mpq_*_2exp.
113 * tests/t-comb.c (checkWilson): Check also mpz_2fac_ui.
131 * tests/t-str.c: Update tests accordingly.
137 * tests/t-signed.c: Removed a typo
141 * tests/hex-random.c (mkseed): Produce a 48-bit mpz_t value,
146 * tests/hex-random.c (mkseed): New function, using /dev/urandom
157 * tests/t-invert.c (test_3by2, test_2by1): New functions,
164 * tests/t-signed.c: compare different signs, and after overflow.
168 * tests/t-signed.c: Reorganize testcase, to avoid undefined
173 * tests/run-tests: Set up LD_LIBRARY_PATH and DYLD_LIBRARY_PATH
174 for tests only, based on TEST_LIBRARY_PATH.
176 * tests/mini-random.h: Use name "../mini-gmp.h" for include, so we
179 * tests/Makefile: Pass CFLAGS to the linker, as
188 * tests/Makefile: Pass EXTRA_CFLAGS to linker as a intermediate fix.
192 * tests/t-str.c: free a pointer to avoid memory leaks.
201 * tests/t-limbs.c (testmain): Skip tests with zero product.
203 * tests/hex-random.c (hex_random_init): Added fflush call.
207 * tests/Makefile (TESTS): New variable, allowing separation of
208 compilation and running of tests.
209 * tests/run-tests: Allow empty tests list.
213 * tests/t-str.c: Some more test cases.
214 * tests/t-pprime_p.c: Use shorter operands, with different sizes.
218 * tests/hex-random.c: Reinstate gmp.h inclusion.
233 * tests/testutils.c: Likewise.
234 * tests/t-logops.c: Likewise.
235 * tests/t-cmp_d.c: Likewise.
236 * tests/t-reuse.c: Likewise.
237 * tests/t-cong.c: Likewise.
285 * tests/t-pprime_p.c: New test program.
286 * tests/Makefile (CHECK_PROGRAMS): Added t-pprime_p.
292 * tests/t-cong.c: New file, based on tests/mpz/t-cong.c.
293 * tests/Makefile (CHECK_PROGRAMS): Added t-cong.
295 * tests/testutils.c (dump): New function. Deleted static
298 * tests/t-cmp_d.c: ... old location.
300 * tests/t-reuse.c (dump3): Renamed, from ...
307 * tests/t-sqrt.c: Test it.
315 * tests/t-limbs.c: New test for mpz_limbs_*.
316 * tests/Makefile (CHECK_PROGRAMS): Add it.
325 * tests/t-mul.c: Use roinit and limbs_read to test mpn.
326 * tests/t-sqrt.c: Test also mpn_perfect_square_p.
336 * tests/t-sqrt.c: Test mpz_perfect_square_p.
337 * tests/t-root.c: Test also 1-th root, allow perfect powers.
341 * tests/t-aorsmul.c: New file, test for mpz_{add,sub}mul{,_ui}
342 * tests/Makefile: Add t-aorsmul.
368 * tests/t-scan.c: Test also mpn_scan0 and mpn_scan1.
372 * tests/t-double.c (testmain): Declare double variables as
375 * tests/testutils.c (testfree): New function. Use it everywhere
386 * tests/t-reuse.c: Fix typo causing the same negation condition to
411 * tests/t-str.c: Cast size_t to unsigned long, for printf.
412 * tests/t-import.c: Likewise.
413 * tests/t-comb.c: Remove an unused var.
414 * tests/t-div.c: Remove unused args passed to fprintf.
415 * tests/t-double.c: Use float immediates with float vars.
422 * tests/testutils.h: Include stdio.h and stdlib.h.
425 * tests/t-cmp_d.c: New file, copied from tests/mpz/t-cmp_d.c with
427 * tests/Makefile (CHECK_PROGRAMS): Added t-cmp_d,
434 * tests/t-str.c (testmain): Test mpz_out_str, using
439 * tests/testutils.c (testhalves): New function, test default
441 * tests/testutils.h (testhalves): Declare it
442 * tests/t-logops.c: Use testhalves.
446 * tests/t-str.c: Test mpz_init_set_str.
450 * tests/t-double.c (testmain): Get the current free
452 * tests/t-str.c (testmain): Likewise.
454 * tests/testutils.h (tu_free): Remove declaration.
456 * tests/testutils.c (block_check, tu_free): Mark static.
460 * tests/t-str.c (test_small): New function, exercising
464 * tests/t-gcd.c (gcdext_valid_p): Fixed memory leak.
466 * tests/t-double.c (testmain): Call tu_free rather than
468 * tests/t-str.c (testmain): Likewise.
470 * tests/testutils.c (block_init, block_check): New functions.
473 * tests/testutils.h (tu_free): Declare.
475 * tests/testutils.h: New file, declarations for test programs.
477 * tests/testutils.c (main): New file, with shared main
484 * tests/t-signed.c: Slightly larger coverage.
485 * tests/t-double.c: Test also mpz_init_set_d.
489 * tests/t-div.c: Test mpz_divisible_p and mpz_divisible_ui_p.
491 * tests/t-div.c: Test also mpz_mod, mpz_mod_ui. Compare
498 * tests/t-double.c: Test mpz_cmp_d.
502 * tests/t-str.c: Test base <= 0.
506 * tests/t-str.c (main): Use x->_mp_d rather than x[0]._mp_d.
507 * tests/t-invert.c (main): Likewise.
509 * tests/t-mul.c (main): Test mpn_mul_n and mpn_sqr.
511 * tests/hex-random.h (enum hex_random_op): New value OP_SQR.
513 * tests/mini-random.c (mini_random_op3): Renamed, from...
517 * tests/hex-random.c (hex_random_op3): Renamed, from...
523 * tests/t-logops.c: Improve popcount/hamdist testing.
524 * tests/t-signed.c: Test more cases.
528 * tests/t-str.c (main): Added tests for mpn_get_str and
533 * tests/t-comb.c: New test program, testing both
535 * tests/Makefile (CHECK_PROGRAMS): Added t-comb.
546 * tests/t-root.c: Use mpz_ui_pow_ui, when base fits an ui.
548 * tests/t-mul.c: Test also mpz_mul_si.
549 * tests/t-sub.c: Test also mpz_ui_sub.
552 * tests/t-signed.c: New test program, for get/set/cmp_si.
553 * tests/Makefile (CHECK_PROGRAMS): Added t-signed.
556 * tests/t-logops.c: Test also popcount and hamdist.
561 * tests/t-import.c: Test also size=0 or count=0.
565 * tests/t-import.c (main): Don't drop off function end.
573 * tests/t-import.c: New test program, testing both
575 * tests/Makefile (CHECK_PROGRAMS): Added t-import.
577 * tests/mini-random.c (mini_rrandomb_export): New function.
578 * tests/mini-random.h: Declare it.
579 * tests/hex-random.c (hex_rrandomb_export): New function.
580 * tests/hex-random.h: Declare it.
598 * tests/run-tests: Copied latest version from GNU Nettle.
612 * tests/t-div.c: Test all _qr, _q, _r variants.
613 * tests/t-lcm.c: Test the _ui variant.
634 * tests/Makefile (CHECK_PROGRAMS): add t-root.
635 * tests/t-root.c: New file.
636 * tests/t-reuse.c: Enable root{,rem} tests.
645 * tests/t-reuse.c: New test case, based on tests/mpz/reuse.c.
659 * tests/Makefile (srcdir, MINI_GMP_DIR): New make variables. These