We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60ba825 commit 371aa60Copy full SHA for 371aa60
Sconstruct
@@ -1,4 +1,32 @@
1
env = Environment(CPPPATH = ['.'])
2
+
3
4
5
6
env.Library('cstl',[Glob('src/*.c')])
-env.Program('it',[Glob('test/it/*.c')],
7
8
9
10
+# build test.
11
+test=0
12
+it=0
13
+ut=0
14
+# Get test flag
15
+test = int(ARGUMENTS.get('test',0))
16
+if test == 1:
17
+ it = 1
18
+ ut = 1
19
+# Get it flag.
20
+if it == 1 or int(ARGUMENTS.get('it',0))==1:
21
+ env.Program('it',[Glob('test/it/*.c')],
22
LIBS='cstl',LIBPATH=['.'])
23
+ print 'Running interface testing'
24
+ import os
25
+ os.system('it')
26
+# Get ut flag
27
+if ut == 1 or int(ARGUMENTS.get('ut',0))==1:
28
29
+ LIBS='cstl',LIBPATH=['.'])
30
+ print 'Running unit testing'
31
32
+ os.system('ut')
0 commit comments