[rtems-libbsd commit] testsuite: User input define added

Sebastian Huber sebh at rtems.org
Tue Mar 31 09:19:58 UTC 2020


Module:    rtems-libbsd
Branch:    master
Commit:    9478d56165289eeb600baa3be70c9a5bb566bd8d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=9478d56165289eeb600baa3be70c9a5bb566bd8d

Author:    Moyano, Gabriel <gabriel.moyano at dlr.de>
Date:      Tue Mar 31 10:57:55 2020 +0200

testsuite: User input define added

---

 testsuite/arphole/test_main.c      | 1 +
 testsuite/debugger01/test_main.c   | 1 +
 testsuite/evdev01/init.c           | 3 ++-
 testsuite/foobarclient/test_main.c | 1 +
 testsuite/foobarserver/test_main.c | 1 +
 testsuite/ftpd01/test_main.c       | 1 +
 testsuite/ipsec01/test_main.c      | 1 +
 testsuite/media01/test_main.c      | 1 +
 testsuite/netshell01/test_main.c   | 1 +
 testsuite/nfs01/test_main.c        | 1 +
 testsuite/pf02/test_main.c         | 1 +
 testsuite/ppp01/test_main.c        | 1 +
 testsuite/telnetd01/test_main.c    | 1 +
 testsuite/termios/test_main.c      | 1 +
 testsuite/usb01/init.c             | 3 ++-
 testsuite/usbkbd01/init.c          | 3 ++-
 testsuite/usbmouse01/init.c        | 3 ++-
 testsuite/usbserial01/init.c       | 3 ++-
 testsuite/zerocopy01/test_main.c   | 1 +
 19 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/testsuite/arphole/test_main.c b/testsuite/arphole/test_main.c
index 19d67b8..45a28cc 100644
--- a/testsuite/arphole/test_main.c
+++ b/testsuite/arphole/test_main.c
@@ -54,6 +54,7 @@
 #include <rtems/bsd/util.h>
 
 #define TEST_NAME "LIBBSD ARP HOLE"
+#define TEST_STATE_USER_INPUT 1
 
 typedef struct {
 	struct ether_header eh;
diff --git a/testsuite/debugger01/test_main.c b/testsuite/debugger01/test_main.c
index 6a4095c..777e8a7 100644
--- a/testsuite/debugger01/test_main.c
+++ b/testsuite/debugger01/test_main.c
@@ -35,6 +35,7 @@
 #include <rtems/rtems-debugger-remote-tcp.h>
 
 #define TEST_NAME "LIBBSD DEBUGGER 1"
+#define TEST_STATE_USER_INPUT 1
 
 extern rtems_shell_cmd_t rtems_shell_DEBUGGER_Command;
 
diff --git a/testsuite/evdev01/init.c b/testsuite/evdev01/init.c
index 7e55d72..af375ee 100644
--- a/testsuite/evdev01/init.c
+++ b/testsuite/evdev01/init.c
@@ -39,9 +39,10 @@
 #include <rtems/console.h>
 #include <rtems/shell.h>
 #include <rtems/bsd/bsd.h>
-#include <rtems/test.h>
 
 #define TEST_NAME "LIBBSD EVDEV"
+#define TEST_STATE_USER_INPUT 1
+#include <rtems/test.h>
 
 #define PRIO_OPEN           (RTEMS_MAXIMUM_PRIORITY - 12)
 #define PRIO_KEYBOARD       (RTEMS_MAXIMUM_PRIORITY - 11)
diff --git a/testsuite/foobarclient/test_main.c b/testsuite/foobarclient/test_main.c
index e2e017f..85007ee 100644
--- a/testsuite/foobarclient/test_main.c
+++ b/testsuite/foobarclient/test_main.c
@@ -47,6 +47,7 @@
 #include <rtems/mdns.h>
 
 #define TEST_NAME "LIBBSD FOOBAR CLIENT"
+#define TEST_STATE_USER_INPUT 1
 
 static CacheEntity rr_cache[64];
 
diff --git a/testsuite/foobarserver/test_main.c b/testsuite/foobarserver/test_main.c
index f00a103..a239a56 100644
--- a/testsuite/foobarserver/test_main.c
+++ b/testsuite/foobarserver/test_main.c
@@ -47,6 +47,7 @@
 #include <pthread.h>
 
 #define TEST_NAME "LIBBSD FOOBAR SERVER"
+#define TEST_STATE_USER_INPUT 1
 
 #define FOOBAR_PORT_BEGIN 10815
 
diff --git a/testsuite/ftpd01/test_main.c b/testsuite/ftpd01/test_main.c
index 76e64f9..98eb47e 100644
--- a/testsuite/ftpd01/test_main.c
+++ b/testsuite/ftpd01/test_main.c
@@ -37,6 +37,7 @@
 #include <rtems/console.h>
 
 #define TEST_NAME "LIBBSD FTPD 1"
+#define TEST_STATE_USER_INPUT 1
 
 struct rtems_ftpd_configuration rtems_ftpd_configuration = {
 	/* FTPD task priority */
diff --git a/testsuite/ipsec01/test_main.c b/testsuite/ipsec01/test_main.c
index 4bce3be..651a405 100644
--- a/testsuite/ipsec01/test_main.c
+++ b/testsuite/ipsec01/test_main.c
@@ -30,6 +30,7 @@
  */
 
 #define TEST_NAME "LIBBSD IPSEC 1"
+#define TEST_STATE_USER_INPUT 1
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/testsuite/media01/test_main.c b/testsuite/media01/test_main.c
index 732f34e..942664c 100644
--- a/testsuite/media01/test_main.c
+++ b/testsuite/media01/test_main.c
@@ -46,6 +46,7 @@
 #include <rtems/telnetd.h>
 
 #define TEST_NAME "LIBBSD MEDIA 1"
+#define TEST_STATE_USER_INPUT 1
 
 struct rtems_ftpd_configuration rtems_ftpd_configuration = {
 	/* FTPD task priority */
diff --git a/testsuite/netshell01/test_main.c b/testsuite/netshell01/test_main.c
index 5fda46c..13d8a31 100644
--- a/testsuite/netshell01/test_main.c
+++ b/testsuite/netshell01/test_main.c
@@ -41,6 +41,7 @@
 #include <rtems/termiostypes.h>
 
 #define TEST_NAME "LIBBSD NETSHELL 1"
+#define TEST_STATE_USER_INPUT 1
 
 static void
 change_serial_settings(int fd, const struct termios *current, bool icanon)
diff --git a/testsuite/nfs01/test_main.c b/testsuite/nfs01/test_main.c
index 37d48ac..d50edc3 100644
--- a/testsuite/nfs01/test_main.c
+++ b/testsuite/nfs01/test_main.c
@@ -40,6 +40,7 @@
 #include <rtems/bsd/test/network-config.h>
 
 #define TEST_NAME "LIBBSD NFS 1"
+#define TEST_STATE_USER_INPUT 1
 
 static void
 test_main(void)
diff --git a/testsuite/pf02/test_main.c b/testsuite/pf02/test_main.c
index 98c512b..3e71ebb 100644
--- a/testsuite/pf02/test_main.c
+++ b/testsuite/pf02/test_main.c
@@ -39,6 +39,7 @@
 #include <rtems/shell.h>
 
 #define TEST_NAME "LIBBSD PF 2"
+#define TEST_STATE_USER_INPUT 1
 
 /* Block all input except telnet. */
 #define ETC_PF_CONF "/etc/pf.conf"
diff --git a/testsuite/ppp01/test_main.c b/testsuite/ppp01/test_main.c
index b01f679..550039e 100644
--- a/testsuite/ppp01/test_main.c
+++ b/testsuite/ppp01/test_main.c
@@ -59,6 +59,7 @@
 #include <rtems/rtemspppd.h>
 
 #define TEST_NAME "LIBBSD PPP 1"
+#define TEST_STATE_USER_INPUT 1
 
 #ifndef RTEMS_SMP
 
diff --git a/testsuite/telnetd01/test_main.c b/testsuite/telnetd01/test_main.c
index 489f244..8fca493 100644
--- a/testsuite/telnetd01/test_main.c
+++ b/testsuite/telnetd01/test_main.c
@@ -37,6 +37,7 @@
 #include <rtems/telnetd.h>
 
 #define TEST_NAME "LIBBSD TELNETD 1"
+#define TEST_STATE_USER_INPUT 1
 
 static void
 telnet_shell(char *name, void *arg)
diff --git a/testsuite/termios/test_main.c b/testsuite/termios/test_main.c
index e188ca4..68a15c6 100644
--- a/testsuite/termios/test_main.c
+++ b/testsuite/termios/test_main.c
@@ -21,6 +21,7 @@
 #include "test_termios_driver.h"
 
 #define TEST_NAME "LIBBSD TERMIOS"
+#define TEST_STATE_USER_INPUT 1
 
 /* forward declarations to avoid warnings */
 void print_32bits(unsigned long bits, unsigned char size, char * names[]);
diff --git a/testsuite/usb01/init.c b/testsuite/usb01/init.c
index 438a054..c719e19 100644
--- a/testsuite/usb01/init.c
+++ b/testsuite/usb01/init.c
@@ -38,9 +38,10 @@
 #include <rtems/media.h>
 #include <rtems/shell.h>
 #include <rtems/bsd/bsd.h>
-#include <rtems/test.h>
 
 #define TEST_NAME "LIBBSD USB 1"
+#define TEST_STATE_USER_INPUT 1
+#include <rtems/test.h>
 
 static rtems_status_code
 media_listener(rtems_media_event event, rtems_media_state state,
diff --git a/testsuite/usbkbd01/init.c b/testsuite/usbkbd01/init.c
index d7927a6..e6fe256 100644
--- a/testsuite/usbkbd01/init.c
+++ b/testsuite/usbkbd01/init.c
@@ -34,9 +34,10 @@
 #include <rtems/console.h>
 #include <rtems/shell.h>
 #include <rtems/bsd/bsd.h>
-#include <rtems/test.h>
 
 #define TEST_NAME "LIBBSD USB KEYBOARD"
+#define TEST_STATE_USER_INPUT 1
+#include <rtems/test.h>
 
 #define USB_SERIAL_TEST_BUFFER_SIZE 48
 #define PRIO_OPEN  (RTEMS_MAXIMUM_PRIORITY - 12)
diff --git a/testsuite/usbmouse01/init.c b/testsuite/usbmouse01/init.c
index 39432dd..4d33241 100644
--- a/testsuite/usbmouse01/init.c
+++ b/testsuite/usbmouse01/init.c
@@ -39,9 +39,10 @@
 #include <rtems/console.h>
 #include <rtems/shell.h>
 #include <rtems/bsd/bsd.h>
-#include <rtems/test.h>
 
 #define TEST_NAME "LIBBSD USB MOUSE"
+#define TEST_STATE_USER_INPUT 1
+#include <rtems/test.h>
 
 #define USB_SERIAL_TEST_BUFFER_SIZE 48
 #define PRIO_OPEN  (RTEMS_MAXIMUM_PRIORITY - 12)
diff --git a/testsuite/usbserial01/init.c b/testsuite/usbserial01/init.c
index 6afef59..ef3a45f 100644
--- a/testsuite/usbserial01/init.c
+++ b/testsuite/usbserial01/init.c
@@ -35,9 +35,10 @@
 #include <rtems/console.h>
 #include <rtems/shell.h>
 #include <rtems/bsd/bsd.h>
-#include <rtems/test.h>
 
 #define TEST_NAME "LIBBSD USB SERIAL"
+#define TEST_STATE_USER_INPUT 1
+#include <rtems/test.h>
 
 #define USB_SERIAL_TEST_BUFFER_SIZE 48
 #define PRIO_OPEN  (RTEMS_MAXIMUM_PRIORITY - 12)
diff --git a/testsuite/zerocopy01/test_main.c b/testsuite/zerocopy01/test_main.c
index e528257..5405125 100644
--- a/testsuite/zerocopy01/test_main.c
+++ b/testsuite/zerocopy01/test_main.c
@@ -57,6 +57,7 @@
 #include <rtems/bsd/test/network-config.h>
 
 #define TEST_NAME "LIBBSD ZEROCOPY 1"
+#define TEST_STATE_USER_INPUT 1
 
 #define BUFFER_COUNT 128
 



More information about the vc mailing list