diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-09 22:52:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-10 09:08:23 +0200 |
commit | e599318e912d8836c59d8b5202e3e31a6b8dcae9 (patch) | |
tree | 1172b8b830a1c3236e45c834c2b80e01325ea144 /testsuite/netshell01 | |
parent | Move files to match FreeBSD layout (diff) | |
download | rtems-libbsd-e599318e912d8836c59d8b5202e3e31a6b8dcae9.tar.bz2 |
Update files to match FreeBSD layout
Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:
o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h
It is now possible to include <sys/socket.h> directly for example.
Generate one Makefile which builds everything including tests.
Diffstat (limited to 'testsuite/netshell01')
-rw-r--r-- | testsuite/netshell01/.gitignore | 1 | ||||
-rw-r--r-- | testsuite/netshell01/Makefile | 30 | ||||
-rw-r--r-- | testsuite/netshell01/test_main.c | 11 |
3 files changed, 5 insertions, 37 deletions
diff --git a/testsuite/netshell01/.gitignore b/testsuite/netshell01/.gitignore deleted file mode 100644 index 27bb1279..00000000 --- a/testsuite/netshell01/.gitignore +++ /dev/null @@ -1 +0,0 @@ -init.c diff --git a/testsuite/netshell01/Makefile b/testsuite/netshell01/Makefile deleted file mode 100644 index e0179c22..00000000 --- a/testsuite/netshell01/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -include ../../config.inc - -PGM=${ARCH}/netshell01.exe - -# optional managers required -MANAGERS=all - -# C source names -C_FILES = init.c test_main.c shellconfig.c ns_parser_vars.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) - -AM_CPPFLAGS += -I $(INSTALL_BASE)/include -AM_CPPFLAGS += -I ../init01 -LINK_LIBS += $(INSTALL_BASE)/libbsdc.a -LINK_LIBS += $(INSTALL_BASE)/libbsd.a -lm ${REL_ARGS} - -include $(RTEMS_MAKEFILE_PATH)/Makefile.inc -include $(RTEMS_CUSTOM) -include $(PROJECT_ROOT)/make/leaf.cfg - -OBJS= $(C_O_FILES) -CLEAN_ADDITIONS += init.c - -all: init.c ${ARCH} $(PGM) - -init.c: ../init01/init.c - cp ../init01/init.c . - -$(PGM): $(OBJS) - -$(make-exe) diff --git a/testsuite/netshell01/test_main.c b/testsuite/netshell01/test_main.c index 65304849..b56d8307 100644 --- a/testsuite/netshell01/test_main.c +++ b/testsuite/netshell01/test_main.c @@ -11,20 +11,19 @@ #include <rtems/shell.h> -void print_test_name(void) -{ - printf( "\n\n*** LIBFREEBSD NETWORK SHELL TEST ***\n" ); -} +#define TEST_NAME "LIBBSD NETSHELL 1" /* * RTEMS Startup Task */ -void test_main(void) +static void test_main(void) { rtems_shell_env_t env = rtems_global_shell_env; rtems_shell_main_loop( &env ); - puts( "*** END OF NETWORK SHELL TEST ***" ); + puts( "*** END OF " TEST_NAME " TEST ***" ); exit( 0 ); } + +#include <rtems/bsd/test/default-init.h> |