summaryrefslogtreecommitdiffstats
path: root/testsuite/rcconf02
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-07-01 15:49:52 +1000
committerChris Johns <chrisj@rtems.org>2016-07-01 15:49:52 +1000
commit65c65bb7a3e981b01e0dfe42dbd62617b867de55 (patch)
tree1b2b9050d7cbf77729ce55df2641fcb5810b4e18 /testsuite/rcconf02
parentAdd ftpd initailize comment. (diff)
downloadrtems-libbsd-65c65bb7a3e981b01e0dfe42dbd62617b867de55.tar.bz2
Add telnetd as service to rc.conf.
Diffstat (limited to 'testsuite/rcconf02')
-rw-r--r--testsuite/rcconf02/test_main.c22
1 files changed, 7 insertions, 15 deletions
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 <rtems/console.h>
#include <rtems/shell.h>
-#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 <bsp/irq-info.h>
@@ -214,9 +203,12 @@ test_main(void)
#define CONFIGURE_SHELL_COMMAND_SHUTDOWN
#include <rtems/shellconfig.h>
-#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 <rtems/bsd/test/default-init.h>