]> www.ginac.de Git - ginac.git/blob - check/CMakeLists.txt
Add exam for ex::collect().
[ginac.git] / check / CMakeLists.txt
1
2 set(ginac_exams
3         exam_paranoia
4         exam_heur_gcd
5         exam_match
6         exam_parser
7         exam_numeric
8         exam_powerlaws
9         exam_collect
10         exam_inifcns
11         exam_inifcns_nstdsums
12         exam_inifcns_elliptic
13         exam_differentiation
14         exam_polygcd
15         exam_collect_common_factors
16         exam_normalization
17         exam_sqrfree
18         exam_factor
19         exam_pseries
20         exam_matrices
21         exam_lsolve
22         exam_indexed
23         exam_color
24         exam_clifford
25         exam_archive
26         exam_structure
27         exam_misc
28         exam_pgcd
29         exam_mod_gcd
30         exam_real_imag
31         exam_chinrem_gcd
32         exam_function_exvector
33 )
34
35 set(ginac_checks
36         check_numeric
37         check_inifcns
38         check_matrices
39         check_lsolve
40         check_cra)
41
42 set(ginac_timings
43         time_dennyfliegner
44         time_gammaseries
45         time_vandermonde
46         time_toeplitz
47         time_lw_A
48         time_lw_B
49         time_lw_C
50         time_lw_D
51         time_lw_E
52         time_lw_F
53         time_lw_G
54         time_lw_H
55         time_lw_IJKL
56         time_lw_M1
57         time_lw_M2
58         time_lw_N
59         time_lw_O
60         time_lw_P
61         time_lw_Pprime
62         time_lw_Q
63         time_lw_Qprime
64         time_antipode
65         time_fateman_expand
66         time_uvar_gcd
67         time_parser)
68
69 macro(add_ginac_test thename)
70         if ("${${thename}_sources}" STREQUAL "")
71                 set(${thename}_sources ${thename}.cpp ${${thename}_extra_src})
72         endif()
73         add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources})
74         target_link_libraries(${thename} ginac::ginac)
75         add_dependencies(test_suite ${thename})
76         add_dependencies(check ${thename})
77         add_test(NAME ${thename} COMMAND $<TARGET_FILE:${thename}>)
78 endmacro()
79
80 macro(add_ginac_timing thename)
81         set(${thename}_extra_src timer.cpp randomize_serials.cpp)
82         add_ginac_test(${thename})
83         target_compile_definitions(${thename} PRIVATE HAVE_CONFIG_H)
84 endmacro()
85
86 set(check_matrices_extra_src genex.cpp)
87 set(check_lsolve_extra_src genex.cpp)
88
89 foreach(exm ${ginac_exams})
90         add_ginac_test(${exm})
91 endforeach()
92
93 foreach(chk ${ginac_checks})
94         add_ginac_test(${chk})
95 endforeach()
96
97 foreach(tmr ${ginac_timings})
98         add_ginac_timing(${tmr})
99 endforeach()
100