aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcmake/basictest35
-rw-r--r--test/CMakeLists.txt6
2 files changed, 37 insertions, 4 deletions
diff --git a/cmake/basictest b/cmake/basictest
index 8652ee76..5c7b7eea 100755
--- a/cmake/basictest
+++ b/cmake/basictest
@@ -27,6 +27,19 @@ fi
# Each test case that cannot be handle in the "standard way" shall
# be implemented as a function here.
+function regtest() {
+ echo 'Some of the output from regtest is very system specific, do not'
+ echo 'be distressed if your output differs from that distributed.'
+ echo 'Manual inspection is called for.'
+ AWK=$GAWKEXE ${SRCDIR}/regtest.sh
+}
+
+function inftest() {
+ echo This test is very machine specific...
+ $GAWKEXE -f ${SRCDIR}/inftest.awk | sed "s/inf/Inf/g" >_${TESTCASE}
+ ${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE}
+}
+
function getline2() {
$GAWKEXE -f ${SRCDIR}/getline2.awk ${SRCDIR}/getline2.awk ${SRCDIR}/getline2.awk >_${TESTCASE}
${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE}
@@ -158,6 +171,28 @@ function fmtspcl() {
fi
}
+function inetechu() {
+ echo This test is for establishing UDP connections
+ $GAWKEXE 'BEGIN {print "" |& "/inet/udp/0/127.0.0.1/9"}'
+}
+
+function inetecht() {
+ echo This test is for establishing TCP connections
+ $GAWKEXE 'BEGIN {print "" |& "/inet/tcp/0/127.0.0.1/9"}'
+}
+
+function inetdayu() {
+ echo This test is for bidirectional UDP transmission
+ $GAWKEXE 'BEGIN { print "" |& "/inet/udp/0/127.0.0.1/13"; \
+ "/inet/udp/0/127.0.0.1/13" |& getline; print $0}'
+}
+
+function inetdayt() {
+ echo This test is for bidirectional TCP transmission
+ $GAWKEXE 'BEGIN { print "" |& "/inet/tcp/0/127.0.0.1/13"; \
+ "/inet/tcp/0/127.0.0.1/13" |& getline; print $0}'
+}
+
function mpfrexprange() {
$GAWKEXE -M -vPREC=53 -f ${SRCDIR}/${TESTCASE}.awk > _${TESTCASE} 2>&1
${COMPARE} ${SRCDIR}/${TESTCASE}.ok _${TESTCASE} && rm -f _${TESTCASE}
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 39ec0b9f..17040c36 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -72,9 +72,7 @@ foreach(testgroup ${ALL_GROUPS} )
${testcase} STREQUAL incdupe2 OR ${testcase} STREQUAL incdupe3 OR
${testcase} STREQUAL incdupe4 OR ${testcase} STREQUAL incdupe5 OR
${testcase} STREQUAL incdupe6 OR ${testcase} STREQUAL incdupe7 OR
- ${testcase} STREQUAL include2 OR ${testcase} STREQUAL inetdayt OR
- ${testcase} STREQUAL inetdayu OR ${testcase} STREQUAL inetecht OR
- ${testcase} STREQUAL inetechu OR ${testcase} STREQUAL inftest OR
+ ${testcase} STREQUAL include2 OR
${testcase} STREQUAL jarebug OR
${testcase} STREQUAL leaddig OR ${testcase} STREQUAL localenl OR
${testcase} STREQUAL mbfw1 OR ${testcase} STREQUAL mbprintf1 OR
@@ -86,7 +84,7 @@ foreach(testgroup ${ALL_GROUPS} )
${testcase} STREQUAL printf0 OR ${testcase} STREQUAL printfbad2 OR
${testcase} STREQUAL profile1 OR ${testcase} STREQUAL profile2 OR
${testcase} STREQUAL profile3 OR
- ${testcase} STREQUAL redfilnm OR ${testcase} STREQUAL regtest OR
+ ${testcase} STREQUAL redfilnm OR
${testcase} STREQUAL rsnulbig OR ${testcase} STREQUAL rsnulbig2 OR
${testcase} STREQUAL rsstart3 OR ${testcase} STREQUAL rtlen OR
${testcase} STREQUAL rtlen01 OR ${testcase} STREQUAL rtlenmb OR