2015-01-18 23:15:55 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
|
|
|
test_env = env.Clone()
|
|
|
|
|
|
|
|
test_env.Append(LINKFLAGS = ['-nostdlib'])
|
|
|
|
test_env.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
|
|
|
|
test_env.Append(CPPPATH = ['#build/include'])
|
|
|
|
test_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
|
|
|
|
|
2023-11-22 02:37:17 +00:00
|
|
|
fiotest_src = []
|
|
|
|
fiotest_src.append(env["CRTBEGIN"])
|
|
|
|
fiotest_src.append(["fiotest.c"])
|
|
|
|
fiotest_src.append(env["CRTEND"])
|
|
|
|
test_env.Program("fiotest", fiotest_src)
|
|
|
|
|
2015-02-27 23:57:07 +00:00
|
|
|
threadtest_src = []
|
|
|
|
threadtest_src.append(env["CRTBEGIN"])
|
|
|
|
threadtest_src.append(["threadtest.c"])
|
|
|
|
threadtest_src.append(env["CRTEND"])
|
|
|
|
test_env.Program("threadtest", threadtest_src)
|
|
|
|
|
2023-10-02 22:16:15 +00:00
|
|
|
spawnanytest_src = []
|
|
|
|
spawnanytest_src.append(env["CRTBEGIN"])
|
|
|
|
spawnanytest_src.append(["spawnanytest.c"])
|
|
|
|
spawnanytest_src.append(env["CRTEND"])
|
|
|
|
test_env.Program("spawnanytest", spawnanytest_src)
|
|
|
|
|
|
|
|
spawnmultipletest_src = []
|
|
|
|
spawnmultipletest_src.append(env["CRTBEGIN"])
|
|
|
|
spawnmultipletest_src.append(["spawnmultipletest.c"])
|
|
|
|
spawnmultipletest_src.append(env["CRTEND"])
|
|
|
|
test_env.Program("spawnmultipletest", spawnmultipletest_src)
|
|
|
|
|
|
|
|
spawnsingletest_src = []
|
|
|
|
spawnsingletest_src.append(env["CRTBEGIN"])
|
|
|
|
spawnsingletest_src.append(["spawnsingletest.c"])
|
|
|
|
spawnsingletest_src.append(env["CRTEND"])
|
|
|
|
test_env.Program("spawnsingletest", spawnsingletest_src)
|
2023-09-03 18:55:51 +00:00
|
|
|
|
2015-02-27 23:57:07 +00:00
|
|
|
pthreadtest_src = []
|
|
|
|
pthreadtest_src.append(env["CRTBEGIN"])
|
2015-02-28 00:06:12 +00:00
|
|
|
pthreadtest_src.append(["pthreadtest.c"])
|
2015-02-27 23:57:07 +00:00
|
|
|
pthreadtest_src.append(env["CRTEND"])
|
|
|
|
test_env.Program("pthreadtest", pthreadtest_src)
|
2015-01-18 23:15:55 +00:00
|
|
|
|
2019-07-31 21:30:50 +00:00
|
|
|
#test_netenv = env.Clone()
|
|
|
|
#
|
|
|
|
#test_netenv.Append(LINKFLAGS = ['-nostdlib'])
|
|
|
|
#test_netenv.Append(CPPFLAGS = ['-fno-builtin', '-nostdinc'])
|
|
|
|
#test_netenv.Append(CPPPATH = ['#build/include', '#build/include/ipv4'])
|
|
|
|
#test_netenv.Append(LIBPATH = ['#build/lib/libc', '#build/lib/liblwip'],
|
|
|
|
# LIBS = ['lwip', 'c'])
|
|
|
|
#
|
|
|
|
#lwiptest_src = []
|
|
|
|
#lwiptest_src.append(env["CRTBEGIN"])
|
|
|
|
#lwiptest_src.append(["lwiptest.c"])
|
|
|
|
#lwiptest_src.append(env["CRTEND"])
|
|
|
|
#test_netenv.Program("lwiptest", lwiptest_src)
|
2015-02-03 22:07:22 +00:00
|
|
|
|