19 lines
459 B
Python
19 lines
459 B
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import os.path
|
|
import glob
|
|
|
|
Import('env')
|
|
|
|
dir_path = Dir('.').abspath
|
|
env.test_sources = sorted(glob.glob(dir_path + "/*.cpp"))
|
|
|
|
env_test = env.Clone()
|
|
env_test.Append(CPPDEFINES=['SAW_COMPILE_TEST_BINARY'])
|
|
env.test_objects = []
|
|
env.test_sources.append(dir_path+'/suite/suite.cpp')
|
|
env.test_headers = [dir_path + '/suite/suite.h']
|
|
|
|
env.test_program = env_test.Program('#build/test', [env.test_sources, env.library_static])
|