]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Mon, 26 Mar 2001 15:35:13 +0000 (15:35 +0000)
committerhades <hades>
Mon, 26 Mar 2001 15:35:13 +0000 (15:35 +0000)
16 files changed:
allParam/test/begin.c [new file with mode: 0644]
allParam/test/bin/echoobjs.sh [new file with mode: 0644]
allParam/test/bin/main.sh [new file with mode: 0644]
allParam/test/bin/post_ca_test.sh [new file with mode: 0644]
allParam/test/bin/post_file_test.sh [new file with mode: 0644]
allParam/test/bin/post_ora_test.sh [new file with mode: 0644]
allParam/test/bin/post_psql_test.sh [new file with mode: 0644]
allParam/test/bin/post_tcl_test.sh [new file with mode: 0644]
allParam/test/bin/pre_ca_test.sh [new file with mode: 0644]
allParam/test/bin/pre_file_test.sh [new file with mode: 0644]
allParam/test/bin/pre_ora_test.sh [new file with mode: 0644]
allParam/test/bin/pre_psql_test.sh [new file with mode: 0644]
allParam/test/bin/pre_tcl_test.sh [new file with mode: 0644]
allParam/test/end.c [new file with mode: 0644]
allParam/test/middle.c [new file with mode: 0644]
allParam/test/test_p.tcl [new file with mode: 0644]

diff --git a/allParam/test/begin.c b/allParam/test/begin.c
new file mode 100644 (file)
index 0000000..23fc0eb
--- /dev/null
@@ -0,0 +1,5 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+#include <allParam.h>
+
diff --git a/allParam/test/bin/echoobjs.sh b/allParam/test/bin/echoobjs.sh
new file mode 100644 (file)
index 0000000..c113e14
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+echo "all : $(sed s/.c/.o/g << EOF
+$(echo *.c)
+EOF
+)"
+
diff --git a/allParam/test/bin/main.sh b/allParam/test/bin/main.sh
new file mode 100644 (file)
index 0000000..bf91763
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+SUITE=suite.c
+
+rm $SUITE
+
+cat begin.c >> $SUITE
+
+for i in */*.h ; do
+       echo "#include \"$i\"" >> $SUITE
+done
+
+cat middle.c >> $SUITE
+
+for i in */*.c ; do
+       echo "  errors -= $(basename $i .c)(\"$(dirname $i)/$(basename $i .c)\", param);" >> $SUITE
+done
+
+cat end.c >> $SUITE
+
diff --git a/allParam/test/bin/post_ca_test.sh b/allParam/test/bin/post_ca_test.sh
new file mode 100644 (file)
index 0000000..8f691a4
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+kill $(cat cas.pid)
+rm -f cas.pid
+
+echo "Cleaned up after ca_test."
+
diff --git a/allParam/test/bin/post_file_test.sh b/allParam/test/bin/post_file_test.sh
new file mode 100644 (file)
index 0000000..dddef0f
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Cleaned up after file_test."
+
diff --git a/allParam/test/bin/post_ora_test.sh b/allParam/test/bin/post_ora_test.sh
new file mode 100644 (file)
index 0000000..975b348
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Cleaned up after ora_test."
+
diff --git a/allParam/test/bin/post_psql_test.sh b/allParam/test/bin/post_psql_test.sh
new file mode 100644 (file)
index 0000000..ab9c2f3
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Cleaned up after psql_test."
+
diff --git a/allParam/test/bin/post_tcl_test.sh b/allParam/test/bin/post_tcl_test.sh
new file mode 100644 (file)
index 0000000..5566f55
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Cleaned up after tcl_test."
+
diff --git a/allParam/test/bin/pre_ca_test.sh b/allParam/test/bin/pre_ca_test.sh
new file mode 100644 (file)
index 0000000..023aadf
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+echo "Starting ca_test ..."
+
+../ca/server/daq_tcl_param_cas &
+
+echo $! >> cas.pid
+
diff --git a/allParam/test/bin/pre_file_test.sh b/allParam/test/bin/pre_file_test.sh
new file mode 100644 (file)
index 0000000..0275a2b
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Starting file_test ..."
+
diff --git a/allParam/test/bin/pre_ora_test.sh b/allParam/test/bin/pre_ora_test.sh
new file mode 100644 (file)
index 0000000..083f248
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Starting ora_test ..."
+
diff --git a/allParam/test/bin/pre_psql_test.sh b/allParam/test/bin/pre_psql_test.sh
new file mode 100644 (file)
index 0000000..8c476b7
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Starting psql_test ..."
+
diff --git a/allParam/test/bin/pre_tcl_test.sh b/allParam/test/bin/pre_tcl_test.sh
new file mode 100644 (file)
index 0000000..65d9c09
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "Starting tcl_test ..."
+
diff --git a/allParam/test/end.c b/allParam/test/end.c
new file mode 100644 (file)
index 0000000..d598242
--- /dev/null
@@ -0,0 +1,10 @@
+
+       desParam(param);
+       free(param);
+
+       printf("================================================================================\n");
+       printf("%s : %d errors detected.\n", argv[0], errors);
+       printf("================================================================================\n");
+       return 0;
+}
+
diff --git a/allParam/test/middle.c b/allParam/test/middle.c
new file mode 100644 (file)
index 0000000..c623f51
--- /dev/null
@@ -0,0 +1,12 @@
+
+int main(int argc, char *argv[]) {
+       Param *param;
+       int errors = 0;
+
+       param = malloc(sizeof(Param));
+       conParam(param);
+
+       printf("================================================================================\n");
+       printf("%s : Starting test ...\n", argv[0]);
+       printf("================================================================================\n");
+
diff --git a/allParam/test/test_p.tcl b/allParam/test/test_p.tcl
new file mode 100644 (file)
index 0000000..428e0f3
--- /dev/null
@@ -0,0 +1,50 @@
+set glob(basedir) /home/bsailer/hades/devel/allParam
+
+set tname(tstring) test100
+
+set tname(tint) 100
+
+set tname(tstringa0) test1
+set tname(tstringa1) test0
+set tname(tstringa2) test3
+set tname(tstringa3) test2
+set tname(tstringa4) test5
+set tname(tstringa5) test4
+set tname(tstringa6) test7
+set tname(tstringa7) test6
+set tname(tstringa9) test10
+
+set tname(tinta0) 1
+set tname(tinta1) 0
+set tname(tinta2) 3
+set tname(tinta3) 2
+set tname(tinta4) 5
+set tname(tinta5) 4
+set tname(tinta6) 7
+set tname(tinta7) 6
+set tname(tinta8) 9
+set tname(tinta9) 8
+set tname(tinta10) 11
+set tname(tinta11) 10
+set tname(tinta12) 13
+set tname(tinta13) 12
+set tname(tinta14) 15
+set tname(tinta15) 14
+set tname(tinta16) 17
+set tname(tinta17) 16
+set tname(tinta18) 19
+set tname(tinta19) 18
+set tname(tinta20) 21
+set tname(tinta21) 20
+set tname(tinta22) 23
+set tname(tinta23) 22
+set tname(tinta24) 25
+set tname(tinta25) 24
+set tname(tinta26) 27
+set tname(tinta27) 26
+set tname(tinta28) 29
+set tname(tinta29) 28
+set tname(tinta30) 31
+set tname(tinta31) 30
+
+set file(name) ca/server/xx