summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-11-05 15:31:38 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-11-05 15:31:38 +0000
commit8666c83c0721d66466240a394bf53a52ad5c4cab (patch)
treef783f700b88e485525ed613520a7f088e2d9d47d
parentf132b9357f906b920dfeca13798111c6ddd76ace (diff)
downloadmpc-8666c83c0721d66466240a394bf53a52ad5c4cab.tar.gz
moved content of test.c in tget_version.c
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@722 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/Makefile.am4
-rwxr-xr-xtests/test.c35
-rw-r--r--tests/tget_version.c9
3 files changed, 11 insertions, 37 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e0d27aa..7bf625d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,10 +6,10 @@ LOADLIBES=$(DEFS) -I$(top_srcdir)/src $(CPPFLAGS) $(CFLAGS) $(top_builddir)/src/
check_PROGRAMS = tabs tacos tacosh tadd tadd_fr tadd_ui targ tasin tasinh \
tatan tatanh tconj tcos tcosh tdiv tdiv_2exp tdiv_fr tdiv_ui texp tfr_div \
-tfr_sub tget_version timag tio_str tlog tmul tmul_2exp tmul_fr tmul_i tmul_si \
+tfr_sub timag tio_str tlog tmul tmul_2exp tmul_fr tmul_i tmul_si \
tmul_ui tneg tnorm tpow tpow_ld tpow_d tpow_fr tpow_si tpow_ui tpow_z tprec \
tproj treal treimref tset tsin tsinh tsqr tsqrt tstrtoc tsub tsub_fr tsub_ui \
-ttan ttanh tui_div tui_ui_sub test
+ttan ttanh tui_div tui_ui_sub tget_version
check_LTLIBRARIES=libmpc-tests.la
libmpc_tests_la_SOURCES=mpc-tests.h random.c tgeneric.c read_data.c \
diff --git a/tests/test.c b/tests/test.c
deleted file mode 100755
index ef835bb..0000000
--- a/tests/test.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* print the versions of GMP and MPFR used
-
-Copyright (C) 2009 Paul Zimmermann
-
-This file is part of the MPC Library.
-
-The MPC Library is free software; you can redistribute it and/or modify
-it under the terms of the GNU Lesser General Public License as published by
-the Free Software Foundation; either version 2.1 of the License, or (at your
-option) any later version.
-
-The MPC Library is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
-License for more details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with the MPC Library; see the file COPYING.LIB. If not, write to
-the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-#include "mpc-tests.h"
-
-int
-main ()
-{
- printf ("GMP: include %d.%d.%d, lib %s\n",
- __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, __GNU_MP_VERSION_PATCHLEVEL,
- gmp_version);
- printf ("MPFR: include %s, lib %s\n",
- MPFR_VERSION_STRING,
- mpfr_get_version ());
-
- return 0;
-}
diff --git a/tests/tget_version.c b/tests/tget_version.c
index 92e10a9..db9170b 100644
--- a/tests/tget_version.c
+++ b/tests/tget_version.c
@@ -27,6 +27,15 @@ MA 02111-1307, USA. */
int
main (void)
{
+ printf ("GMP: include %d.%d.%d, lib %s\n",
+ __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, __GNU_MP_VERSION_PATCHLEVEL,
+ gmp_version);
+ printf ("MPFR: include %s, lib %s\n",
+ MPFR_VERSION_STRING,
+ mpfr_get_version ());
+ printf ("MPC: include %s, lib %s\n", MPC_VERSION_STRING,
+ mpc_get_version ());
+
if (strcmp (mpc_get_version (), MPC_VERSION_STRING) != 0)
{
printf ("Error: header and library do not match\n"