mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 01:42:56 +08:00
testsuite/syscalls01: Split out program01 part.
This allows to use normal functions for sockets and similar while allowing to test the upcoming rtems_bsd_program_opan/close/... for the program part.
This commit is contained in:
@@ -34,7 +34,7 @@ def configure(conf):
|
||||
def build(bld):
|
||||
# C/C++ flags
|
||||
common_flags = []
|
||||
common_flags += ["-O2"]
|
||||
common_flags += ["-O0"]
|
||||
common_flags += ["-g"]
|
||||
common_flags += ["-fno-strict-aliasing"]
|
||||
common_flags += ["-ffreestanding"]
|
||||
@@ -1407,6 +1407,16 @@ def build(bld):
|
||||
lib = ["m", "z"],
|
||||
install_path = None)
|
||||
|
||||
test_program01 = ['testsuite/program01/test_main.c']
|
||||
bld.program(target = "program01.exe",
|
||||
features = "cprogram",
|
||||
cflags = cflags,
|
||||
includes = includes,
|
||||
source = test_program01,
|
||||
use = ["bsd"],
|
||||
lib = ["m", "z"],
|
||||
install_path = None)
|
||||
|
||||
test_rcconf01 = ['testsuite/rcconf01/test_main.c']
|
||||
bld.program(target = "rcconf01.exe",
|
||||
features = "cprogram",
|
||||
|
Reference in New Issue
Block a user