1import sys
2
3Import('env')
4
5test_env = env.Clone()
6
7test_env.Append(LINKFLAGS = ['-nostdlib'])
8test_env.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
9test_env.Append(CPPPATH = ['#build/include'])
10test_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
11
12fiotest_src = []
13fiotest_src.append(env["CRTBEGIN"])
14fiotest_src.append(["fiotest.c"])
15fiotest_src.append(env["CRTEND"])
16test_env.Program("fiotest", fiotest_src)
17
18threadtest_src = []
19threadtest_src.append(env["CRTBEGIN"])
20threadtest_src.append(["threadtest.c"])
21threadtest_src.append(env["CRTEND"])
22test_env.Program("threadtest", threadtest_src)
23
24spawnanytest_src = []
25spawnanytest_src.append(env["CRTBEGIN"])
26spawnanytest_src.append(["spawnanytest.c"])
27spawnanytest_src.append(env["CRTEND"])
28test_env.Program("spawnanytest", spawnanytest_src)
29
30spawnmultipletest_src = []
31spawnmultipletest_src.append(env["CRTBEGIN"])
32spawnmultipletest_src.append(["spawnmultipletest.c"])
33spawnmultipletest_src.append(env["CRTEND"])
34test_env.Program("spawnmultipletest", spawnmultipletest_src)
35
36spawnsingletest_src = []
37spawnsingletest_src.append(env["CRTBEGIN"])
38spawnsingletest_src.append(["spawnsingletest.c"])
39spawnsingletest_src.append(env["CRTEND"])
40test_env.Program("spawnsingletest", spawnsingletest_src)
41
42pthreadtest_src = []
43pthreadtest_src.append(env["CRTBEGIN"])
44pthreadtest_src.append(["pthreadtest.c"])
45pthreadtest_src.append(env["CRTEND"])
46test_env.Program("pthreadtest", pthreadtest_src)
47
48writetest_src = []
49writetest_src.append(env["CRTBEGIN"])
50writetest_src.append(["writetest.c"])
51writetest_src.append(env["CRTEND"])
52test_env.Program("writetest", writetest_src)
53
54#test_netenv = env.Clone()
55#
56#test_netenv.Append(LINKFLAGS = ['-nostdlib'])
57#test_netenv.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
58#test_netenv.Append(CPPPATH = ['#build/include', '#build/include/ipv4'])
59#test_netenv.Append(LIBPATH = ['#build/lib/libc', '#build/lib/liblwip'],
60#		LIBS = ['lwip', 'c'])
61#
62#lwiptest_src = []
63#lwiptest_src.append(env["CRTBEGIN"])
64#lwiptest_src.append(["lwiptest.c"])
65#lwiptest_src.append(env["CRTEND"])
66#test_netenv.Program("lwiptest", lwiptest_src)
67
68