metal-cos/tests/SConscript
2023-09-03 14:55:51 -04:00

44 lines
1.3 KiB
Python

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'])
threadtest_src = []
threadtest_src.append(env["CRTBEGIN"])
threadtest_src.append(["threadtest.c"])
threadtest_src.append(env["CRTEND"])
test_env.Program("threadtest", threadtest_src)
spawntest_src = []
spawntest_src.append(env["CRTBEGIN"])
spawntest_src.append(["spawntest.c"])
spawntest_src.append(env["CRTEND"])
test_env.Program("spawntest", spawntest_src)
pthreadtest_src = []
pthreadtest_src.append(env["CRTBEGIN"])
pthreadtest_src.append(["pthreadtest.c"])
pthreadtest_src.append(env["CRTEND"])
test_env.Program("pthreadtest", pthreadtest_src)
#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)