mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-20 14:52:24 +00:00
Added test coverage makefile. Fixed errors from extra test cases. Rename a few traits. [SVN r80328]
174 lines
8.9 KiB
Makefile
174 lines
8.9 KiB
Makefile
# copyright John Maddock 2012
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt.
|
|
|
|
|
|
SOURCES=\
|
|
../../../../boost/multiprecision/mpfr.hpp\
|
|
../../../../boost/multiprecision/tommath.hpp\
|
|
../../../../boost/multiprecision/number.hpp\
|
|
../../../../boost/multiprecision/cpp_dec_float.hpp\
|
|
../../../../boost/multiprecision/gmp.hpp\
|
|
../../../../boost/multiprecision/random.hpp\
|
|
../../../../boost/multiprecision/cpp_int.hpp\
|
|
../../../../boost/multiprecision/miller_rabin.hpp\
|
|
../../../../boost/multiprecision/rational_adapter.hpp\
|
|
../../../../boost/multiprecision/concepts/mp_number_archetypes.hpp\
|
|
../../../../boost/multiprecision/detail/big_lanczos.hpp\
|
|
../../../../boost/multiprecision/detail/digits.hpp\
|
|
../../../../boost/multiprecision/detail/no_et_ops.hpp\
|
|
../../../../boost/multiprecision/detail/cpp_int_core.hpp\
|
|
../../../../boost/multiprecision/detail/number_base.hpp\
|
|
../../../../boost/multiprecision/detail/cpp_int_trivial_ops.hpp\
|
|
../../../../boost/multiprecision/detail/generic_interconvert.hpp\
|
|
../../../../boost/multiprecision/detail/number_compare.hpp\
|
|
../../../../boost/multiprecision/detail/default_ops.hpp\
|
|
../../../../boost/multiprecision/detail/integer_ops.hpp\
|
|
../../../../boost/multiprecision/detail/functions/constants.hpp\
|
|
../../../../boost/multiprecision/detail/functions/pow.hpp\
|
|
../../../../boost/multiprecision/detail/functions/trig.hpp\
|
|
../../../../boost/multiprecision/traits/explicit_conversion.hpp\
|
|
../../../../boost/multiprecision/traits/is_restricted_conversion.hpp
|
|
|
|
coverage : run
|
|
gcov test_arithmetic_cpp_int_1 test_arithmetic_cpp_int_2 test_arithmetic_cpp_int_3 test_arithmetic_cpp_dec_float test_arithmetic_concept test_arithmetic_mpz test_arithmetic_mpf test_arithmetic_mpf_50 test_arithmetic_mpq test_arithmetic_mpfr test_arithmetic_mpfr_50 test_cpp_int test_int_io test_float_io test_rational_io test_gmp_conversions test_mpfr_conversions test_cpp_int_conv
|
|
|
|
test_arithmetic_cpp_int_1.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_CPP_INT_1 --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_cpp_int_1.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_cpp_int_1 : test_arithmetic_cpp_int_1.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_cpp_int_1 test_arithmetic_cpp_int_1.o
|
|
|
|
test_arithmetic_cpp_int_2.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_CPP_INT_2 --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_cpp_int_2.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_cpp_int_2 : test_arithmetic_cpp_int_2.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_cpp_int_2 test_arithmetic_cpp_int_2.o
|
|
|
|
test_arithmetic_cpp_int_3.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_CPP_INT_3 --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_cpp_int_3.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_cpp_int_3 : test_arithmetic_cpp_int_3.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_cpp_int_3 test_arithmetic_cpp_int_3.o
|
|
|
|
test_arithmetic_cpp_dec_float.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_CPP_DEC_FLOAT --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_cpp_dec_float.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_cpp_dec_float : test_arithmetic_cpp_dec_float.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_cpp_dec_float test_arithmetic_cpp_dec_float.o
|
|
|
|
test_arithmetic_concept.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_BACKEND --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_concept.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_concept : test_arithmetic_concept.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_concept test_arithmetic_concept.o
|
|
|
|
test_arithmetic_mpz.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_MPZ --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_mpz.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_mpz : test_arithmetic_mpz.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_mpz test_arithmetic_mpz.o -lgmp
|
|
|
|
test_arithmetic_mpf.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_MPF --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_mpf.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_mpf : test_arithmetic_mpf.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_mpf test_arithmetic_mpf.o -lgmp
|
|
|
|
test_arithmetic_mpf_50.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_MPF_50 --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_mpf_50.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_mpf_50 : test_arithmetic_mpf_50.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_mpf_50 test_arithmetic_mpf_50.o -lgmp
|
|
|
|
test_arithmetic_mpq.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_MPQ --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_mpq.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_mpq : test_arithmetic_mpq.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_mpq test_arithmetic_mpq.o -lgmp
|
|
|
|
test_arithmetic_mpfr.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_MPFR --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_mpfr.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_mpfr : test_arithmetic_mpfr.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_mpfr test_arithmetic_mpfr.o -lmpfr -lgmp
|
|
|
|
test_arithmetic_mpfr_50.o : ../test_arithmetic.cpp $(SOURCES)
|
|
g++ -std=gnu++0x -DTEST_MPFR_50 --coverage -g -I../../../.. -I../../../../../../trunk -o test_arithmetic_mpfr_50.o -c ../test_arithmetic.cpp
|
|
|
|
test_arithmetic_mpfr_50 : test_arithmetic_mpfr_50.o
|
|
g++ -std=gnu++0x --coverage -o test_arithmetic_mpfr_50 test_arithmetic_mpfr_50.o -lmpfr -lgmp
|
|
|
|
test_cpp_int.o : ../test_cpp_int.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -g -I../../../.. -I../../../../../../trunk -o test_cpp_int.o -c ../test_cpp_int.cpp
|
|
|
|
test_cpp_int : test_cpp_int.o
|
|
g++ -std=gnu++0x --coverage -o test_cpp_int test_cpp_int.o -lgmp
|
|
|
|
test_int_io.o : ../test_int_io.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -DTEST_MPZ -DTEST_CPP_INT -g -I../../../.. -I../../../../../../trunk -o test_int_io.o -c ../test_int_io.cpp
|
|
|
|
test_int_io : test_int_io.o
|
|
g++ -std=gnu++0x --coverage -o test_int_io test_int_io.o -lgmp
|
|
|
|
test_float_io.o : ../test_float_io.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -g -I../../../.. -I../../../../../../trunk -o test_float_io.o -c ../test_float_io.cpp
|
|
|
|
test_float_io : test_float_io.o
|
|
g++ -std=gnu++0x --coverage -o test_float_io test_float_io.o -lmpfr -lgmp
|
|
|
|
test_rational_io.o : ../test_rational_io.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -DTEST_MPQ -DTEST_CPP_INT -g -I../../../.. -I../../../../../../trunk -o test_rational_io.o -c ../test_rational_io.cpp
|
|
|
|
test_rational_io : test_rational_io.o
|
|
g++ -std=gnu++0x --coverage -o test_rational_io test_rational_io.o -lgmp
|
|
|
|
test_gmp_conversions.o : ../test_gmp_conversions.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -g -I../../../.. -I../../../../../../trunk -o test_gmp_conversions.o -c ../test_gmp_conversions.cpp
|
|
|
|
test_gmp_conversions : test_gmp_conversions.o
|
|
g++ -std=gnu++0x --coverage -o test_gmp_conversions test_gmp_conversions.o -lgmp
|
|
|
|
test_mpfr_conversions.o : ../test_mpfr_conversions.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -g -I../../../.. -I../../../../../../trunk -o test_mpfr_conversions.o -c ../test_mpfr_conversions.cpp
|
|
|
|
test_mpfr_conversions : test_mpfr_conversions.o
|
|
g++ -std=gnu++0x --coverage -o test_mpfr_conversions test_mpfr_conversions.o -lmpfr -lgmp
|
|
|
|
test_cpp_int_conv.o : ../test_cpp_int_conv.cpp $(SOURCES)
|
|
g++ -std=gnu++0x --coverage -g -I../../../.. -I../../../../../../trunk -o test_cpp_int_conv.o -c ../test_cpp_int_conv.cpp
|
|
|
|
test_cpp_int_conv : test_cpp_int_conv.o
|
|
g++ -std=gnu++0x --coverage -o test_cpp_int_conv test_cpp_int_conv.o
|
|
|
|
run : test_arithmetic_cpp_int_1 test_arithmetic_cpp_int_2 test_arithmetic_cpp_int_3 test_arithmetic_cpp_dec_float test_arithmetic_concept test_arithmetic_mpz test_arithmetic_mpf test_arithmetic_mpf_50 \
|
|
test_arithmetic_mpq test_arithmetic_mpfr test_arithmetic_mpfr_50 test_cpp_int test_int_io test_float_io test_rational_io test_gmp_conversions test_mpfr_conversions test_cpp_int_conv
|
|
./test_arithmetic_cpp_int_1
|
|
./test_arithmetic_cpp_int_2
|
|
./test_arithmetic_cpp_int_3
|
|
./test_arithmetic_cpp_dec_float
|
|
./test_arithmetic_concept
|
|
./test_arithmetic_mpz
|
|
./test_arithmetic_mpf
|
|
./test_arithmetic_mpf_50
|
|
./test_arithmetic_mpq
|
|
./test_arithmetic_mpfr
|
|
./test_arithmetic_mpfr_50
|
|
./test_cpp_int
|
|
./test_int_io
|
|
./test_float_io
|
|
./test_rational_io
|
|
./test_gmp_conversions
|
|
./test_mpfr_conversions
|
|
./test_cpp_int_conv
|
|
|
|
clean :
|
|
rm -rf *.o *.gc* test_arithmetic_cpp_int_1 test_arithmetic_cpp_int_2 test_arithmetic_cpp_int_3 test_arithmetic_cpp_dec_float test_arithmetic_concept test_arithmetic_mpz \
|
|
test_arithmetic_mpf test_arithmetic_mpf_50 test_arithmetic_mpq test_arithmetic_mpfr test_arithmetic_mpfr_50 test_cpp_int\
|
|
test_int_io test_float_io test_rational_io test_gmp_conversions test_mpfr_conversions test_cpp_int_conv
|
|
|
|
|
|
|
|
|