diff --git a/test/SConscript b/test/SConscript index 037e1e6..21c3550 100644 --- a/test/SConscript +++ b/test/SConscript @@ -1,4 +1,5 @@ -import os +import platform + Import('env', 'build_type', 'prefix', 'version_info', 'test_xml') test_env = env.Clone() @@ -6,6 +7,16 @@ test_env.Append(LIBPATH = ['#build/src']); test_env.Append(CPPPATH = ['#src']) test_env.Append(LIBS = ['ucore_' + build_type, 'check']) +system = platform.system() + +#NetBSD needs /usr/pkg/... +if 'netbsd' in system.lower(): + test_env.Append(LIBPATH = ['/usr/pkg/lib']) + test_env.Append(LINKFLAGS = ['-Wl,-rpath,/usr/pkg/lib']) + test_env.Append(CPPPATH = ['/usr/pkg/include']) + + + tests = test_env.Glob('test_*.c') test_executable = 'test_runner'