ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/run_tests.py
Revision: 1.2
Committed: Thu Mar 10 01:49:56 2016 UTC (8 years, 2 months ago) by schorsch
Content type: text/x-python
Branch: MAIN
Changes since 1.1: +15 -14 lines
Log Message:
SCons build system learns about platform architecture

File Contents

# Content
1 #!/usr/local/bin/python
2 from __future__ import print_function
3
4 import sys
5
6 cal_units = [
7 'test_calc',
8 'test_cnt',
9 'test_ev',
10 'test_histo',
11 'test_lam',
12 'test_neat',
13 'test_rcalc',
14 'test_tabfunc',
15 'test_total',
16 ]
17
18 cv_units = [
19 'test_3ds2mgf',
20 'test_arch2rad',
21 'test_ies2rad',
22 'test_lampcolor',
23 'test_mgf2inv',
24 'test_mgf2rad',
25 'test_nff2rad',
26 'test_obj2rad',
27 'test_thf2rad',
28 'test_tmesh2rad',
29 'test_rad2mgf',
30 'test_mgf2meta',
31 'test_mgfilt',
32 ]
33
34 gen_units = [
35 'test_genbeads',
36 'test_genblinds',
37 'test_genbox',
38 'test_genbranch',
39 'test_gencat',
40 'test_genclock',
41 'test_genmarble',
42 'test_genprism',
43 'test_genrev',
44 'test_gensky',
45 'test_gensurf',
46 'test_genworm',
47 'test_replmarks',
48 'test_mkillum',
49 'test_xform',
50 ]
51
52 hd_units = [
53 'test_rhcopy',
54 'test_rhinfo',
55 'test_rholo',
56 'test_rhpict',
57 #'test_genrhenv',
58 'test_genrhgrid',
59 # XXX device drivers?
60 ]
61
62 meta_units = [
63 'test_cv',
64 'test_meta2tga',
65 'test_pexpand',
66 'test_plot4',
67 'test_plotin',
68 'test_psort',
69 'test_psmeta',
70 'test_gcomp',
71 'test_bgraph',
72 'test_dgraph',
73 'test_igraph',
74 #'test_x11meta',
75 ]
76
77 meta_special_units = [
78 'test_mt160',
79 'test_mt160l',
80 'test_mtext',
81 'test_okimate',
82 'test_mx80',
83 'test_imagew',
84 'test_impress',
85 'test_aed5',
86 'test_tcurve',
87 'test_tbar',
88 'test_tscat',
89 'test_plotout',
90 ]
91
92 ot_units = [
93 'test_oconv',
94 'test_getbbox',
95 'test_obj2mesh',
96 ]
97
98 px_units = [
99 'test_macbethcal',
100 'test_normtiff',
101 'test_oki20',
102 'test_oki20c',
103 'test_pcomb',
104 'test_pcompos',
105 'test_pcond',
106 'test_pcwarp',
107 'test_pextrem',
108 'test_pfilt',
109 'test_pflip',
110 'test_pinterp',
111 'test_protate',
112 'test_psign',
113 'test_pvalue',
114 'test_ra_avs',
115 'test_ra_bn',
116 'test_ra_gif',
117 'test_ra_hexbit',
118 'test_ra_pict',
119 'test_ra_ppm',
120 'test_ra_pr',
121 'test_ra_pr24',
122 'test_ra_ps',
123 'test_ra_rgbe',
124 'test_ra_t16',
125 'test_ra_t8',
126 'test_ra_xyze',
127 'test_ra_tiff',
128 'test_t4027',
129 'test_ttyimage',
130 #'test_ximage',
131 #'test_xshowtrace',
132 ]
133
134 px_special_units = [
135 'test_ra_im',
136 'test_psum',
137 'test_t4014',
138 'test_paintjet',
139 'test_mt160r',
140 'test_greyscale',
141 'test_colorscale',
142 'test_d48c',
143 ]
144
145 rt_units = [
146 'test_lookamb',
147 'test_rpict',
148 'test_rtrace',
149 #'test_rview',
150 ]
151
152 util_units = [
153 'test_rad',
154 'test_findglare',
155 'test_glarendx',
156 'test_rpiece',
157 'test_vwrays',
158 'test_vwright',
159 'test_getinfo',
160 'test_makedist',
161 #'test_xglaresrc',
162 'test_glrad',
163 'test_ranimate',
164 'test_ranimove',
165 ]
166
167
168 def run_tests(unitgroup, bindir=None):
169 print('---- unit group %s ----' % unitgroup)
170 for unit in globals()[unitgroup + '_units']:
171 try:
172 mod = __import__('py_tests.'+unit,globals(),locals(),['py_tests'])
173 print('%-18s' % unit, end='')
174 sys.stdout.flush()
175 mod.main(bindir=bindir)
176 except ImportError, e:
177 #raise
178 pass
179
180 def main(bindir=None):
181 run_tests('cal', bindir=bindir)
182 run_tests('cv', bindir=bindir)
183 run_tests('gen', bindir=bindir)
184 run_tests('hd', bindir=bindir)
185 run_tests('meta', bindir=bindir)
186 run_tests('ot', bindir=bindir)
187 run_tests('px', bindir=bindir)
188 run_tests('rt', bindir=bindir)
189 run_tests('util', bindir=bindir)
190
191 if __name__ == '__main__':
192 main()
193