summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2000-04-10 17:16:54 +0200
committerLinus Nordberg <linus@nordberg.se>2000-04-10 17:16:54 +0200
commitb44550f724be1160e114f229ee79663c94343638 (patch)
treed14b7e67efe6ae03e3bbe45df62a01a8fed2847d /tests
parent68399661ca3871ba574d1b76db952911a96c37ce (diff)
downloadgmp-b44550f724be1160e114f229ee79663c94343638.tar.gz
(test, bigtest): Quote argument to grep.
Diffstat (limited to 'tests')
-rw-r--r--tests/rand/Makefile.am66
1 files changed, 44 insertions, 22 deletions
diff --git a/tests/rand/Makefile.am b/tests/rand/Makefile.am
index 3d176b4a0..f2031ba3d 100644
--- a/tests/rand/Makefile.am
+++ b/tests/rand/Makefile.am
@@ -32,28 +32,50 @@ gen_static_LDFLAGS = -static
EXTRA_LTLIBRARIES = libstat.la
libstat_la_SOURCES = statlib.c zdiv_round.c
+EXTRA_DIST = gmpstat.h
+
test: gen stat
- @(echo -n '16i: '; ./gen -f mpz_urandomb -z 16 1000 | ./stat -i 0xffff | grep ^[0-9])
- @(echo -n '32i: '; ./gen -f mpz_urandomb -z 32 1000 | ./stat -i 0xffffffff | grep ^[0-9])
- @(echo -n '33i: '; ./gen -f mpz_urandomb -z 33 1000 | ./stat -i 0x1ffffffff | grep ^[0-9])
- @(echo -n '64i: '; ./gen -f mpz_urandomb -z 64 1000 | ./stat -i 0xffffffffffffffff | grep ^[0-9])
- @(echo -n '128i: '; ./gen -f mpz_urandomb -z 128 1000 | ./stat -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep ^[0-9])
-
- @(echo -n '16f: '; ./gen -f mpf_urandomb -z 16 1000 | ./stat | grep ^[0-9])
- @(echo -n '32f: '; ./gen -f mpf_urandomb -z 32 1000 | ./stat | grep ^[0-9])
- @(echo -n '33f: '; ./gen -f mpf_urandomb -z 33 1000 | ./stat | grep ^[0-9])
- @(echo -n '64f: '; ./gen -f mpf_urandomb -z 64 1000 | ./stat | grep ^[0-9])
- @(echo -n '128f: '; ./gen -f mpf_urandomb -z 128 1000 | ./stat | grep ^[0-9])
+ @(echo -n '16i: '; ./gen -f mpz_urandomb -z 16 1000 \
+ | ./stat -i 0xffff | grep '^[0-9]')
+ @(echo -n '32i: '; ./gen -f mpz_urandomb -z 32 1000 \
+ | ./stat -i 0xffffffff | grep '^[0-9]')
+ @(echo -n '33i: '; ./gen -f mpz_urandomb -z 33 1000 \
+ | ./stat -i 0x1ffffffff | grep '^[0-9]')
+ @(echo -n '64i: '; ./gen -f mpz_urandomb -z 64 1000 \
+ | ./stat -i 0xffffffffffffffff | grep '^[0-9]')
+ @(echo -n '128i: '; ./gen -f mpz_urandomb -z 128 1000 \
+ | ./stat -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^[0-9]')
+
+ @(echo -n '16f: '; ./gen -f mpf_urandomb -z 16 1000 \
+ | ./stat | grep '^[0-9]')
+ @(echo -n '32f: '; ./gen -f mpf_urandomb -z 32 1000 \
+ | ./stat | grep '^[0-9]')
+ @(echo -n '33f: '; ./gen -f mpf_urandomb -z 33 1000 \
+ | ./stat | grep '^[0-9]')
+ @(echo -n '64f: '; ./gen -f mpf_urandomb -z 64 1000 \
+ | ./stat | grep '^[0-9]')
+ @(echo -n '128f: '; ./gen -f mpf_urandomb -z 128 1000 \
+ | ./stat | grep '^[0-9]')
bigtest: gen stat
- @(echo '16i: '; ./gen -f mpz_urandomb -z 16 50000 | ./stat -2 1000 -i 0xffff | grep ^K[mp])
- @(echo '32i: '; ./gen -f mpz_urandomb -z 32 50000 | ./stat -2 1000 -i 0xffffffff | grep ^K[mp])
- @(echo '33i: '; ./gen -f mpz_urandomb -z 33 50000 | ./stat -2 1000 -i 0x1ffffffff | grep ^K[mp])
- @(echo '64i: '; ./gen -f mpz_urandomb -z 64 50000 | ./stat -2 1000 -i 0xffffffffffffffff | grep ^K[mp])
- @(echo '128i: '; ./gen -f mpz_urandomb -z 128 50000 | ./stat -2 1000 -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep ^K[mp])
-
- @(echo '16f: '; ./gen -f mpf_urandomb -z 16 50000 | ./stat -2 1000 | grep ^K[mp])
- @(echo '32f: '; ./gen -f mpf_urandomb -z 32 50000 | ./stat -2 1000 | grep ^K[mp])
- @(echo '33f: '; ./gen -f mpf_urandomb -z 33 50000 | ./stat -2 1000 | grep ^K[mp])
- @(echo '64f: '; ./gen -f mpf_urandomb -z 64 50000 | ./stat -2 1000 | grep ^K[mp])
- @(echo '128f: '; ./gen -f mpf_urandomb -z 128 50000 | ./stat -2 1000 | grep ^K[mp])
+ @(echo '16i: '; ./gen -f mpz_urandomb -z 16 50000 \
+ | ./stat -2 1000 -i 0xffff | grep '^K[mp]')
+ @(echo '32i: '; ./gen -f mpz_urandomb -z 32 50000 \
+ | ./stat -2 1000 -i 0xffffffff | grep '^K[mp]')
+ @(echo '33i: '; ./gen -f mpz_urandomb -z 33 50000 \
+ | ./stat -2 1000 -i 0x1ffffffff | grep '^K[mp]')
+ @(echo '64i: '; ./gen -f mpz_urandomb -z 64 50000 \
+ | ./stat -2 1000 -i 0xffffffffffffffff | grep '^K[mp]')
+ @(echo '128i: '; ./gen -f mpz_urandomb -z 128 50000 \
+ | ./stat -2 1000 -i 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | grep '^K[mp]')
+
+ @(echo '16f: '; ./gen -f mpf_urandomb -z 16 50000 \
+ | ./stat -2 1000 | grep '^K[mp]')
+ @(echo '32f: '; ./gen -f mpf_urandomb -z 32 50000 \
+ | ./stat -2 1000 | grep '^K[mp]')
+ @(echo '33f: '; ./gen -f mpf_urandomb -z 33 50000 \
+ | ./stat -2 1000 | grep '^K[mp]')
+ @(echo '64f: '; ./gen -f mpf_urandomb -z 64 50000 \
+ | ./stat -2 1000 | grep '^K[mp]')
+ @(echo '128f: '; ./gen -f mpf_urandomb -z 128 50000 \
+ | ./stat -2 1000 | grep '^K[mp]')