git » nmdb » commit 61700af

Add SCTP C tests.

author Alberto Bertogli
2007-08-26 00:15:25 UTC
committer Alberto Bertogli
2007-08-26 00:15:25 UTC
parent 28cb0099f1cca44887771749e4c982e9bb8d7c27

Add SCTP C tests.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

tests/c/make.sh +1 -1
tests/c/prototypes.h +3 -0

diff --git a/tests/c/make.sh b/tests/c/make.sh
index 771c171..ea342bc 100755
--- a/tests/c/make.sh
+++ b/tests/c/make.sh
@@ -32,7 +32,7 @@ case "$1" in
 esac;
 
 
-for p in TIPC TCP UDP MULT; do
+for p in TIPC TCP UDP SCTP MULT; do
 	for v in NORMAL CACHE SYNC; do
 		OP=`echo $p-$v | tr '[A-Z]' '[a-z]'`
 		TF="-DUSE_$p=1 -DUSE_$v=1"
diff --git a/tests/c/prototypes.h b/tests/c/prototypes.h
index e0efcc2..6accea8 100644
--- a/tests/c/prototypes.h
+++ b/tests/c/prototypes.h
@@ -25,6 +25,8 @@
   #define NADDSRV(db) nmdb_add_tcp_server(db, "localhost", -1)
 #elif USE_UDP
   #define NADDSRV(db) nmdb_add_udp_server(db, "localhost", -1)
+#elif USE_SCTP
+  #define NADDSRV(db) nmdb_add_sctp_server(db, "localhost", -1)
 #elif USE_TIPC
   #define NADDSRV(db) nmdb_add_tipc_server(db, -1)
 #elif USE_MULT
@@ -33,6 +35,7 @@
 		nmdb_add_tipc_server(db, -1); \
 		nmdb_add_tcp_server(db, "localhost", -1); \
 		nmdb_add_udp_server(db, "localhost", -1); \
+		nmdb_add_sctp_server(db, "localhost", -1); \
 	} while (0)
 #endif