Clarify types of test suite files.
authorRichard Kreckel <kreckel@ginac.de>
Wed, 14 Oct 2020 18:12:37 +0000 (20:12 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Wed, 14 Oct 2020 18:12:37 +0000 (20:12 +0200)
check/CMakeLists.txt
check/FILES [new file with mode: 0644]
check/Makefile.am

index a480e7c87ed122e60c78c2213356aa66498d41e8..9ef3a709c8f27edbb0116413f7b31baf65adbd51 100644 (file)
@@ -1,10 +1,5 @@
 
 
-set(ginac_tests
-       check_numeric
-       check_inifcns
-       check_matrices
-       check_lsolve
-       check_cra
+set(ginac_exams
        exam_paranoia
        exam_heur_gcd
        exam_match
        exam_paranoia
        exam_heur_gcd
        exam_match
@@ -34,6 +29,13 @@ set(ginac_tests
        exam_real_imag
        exam_chinrem_gcd)
 
        exam_real_imag
        exam_chinrem_gcd)
 
+set(ginac_checks
+       check_numeric
+       check_inifcns
+       check_matrices
+       check_lsolve
+       check_cra)
+
 set(ginac_timings
        time_dennyfliegner
        time_gammaseries
 set(ginac_timings
        time_dennyfliegner
        time_gammaseries
@@ -81,8 +83,12 @@ endmacro()
 set(check_matrices_extra_src genex.cpp)
 set(check_lsolve_extra_src genex.cpp)
 
 set(check_matrices_extra_src genex.cpp)
 set(check_lsolve_extra_src genex.cpp)
 
-foreach(tst ${ginac_tests})
-       add_ginac_test(${tst})
+foreach(exm ${ginac_exams})
+       add_ginac_test(${exm})
+endforeach()
+
+foreach(chk ${ginac_checks})
+       add_ginac_test(${chk})
 endforeach()
 
 foreach(tmr ${ginac_timings})
 endforeach()
 
 foreach(tmr ${ginac_timings})
diff --git a/check/FILES b/check/FILES
new file mode 100644 (file)
index 0000000..4f87c57
--- /dev/null
@@ -0,0 +1,8 @@
+Files in this directory
+=======================
+
+exam*:  test result for specific input (like a pupil's exam)
+
+check*: test coherence of results among each other, with random input
+
+time*:  measure run-time
index a1fb19df78f8466bb886accc31daadc57f84c29c..fd0fd126e1558b56dde3e8b37d97adc84974da38 100644 (file)
@@ -1,11 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
 ## Process this file with automake to produce Makefile.in
 
-CHECKS = check_numeric \
-        check_inifcns \
-        check_matrices \
-        check_lsolve \
-        check_cra
-
 EXAMS = exam_paranoia \
        exam_heur_gcd \
        exam_match \
 EXAMS = exam_paranoia \
        exam_heur_gcd \
        exam_match \
@@ -35,6 +29,12 @@ EXAMS = exam_paranoia \
        exam_chinrem_gcd \
        exam_real_imag
 
        exam_chinrem_gcd \
        exam_real_imag
 
+CHECKS = check_numeric \
+        check_inifcns \
+        check_matrices \
+        check_lsolve \
+        check_cra
+
 TIMES = time_dennyfliegner \
        time_gammaseries \
        time_vandermonde \
 TIMES = time_dennyfliegner \
        time_gammaseries \
        time_vandermonde \
@@ -61,23 +61,8 @@ TIMES = time_dennyfliegner \
        time_uvar_gcd \
        time_parser
 
        time_uvar_gcd \
        time_parser
 
-TESTS = $(CHECKS) $(EXAMS) $(TIMES)
-check_PROGRAMS = $(CHECKS) $(EXAMS) $(TIMES)
-
-check_numeric_SOURCES = check_numeric.cpp 
-check_numeric_LDADD = ../ginac/libginac.la
-
-check_inifcns_SOURCES = check_inifcns.cpp
-check_inifcns_LDADD = ../ginac/libginac.la
-
-check_matrices_SOURCES = check_matrices.cpp genex.cpp
-check_matrices_LDADD = ../ginac/libginac.la
-
-check_lsolve_SOURCES = check_lsolve.cpp genex.cpp
-check_lsolve_LDADD = ../ginac/libginac.la
-
-check_cra_SOURCES = check_cra.cpp
-check_cra_LDADD = ../ginac/libginac.la
+TESTS = $(EXAMS) $(CHECKS) $(TIMES)
+check_PROGRAMS = $(EXAMS) $(CHECKS) $(TIMES)
 
 exam_paranoia_SOURCES = exam_paranoia.cpp
 exam_paranoia_LDADD = ../ginac/libginac.la
 
 exam_paranoia_SOURCES = exam_paranoia.cpp
 exam_paranoia_LDADD = ../ginac/libginac.la
@@ -164,6 +149,21 @@ exam_real_imag_LDADD = ../ginac/libginac.la
 exam_chinrem_gcd_SOURCES = exam_chinrem_gcd.cpp
 exam_chinrem_gcd_LDADD = ../ginac/libginac.la
 
 exam_chinrem_gcd_SOURCES = exam_chinrem_gcd.cpp
 exam_chinrem_gcd_LDADD = ../ginac/libginac.la
 
+check_numeric_SOURCES = check_numeric.cpp
+check_numeric_LDADD = ../ginac/libginac.la
+
+check_inifcns_SOURCES = check_inifcns.cpp
+check_inifcns_LDADD = ../ginac/libginac.la
+
+check_matrices_SOURCES = check_matrices.cpp genex.cpp
+check_matrices_LDADD = ../ginac/libginac.la
+
+check_lsolve_SOURCES = check_lsolve.cpp genex.cpp
+check_lsolve_LDADD = ../ginac/libginac.la
+
+check_cra_SOURCES = check_cra.cpp
+check_cra_LDADD = ../ginac/libginac.la
+
 time_dennyfliegner_SOURCES = time_dennyfliegner.cpp \
                             randomize_serials.cpp timer.cpp timer.h
 time_dennyfliegner_LDADD = ../ginac/libginac.la
 time_dennyfliegner_SOURCES = time_dennyfliegner.cpp \
                             randomize_serials.cpp timer.cpp timer.h
 time_dennyfliegner_LDADD = ../ginac/libginac.la