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