1 Star 2 Fork 10

wangliangfmail / libcstl

forked from Gitee 极速下载 / libcstl 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Sconstruct 575 Bytes
一键复制 编辑 原始数据 按行查看 历史
reyoung 提交于 2012-05-20 16:08 . Add ut/it flags
env = Environment(CPPPATH = ['.'])
env.Library('cstl',[Glob('src/*.c')])
# build test.
test=0
it=0
ut=0
# Get test flag
test = int(ARGUMENTS.get('test',0))
if test == 1:
it = 1
ut = 1
# Get it flag.
if it == 1 or int(ARGUMENTS.get('it',0))==1:
env.Program('it',[Glob('test/it/*.c')],
LIBS='cstl',LIBPATH=['.'])
print 'Running interface testing'
import os
os.system('it')
# Get ut flag
if ut == 1 or int(ARGUMENTS.get('ut',0))==1:
env.Program('it',[Glob('test/it/*.c')],
LIBS='cstl',LIBPATH=['.'])
print 'Running unit testing'
import os
os.system('ut')
C/C++
1
https://gitee.com/wangliangfmail/libcstl.git
git@gitee.com:wangliangfmail/libcstl.git
wangliangfmail
libcstl
libcstl
master

搜索帮助