1 # vi:filetype=python:expandtab:tabstop=2:shiftwidth=2
23 geometry_twoC_test.cpp
24 geometry_eulerian4C_test.cpp
25 geometry_eulerian6C_test.cpp
26 geometry_kappa4C_test.cpp
27 geometry_kappa6C_test.cpp
29 reflectionlist_test.cpp
32 affinement_simplex_test.cpp
34 mode_eulerian4C_test.cpp
37 pseudoaxe_twoC_test.cpp
38 pseudoaxe_eulerian4C_test.cpp
39 pseudoaxe_kappa4C_test.cpp
40 pseudoaxe_eulerian6C_test.cpp
41 pseudoaxe_kappa6C_test.cpp
42 diffractometer_twoC_test.cpp
43 diffractometer_eulerian4C_test.cpp
44 diffractometer_kappa4C_test.cpp
45 diffractometer_kappa6C_test.cpp
53 includes = ['#include/hkl']
57 libs = ['hkl', 'cppunit']
59 if env.has_key('test') and env['test']:
61 if env.has_key('cppunit_lib_path') and env['cppunit_lib_path']:
62 lenv.AppendUnique(LIBPATH = lenv['cppunit_lib_path'])
63 if env.has_key('cppunit_inc_path') and env['cppunit_inc_path']:
64 lenv.AppendUnique(CPPPATH = lenv['cppunit_inc_path'])
65 conf = lenv.Configure()
66 if not conf.CheckLibWithHeader('cppunit', 'cppunit/TextTestRunner.h', 'c++', 'CppUnit::TextTestRunner runner;' ):
67 print 'Please install cppunit or set cppunit_inc_path and cppunit_lib_path'
71 lenv.AppendUnique(CPPDEFINES='PROFILE')
73 lenv.AppendUnique(CPPPATH = includes)
74 lenv.AppendUnique(LIBS = libs)
75 lenv.AppendUnique(LIBPATH = libpath)
77 test = lenv.Program(target = 'test', source = sources)
78 lenv.Test("test.passed", test)
79 Default(lenv.Alias("check", "test.passed"))