1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
diff -Nur gdl-0.9.2.orig/testsuite/CMakeLists.txt gdl-0.9.2/testsuite/CMakeLists.txt
--- gdl-0.9.2.orig/testsuite/CMakeLists.txt 2011-12-22 20:18:17.000000000 +0000
+++ gdl-0.9.2/testsuite/CMakeLists.txt 2011-12-25 00:40:51.000000000 +0000
@@ -13,6 +13,7 @@
*(p-4)=0;
setenv(\"LC_COLLATE\",\"C\",1);
setenv(\"GDL_PATH\",\"+${BASE_SOURCE}/testsuite/:+${BASE_SOURCE}/src/pro/\",1);
+setenv(\"LD_LIBRARY_PATH\",\"+${BASE_BINARY}/testsuite\",1);
execl(\"${BASE_BINARY}/src/gdl\",\"-quiet\",\"-e\",v[1],(char*)0);
}
")
@@ -21,10 +22,123 @@
add_library(test_ce SHARED EXCLUDE_FROM_ALL libtest_ce.cpp)
add_custom_target(check COMMAND ${CMAKE_BUILD_TOOL} test DEPENDS launchtest test_ce)
get_target_property(LAUNCHTESTLOCATION launchtest LOCATION)
-execute_process(
- COMMAND "fgrep" ".pro" "${BASE_SOURCE}/testsuite/Makefile.am"
- COMMAND "awk" "{printf(\"%s;\",$1)}"
- OUTPUT_VARIABLE TESTS)
-foreach(TEST ${TESTS})
- add_test(${TEST} ${LAUNCHTESTLOCATION} ${TEST})
-endforeach(TEST TESTS)
+
+add_test(test_angles.pro ${LAUNCHTESTLOCATION} test_angles.pro)
+add_test(test_base64.pro ${LAUNCHTESTLOCATION} test_base64.pro)
+add_test(test_binfmt.pro ${LAUNCHTESTLOCATION} test_binfmt.pro)
+add_test(test_bug_1779553.pro ${LAUNCHTESTLOCATION} test_bug_1779553.pro)
+add_test(test_bug_2555865.pro ${LAUNCHTESTLOCATION} test_bug_2555865.pro)
+add_test(test_bug_2610174.pro ${LAUNCHTESTLOCATION} test_bug_2610174.pro)
+add_test(test_bug_2846561.pro ${LAUNCHTESTLOCATION} test_bug_2846561.pro)
+add_test(test_bug_2876150.pro ${LAUNCHTESTLOCATION} test_bug_2876150.pro)
+add_test(test_bug_2876161.pro ${LAUNCHTESTLOCATION} test_bug_2876161.pro)
+# these two need display
+if(X11)
+ add_test(test_bug_2974380.pro ${LAUNCHTESTLOCATION} test_bug_2974380.pro)
+ add_test(test_bug_3275334.pro ${LAUNCHTESTLOCATION} test_bug_3275334.pro)
+ add_test(test_get_screen_size.pro ${LAUNCHTESTLOCATION} test_get_screen_size.pro)
+endif(X11)
+add_test(test_bug_3033108.pro ${LAUNCHTESTLOCATION} test_bug_3033108.pro)
+add_test(test_bug_3054361.pro ${LAUNCHTESTLOCATION} test_bug_3054361.pro)
+iF(NETCDF)
+ add_test(test_bug_3055720.pro ${LAUNCHTESTLOCATION} test_bug_3055720.pro)
+ add_test(test_bug_3057511.pro ${LAUNCHTESTLOCATION} test_bug_3057511.pro)
+ add_test(test_bug_3057520.pro ${LAUNCHTESTLOCATION} test_bug_3057520.pro)
+ add_test(test_bug_3061072.pro ${LAUNCHTESTLOCATION} test_bug_3061072.pro)
+ add_test(test_bug_3100945.pro ${LAUNCHTESTLOCATION} test_bug_3100945.pro)
+endif(NETCDF)
+add_test(test_bug_3081887.pro ${LAUNCHTESTLOCATION} test_bug_3081887.pro)
+add_test(test_bug_3085858.pro ${LAUNCHTESTLOCATION} test_bug_3085858.pro)
+add_test(test_bug_3086851.pro ${LAUNCHTESTLOCATION} test_bug_3086851.pro)
+add_test(test_bug_3091599.pro ${LAUNCHTESTLOCATION} test_bug_3091599.pro)
+add_test(test_bug_3091610.pro ${LAUNCHTESTLOCATION} test_bug_3091610.pro)
+add_test(test_bug_3104209.pro ${LAUNCHTESTLOCATION} test_bug_3104209.pro)
+add_test(test_bug_3104214.pro ${LAUNCHTESTLOCATION} test_bug_3104214.pro)
+add_test(test_bug_3104326.pro ${LAUNCHTESTLOCATION} test_bug_3104326.pro)
+add_test(test_bug_3104349.pro ${LAUNCHTESTLOCATION} test_bug_3104349.pro)
+add_test(test_bug_3147181.pro ${LAUNCHTESTLOCATION} test_bug_3147181.pro)
+add_test(test_bug_3147733.pro ${LAUNCHTESTLOCATION} test_bug_3147733.pro)
+add_test(test_bug_3151760.pro ${LAUNCHTESTLOCATION} test_bug_3151760.pro)
+add_test(test_bug_3152899.pro ${LAUNCHTESTLOCATION} test_bug_3152899.pro)
+add_test(test_bug_3189072.pro ${LAUNCHTESTLOCATION} test_bug_3189072.pro)
+add_test(test_bug_3199465.pro ${LAUNCHTESTLOCATION} test_bug_3199465.pro)
+add_test(test_bug_3244840.pro ${LAUNCHTESTLOCATION} test_bug_3244840.pro)
+add_test(test_bug_3286031.pro ${LAUNCHTESTLOCATION} test_bug_3286031.pro)
+add_test(test_bug_3288652.pro ${LAUNCHTESTLOCATION} test_bug_3288652.pro)
+add_test(test_bug_3290532.pro ${LAUNCHTESTLOCATION} test_bug_3290532.pro)
+add_test(test_bug_3296360.pro ${LAUNCHTESTLOCATION} test_bug_3296360.pro)
+add_test(test_bug_3298378.pro ${LAUNCHTESTLOCATION} test_bug_3298378.pro)
+add_test(test_bug_3300626.pro ${LAUNCHTESTLOCATION} test_bug_3300626.pro)
+add_test(test_bug_3313522.pro ${LAUNCHTESTLOCATION} test_bug_3313522.pro)
+if(MAGICK)
+ add_test(test_bug_3376577.pro ${LAUNCHTESTLOCATION} test_bug_3376577.pro)
+endif(MAGICK)
+add_test(test_ce.pro ${LAUNCHTESTLOCATION} test_ce.pro)
+add_test(test_clip.pro ${LAUNCHTESTLOCATION} test_clip.pro)
+add_test(test_common.pro ${LAUNCHTESTLOCATION} test_common.pro)
+if(UDUNITS)
+ add_test(test_constants.pro ${LAUNCHTESTLOCATION} test_constants.pro)
+endif(UDUNITS)
+add_test(test_correlate.pro ${LAUNCHTESTLOCATION} test_correlate.pro)
+add_test(test_deriv.pro ${LAUNCHTESTLOCATION} test_deriv.pro)
+add_test(test_device.pro ${LAUNCHTESTLOCATION} test_device.pro)
+add_test(test_dicom.pro ${LAUNCHTESTLOCATION} test_dicom.pro)
+add_test(test_erfinv.pro ${LAUNCHTESTLOCATION} test_erfinv.pro)
+add_test(test_execute.pro ${LAUNCHTESTLOCATION} test_execute.pro)
+add_test(test_fft.pro ${LAUNCHTESTLOCATION} test_fft.pro)
+add_test(test_file_basename.pro ${LAUNCHTESTLOCATION} test_file_basename.pro)
+add_test(test_file_copy.pro ${LAUNCHTESTLOCATION} test_file_copy.pro)
+add_test(test_file_delete.pro ${LAUNCHTESTLOCATION} test_file_delete.pro)
+add_test(test_file_dirname.pro ${LAUNCHTESTLOCATION} test_file_dirname.pro)
+add_test(test_file_search.pro ${LAUNCHTESTLOCATION} test_file_search.pro)
+add_test(test_file_which.pro ${LAUNCHTESTLOCATION} test_file_which.pro)
+add_test(test_fix.pro ${LAUNCHTESTLOCATION} test_fix.pro)
+add_test(test_fixprint.pro ${LAUNCHTESTLOCATION} test_fixprint.pro)
+add_test(test_gc.pro ${LAUNCHTESTLOCATION} test_gc.pro)
+if(GRIB)
+ add_test(test_grib.pro ${LAUNCHTESTLOCATION} test_grib.pro)
+endif(GRIB)
+add_test(test_hist_2d.pro ${LAUNCHTESTLOCATION} test_hist_2d.pro)
+add_test(test_idl8.pro ${LAUNCHTESTLOCATION} test_idl8.pro)
+add_test(test_idl_validname.pro ${LAUNCHTESTLOCATION} test_idl_validname.pro)
+add_test(test_interpol.pro ${LAUNCHTESTLOCATION} test_interpol.pro)
+add_test(test_interpolate_missing.pro ${LAUNCHTESTLOCATION} test_interpolate_missing.pro)
+# Needs MEMORY(), not working on Linux
+# add_test(test_memory.pro ${LAUNCHTESTLOCATION} test_memory.pro)
+# add_test(test_fft_leak.pro ${LAUNCHTESTLOCATION} test_fft_leak.pro)
+add_test(test_moment.pro ${LAUNCHTESTLOCATION} test_moment.pro)
+# mpfit disabled because needs external non required library
+# add_test(test_mpfit.pro ${LAUNCHTESTLOCATION} test_mpfit.pro)
+add_test(test_multiroots.pro ${LAUNCHTESTLOCATION} test_multiroots.pro)
+add_test(test_nestedloop.pro ${LAUNCHTESTLOCATION} test_nestedloop.pro)
+add_test(test_plotting_ranges.pro ${LAUNCHTESTLOCATION} test_plotting_ranges.pro)
+add_test(test_pmulti.pro ${LAUNCHTESTLOCATION} test_pmulti.pro)
+add_test(test_product.pro ${LAUNCHTESTLOCATION} test_product.pro)
+add_test(test_ps_decomposed.pro ${LAUNCHTESTLOCATION} test_ps_decomposed.pro)
+if(PYTHON)
+ add_test(test_python.pro ${LAUNCHTESTLOCATION} test_python.pro)
+endif(PYTHON)
+if(PYTHON_MODULE)
+ add_test(test_python_module_0.pro ${LAUNCHTESTLOCATION} test_python_module_0.pro)
+ add_test(test_python_module_1.pro ${LAUNCHTESTLOCATION} test_python_module_1.pro)
+ add_test(test_python_module_2.pro ${LAUNCHTESTLOCATION} test_python_module_2.pro)
+endif(PYTHON_MODULE)
+add_test(test_readf.pro ${LAUNCHTESTLOCATION} test_readf.pro)
+add_test(test_rebin.pro ${LAUNCHTESTLOCATION} test_rebin.pro)
+add_test(test_rk4.pro ${LAUNCHTESTLOCATION} test_rk4.pro)
+add_test(test_scope_varfetch.pro ${LAUNCHTESTLOCATION} test_scope_varfetch.pro)
+add_test(test_sem.pro ${LAUNCHTESTLOCATION} test_sem.pro)
+add_test(test_spawn_unit.pro ${LAUNCHTESTLOCATION} test_spawn_unit.pro)
+add_test(test_spher_harm.pro ${LAUNCHTESTLOCATION} test_spher_harm.pro)
+add_test(test_spl_init.pro ${LAUNCHTESTLOCATION} test_spl_init.pro)
+add_test(test_step.pro ${LAUNCHTESTLOCATION} test_step.pro)
+add_test(test_str_functions.pro ${LAUNCHTESTLOCATION} test_str_functions.pro)
+add_test(test_str_sep.pro ${LAUNCHTESTLOCATION} test_str_sep.pro)
+add_test(test_stregex.pro ${LAUNCHTESTLOCATION} test_stregex.pro)
+add_test(test_strsplit.pro ${LAUNCHTESTLOCATION} test_strsplit.pro)
+add_test(test_suite.pro ${LAUNCHTESTLOCATION} test_suite.pro)
+add_test(test_systime.pro ${LAUNCHTESTLOCATION} test_systime.pro)
+add_test(test_url.pro ${LAUNCHTESTLOCATION} test_url.pro)
+add_test(test_wavelet.pro ${LAUNCHTESTLOCATION} test_wavelet.pro)
+add_test(test_zeropoly.pro ${LAUNCHTESTLOCATION} test_zeropoly.pro)
+add_test(test_zip.pro ${LAUNCHTESTLOCATION} test_zip.pro)
|