1## Process this file with automake to generate Makefile.in 2 3# Copyright 2000-2003 Free Software Foundation, Inc. 4# 5# This file is part of the GNU MP Library test suite. 6# 7# The GNU MP Library test suite is free software; you can redistribute it 8# and/or modify it under the terms of the GNU General Public License as 9# published by the Free Software Foundation; either version 3 of the License, 10# or (at your option) any later version. 11# 12# The GNU MP Library test suite is distributed in the hope that it will be 13# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 15# Public License for more details. 16# 17# You should have received a copy of the GNU General Public License along with 18# the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. 19 20 21AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tests 22AM_LDFLAGS = -no-install 23LDADD = $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la 24 25check_PROGRAMS = t-iset t-lc2exp t-mt t-rand t-urbui t-urmui t-urndmm 26TESTS = $(check_PROGRAMS) 27 28EXTRA_PROGRAMS = findlc gen gen.static spect stat 29gen_static_SOURCES = gen.c 30gen_static_LDFLAGS = -static 31findlc_LDADD = libstat.la 32spect_LDADD = libstat.la 33stat_LDADD = libstat.la 34 35EXTRA_LTLIBRARIES = libstat.la 36libstat_la_SOURCES = gmpstat.h statlib.c zdiv_round.c 37libstat_la_LIBADD = $(top_builddir)/libgmp.la $(LIBM) 38 39CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) 40 41allprogs: $(EXTRA_PROGRAMS) 42 43$(top_builddir)/tests/libtests.la: 44 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la 45 46manual-test: gen$(EXEEXT) stat$(EXEEXT) 47 @(echo -n '16i: '; ./gen -f mpz_urandomb -z 16 1000 \ 48 | ./stat -i 0xffff | grep '^[0-9]') 49 @(echo -n '32i: '; ./gen -f mpz_urandomb -z 32 1000 \ 50 | ./stat -i 0xffffffff | grep '^[0-9]') 51 @(echo -n '33i: '; ./gen -f mpz_urandomb -z 33 1000 \ 52 | ./stat -i 0x1ffffffff | grep '^[0-9]') 53 @(echo -n '64i: '; ./gen -f mpz_urandomb -z 64 1000 \ 54 | ./stat -i 0xffffffffffffffff | grep '^[0-9]') 55 @(echo -n '128i: '; ./gen -f mpz_urandomb -z 128 1000 \ 56 | ./stat -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^[0-9]') 57 58 @(echo -n '16f: '; ./gen -f mpf_urandomb -z 16 1000 \ 59 | ./stat | grep '^[0-9]') 60 @(echo -n '32f: '; ./gen -f mpf_urandomb -z 32 1000 \ 61 | ./stat | grep '^[0-9]') 62 @(echo -n '33f: '; ./gen -f mpf_urandomb -z 33 1000 \ 63 | ./stat | grep '^[0-9]') 64 @(echo -n '64f: '; ./gen -f mpf_urandomb -z 64 1000 \ 65 | ./stat | grep '^[0-9]') 66 @(echo -n '128f: '; ./gen -f mpf_urandomb -z 128 1000 \ 67 | ./stat | grep '^[0-9]') 68 69manual-bigtest: gen$(EXEEXT) stat$(EXEEXT) 70 @(echo '16i: '; ./gen -f mpz_urandomb -z 16 50000 \ 71 | ./stat -2 1000 -i 0xffff | grep '^K[mp]') 72 @(echo '32i: '; ./gen -f mpz_urandomb -z 32 50000 \ 73 | ./stat -2 1000 -i 0xffffffff | grep '^K[mp]') 74 @(echo '33i: '; ./gen -f mpz_urandomb -z 33 50000 \ 75 | ./stat -2 1000 -i 0x1ffffffff | grep '^K[mp]') 76 @(echo '64i: '; ./gen -f mpz_urandomb -z 64 50000 \ 77 | ./stat -2 1000 -i 0xffffffffffffffff | grep '^K[mp]') 78 @(echo '128i: '; ./gen -f mpz_urandomb -z 128 50000 \ 79 | ./stat -2 1000 -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^K[mp]') 80 81 @(echo '16f: '; ./gen -f mpf_urandomb -z 16 50000 \ 82 | ./stat -2 1000 | grep '^K[mp]') 83 @(echo '32f: '; ./gen -f mpf_urandomb -z 32 50000 \ 84 | ./stat -2 1000 | grep '^K[mp]') 85 @(echo '33f: '; ./gen -f mpf_urandomb -z 33 50000 \ 86 | ./stat -2 1000 | grep '^K[mp]') 87 @(echo '64f: '; ./gen -f mpf_urandomb -z 64 50000 \ 88 | ./stat -2 1000 | grep '^K[mp]') 89 @(echo '128f: '; ./gen -f mpf_urandomb -z 128 50000 \ 90 | ./stat -2 1000 | grep '^K[mp]') 91