From 65c65bb7a3e981b01e0dfe42dbd62617b867de55 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 1 Jul 2016 15:49:52 +1000 Subject: Add telnetd as service to rc.conf. --- testsuite/rcconf02/test_main.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'testsuite/rcconf02') diff --git a/testsuite/rcconf02/test_main.c b/testsuite/rcconf02/test_main.c index 7cb99994..8695e562 100644 --- a/testsuite/rcconf02/test_main.c +++ b/testsuite/rcconf02/test_main.c @@ -69,10 +69,6 @@ #include #include -#if DEFINE_FOR_TESTING -#define RCCONF02_HAS_SHELL -#endif - #define TEST_NAME "LIBBSD RC.CONF 2" #define IFACE_IPV4(iface) \ @@ -121,6 +117,9 @@ static const char* rc_conf_text = \ "\n" \ "dhcpcd_options=\"-h foobar\"\n" \ "\n" \ + "telnetd_enable=\"YES\"\n" \ + "telnetd_options=\"-v -C 10 -P 50 -L\"\n" \ + "\n" \ "ftpd_enable=\"YES\"\n" \ "ftpd_options=\"-v -p 21 -C 10 -P 150 -L -I 10 -R /\"\n" \ "n"; @@ -153,7 +152,6 @@ test_main(void) { test_rc_conf_script(); -#if defined(RCCONF02_HAS_SHELL) rtems_shell_init( "SHLL", 32 * 1024, @@ -163,19 +161,10 @@ test_main(void) true, NULL ); -#else - printf("RCCONF02 sleeping for 10s\n"); - sleep(10); -#endif /* RCCONF02_HAS_SHELL */ exit(0); } -/* - * Optional shell for testing this test. - */ -#if defined(RCCONF02_HAS_SHELL) - #define CONFIGURE_SHELL_COMMANDS_INIT #include @@ -214,9 +203,12 @@ test_main(void) #define CONFIGURE_SHELL_COMMAND_SHUTDOWN #include -#endif /* RCCONF02_HAS_SHELL */ #define RTEMS_BSD_CONFIG_BSP_CONFIG +#define RTEMS_BSD_CONFIG_SERVICE_TELNETD +#define RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE (16 * 1024) #define RTEMS_BSD_CONFIG_SERVICE_FTPD +#define CONFIGURE_MAXIMUM_DRIVERS 32 + #include -- cgit v1.2.3