summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/loopback/loopback.scn
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-27 23:30:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-27 23:30:53 +0000
commit25b957c10a1126a59a53c4c7c3e319aaa6a4c9f4 (patch)
tree998a094b8653697d561934477af632270d8769a0 /testsuites/samples/loopback/loopback.scn
parent4691b48d1dfcdb04737fb005de78e06eee107774 (diff)
downloadrtems-25b957c10a1126a59a53c4c7c3e319aaa6a4c9f4.tar.bz2
2003-01-27 Joel Sherrill <joel@OARcorp.com>
* Makefile.am, configure.ac: Added new test loopback which shows how to use the loopback interface. Thank you Eric Norum for a portable target independent test which exercises the TCP/IP. This should prevent massive failures in the TCP/IP stack from reaching the street. * loopback/.cvsignore, loopback/Makefile.am, loopback/README, loopback/init.c, loopback/loopback.scn: New files.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/loopback/loopback.scn56
1 files changed, 56 insertions, 0 deletions
diff --git a/testsuites/samples/loopback/loopback.scn b/testsuites/samples/loopback/loopback.scn
new file mode 100644
index 0000000000..ec6207f315
--- /dev/null
+++ b/testsuites/samples/loopback/loopback.scn
@@ -0,0 +1,56 @@
+"Network" initializing!
+"Network" initialized!
+Try running client with no server present.
+Should fail with `connection refused'.
+Connect to server.
+Can't connect to server: Connection refused
+Client closing connection.
+
+Start server.
+
+Try running client with server present.
+Create socket.
+Connect to server.
+Bind socket.
+Can't connect to server: Connection refused
+Client closing connection.
+Client task terminating.
+
+Try running two clients.
+Connect to server.
+Connect to server.
+ACCEPTED:7F000001
+ACCEPTED:7F000001
+Write 22-byte message to server.
+Write 22-byte message to server.
+Read 43 from server: Server received 22 (Hi there, server (2).)
+Read 43 from server: Server received 22 (Hi there, server (3).)
+Client closing connection.
+Client task terminating.
+Worker task terminating.
+Client closing connection.
+Client task terminating.
+Worker task terminating.
+
+Try running three clients.
+Connect to server.
+Connect to server.
+Connect to server.
+ACCEPTED:7F000001
+ACCEPTED:7F000001
+ACCEPTED:7F000001
+Write 22-byte message to server.
+Write 22-byte message to server.
+Write 22-byte message to server.
+Read 43 from server: Server received 22 (Hi there, server (4).)
+Read 43 from server: Server received 22 (Hi there, server (5).)
+Read 43 from server: Server received 22 (Hi there, server (6).)
+Client closing connection.
+Client task terminating.
+Worker task terminating.
+Client closing connection.
+Client task terminating.
+Worker task terminating.
+Client closing connection.
+Client task terminating.
+Worker task terminating.