summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-03-05 02:14:30 +0100
committerBruno Haible <bruno@clisp.org>2012-03-05 02:14:53 +0100
commitc5bc2aeaf6f4ca2d1e25f58b78a655f6211b50a6 (patch)
treec28ae6de2b2c6887ce6cf78adc8defd3bfe7cc3a /modules
parent5eb8c1aaacc36b33fce63f8e9f15175997bb1fa4 (diff)
downloadgnulib-c5bc2aeaf6f4ca2d1e25f58b78a655f6211b50a6.tar.gz
sqrt* tests: More tests.
* tests/test-sqrt.h: New file. * tests/test-sqrt.c: Include <float.h> and test-sqrt.h. (main): Invoke test_function. * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h. (main): Invoke test_function. * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h. (main): Invoke test_function. * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c. (Makefile.am): Add randomd.c to test_sqrt_SOURCES. * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c. (Makefile.am): Add randomf.c to test_sqrtf_SOURCES. * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c. (Depends-on): Add 'float'. (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
Diffstat (limited to 'modules')
-rw-r--r--modules/sqrt-tests3
-rw-r--r--modules/sqrtf-tests3
-rw-r--r--modules/sqrtl-tests4
3 files changed, 10 insertions, 0 deletions
diff --git a/modules/sqrt-tests b/modules/sqrt-tests
index 86d8176159..dad976d7c9 100644
--- a/modules/sqrt-tests
+++ b/modules/sqrt-tests
@@ -1,7 +1,9 @@
Files:
tests/test-sqrt.c
+tests/test-sqrt.h
tests/signature.h
tests/macros.h
+tests/randomd.c
Depends-on:
@@ -10,4 +12,5 @@ configure.ac:
Makefile.am:
TESTS += test-sqrt
check_PROGRAMS += test-sqrt
+test_sqrt_SOURCES = test-sqrt.c randomd.c
test_sqrt_LDADD = $(LDADD) @SQRT_LIBM@
diff --git a/modules/sqrtf-tests b/modules/sqrtf-tests
index 3cd8d62c56..7b0525eb82 100644
--- a/modules/sqrtf-tests
+++ b/modules/sqrtf-tests
@@ -1,7 +1,9 @@
Files:
tests/test-sqrtf.c
+tests/test-sqrt.h
tests/signature.h
tests/macros.h
+tests/randomf.c
Depends-on:
@@ -10,4 +12,5 @@ configure.ac:
Makefile.am:
TESTS += test-sqrtf
check_PROGRAMS += test-sqrtf
+test_sqrtf_SOURCES = test-sqrtf.c randomf.c
test_sqrtf_LDADD = $(LDADD) @SQRTF_LIBM@
diff --git a/modules/sqrtl-tests b/modules/sqrtl-tests
index eab018b718..68c4068f00 100644
--- a/modules/sqrtl-tests
+++ b/modules/sqrtl-tests
@@ -1,14 +1,18 @@
Files:
tests/test-sqrtl.c
+tests/test-sqrt.h
tests/signature.h
tests/macros.h
+tests/randoml.c
Depends-on:
fpucw
+float
configure.ac:
Makefile.am:
TESTS += test-sqrtl
check_PROGRAMS += test-sqrtl
+test_sqrtl_SOURCES = test-sqrtl.c randoml.c
test_sqrtl_LDADD = $(LDADD) @SQRTL_LIBM@