]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Fri, 8 Sep 2000 16:56:32 +0000 (16:56 +0000)
committerhades <hades>
Fri, 8 Sep 2000 16:56:32 +0000 (16:56 +0000)
13 files changed:
allParam/Makefile
allParam/test/Makefile
allParam/test/test13.c
allParam/test/test14.c
allParam/test/test15.c
allParam/test/test17.c
allParam/test/test19.c
allParam/test/test20.c
allParam/test/test21.c
allParam/test/test22.c
allParam/test/test3.c
allParam/test/test7.c
allParam/test/test8.h

index c113f28485f599a54310369357550c9f5f57c580..367847b5ebb0f298f75737e09154e51d66fd4524 100644 (file)
@@ -35,15 +35,15 @@ $(PARAMLIBES) :
        cd $@ ; $(MAKE)
 
 ca_install :
-       cd ca ; $(MAKE) install "LIBDIR=$(LIBDIR) INCDIR=$(INCDIR)/ca"
+       cd ca ; $(MAKE) install "LIBDIR=$(LIBDIR)" "INCDIR=$(INCDIR)/ca"
 file_install :
-       cd file ; $(MAKE) install "LIBDIR=$(LIBDIR) INCDIR=$(INCDIR)/file"
+       cd file ; $(MAKE) install "LIBDIR=$(LIBDIR)" "INCDIR=$(INCDIR)/file"
 ora_install :
-       cd ora ; $(MAKE) install "LIBDIR=$(LIBDIR) INCDIR=$(INCDIR)/ora"
+       cd ora ; $(MAKE) install "LIBDIR=$(LIBDIR)" "INCDIR=$(INCDIR)/ora"
 psql_install :
-       cd psql ; $(MAKE) install "LIBDIR=$(LIBDIR) INCDIR=$(INCDIR)/psql"
+       cd psql ; $(MAKE) install "LIBDIR=$(LIBDIR)" "INCDIR=$(INCDIR)/psql"
 tcl_install :
-       cd tcl ; $(MAKE) install "LIBDIR=$(LIBDIR) INCDIR=$(INCDIR)/tcl"
+       cd tcl ; $(MAKE) install "LIBDIR=$(LIBDIR)" "INCDIR=$(INCDIR)/tcl"
 
 $(TESTS) :
        cd test ; $(MAKE) $@
@@ -65,4 +65,5 @@ lib_clean :
        cd test ; $(MAKE) bin_clean
 
 $(PARAMLIBES) test : dummy
+dummy :
 
index 7f529cf98d349dea9ae4b290c909fd6e71de9598..d3f1c12c4c21b29bd23e75d1bbb917a8b138aba4 100644 (file)
@@ -31,8 +31,6 @@ OBJS = suite.o $(addsuffix .o,$(TESTS))
 
 LIBS = ca file ora psql tcl
 
-suite : $(addsuffix _suite,$(LIBS))
-
 ca_test file_test ora_test psql_test tcl_test :
        $(RM) $@_suite
        $(MAKE) $@_suite
@@ -74,7 +72,7 @@ $(addprefix tcl_,$(OBJS)) :
        $(MV) $(patsubst tcl_%,%,$@) $@
 
 suite.o : suite.c $(addsuffix .h, $(TESTS))
-       $(CC) -c $(CFLAGS) $(suite.c,$@) -o $@
+       $(CC) -c $(CFLAGS) suite.c -o $@
 $(addsuffix .o, $(TESTS)) : $(patsubst %.o,%.c,$@) $(patsubst %.o,%.h,$@)
        $(CC) -c $(CFLAGS) $(patsubst %.o,%.c,$@) -o $@
 
@@ -85,4 +83,5 @@ bin_clean :
        rm *.o *_suite *test_protocol.txt sqlnet.log
 
 ca_test file_test ora_test psql_test tcl_test : dummy
+dummy :
 
index 90d9d5aa061621dd47492613c195645fde76a374..8339126d541ded3ee0ce2c18d1f5945b62dbe60f 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
index 631c5ae2fe10cca411e8b93044f6b13fa65e6d99..704bdcdd04a8b757e0c6699a6e463b5403daec1f 100644 (file)
@@ -10,7 +10,6 @@ int test14(const char *testid, const Param *param) {
        char *idx = "blub";
        unsigned long int result[NUM2];
        int rows;
-       int i;
        int retVal;
        int myRetVal;
 
index a5561b2f37dc1fd683ee734b4d3959156b4c8e59..2e09c660864deb1853c404d0d9da1afea976881e 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
index b7ec3c3ff59fc6df7205be29c445896f6e97871e..6d0089ddbf315cdf66d176a41866a12a3fedb725 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
index 4a79ee6502f3ed4502406a3d16f631a181634def..29deeef7a73c09f96a21b0562dbeecd2894b821e 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
@@ -21,38 +22,38 @@ int test19(const char *testid, const Param *param) {
 
        retVal = Param_getStringArray(param, name, idx, NUM2, &rows, result);
        if ((rows == NUM2) &&
-               result[0] && (strcmp(result[0], "0") == 0) &&
+               result[0] && (strcmp(result[0], "1") == 0) &&
                result[1] && (strcmp(result[1], "0") == 0) &&
-               result[2] && (strcmp(result[2], "0") == 0) &&
-               result[3] && (strcmp(result[3], "0") == 0) &&
-               result[4] && (strcmp(result[4], "0") == 0) &&
-               result[5] && (strcmp(result[5], "0") == 0) &&
-               result[6] && (strcmp(result[6], "0") == 0) &&
-               result[7] && (strcmp(result[7], "0") == 0) &&
-               result[8] && (strcmp(result[8], "0") == 0) &&
-               result[9] && (strcmp(result[9], "0") == 0) &&
-               result[10] && (strcmp(result[10], "0") == 0) &&
-               result[11] && (strcmp(result[11], "0") == 0) &&
-               result[12] && (strcmp(result[12], "0") == 0) &&
-               result[13] && (strcmp(result[13], "0") == 0) &&
-               result[14] && (strcmp(result[14], "0") == 0) &&
-               result[15] && (strcmp(result[15], "0") == 0) &&
-               result[16] && (strcmp(result[16], "0") == 0) &&
-               result[17] && (strcmp(result[17], "0") == 0) &&
-               result[18] && (strcmp(result[18], "0") == 0) &&
-               result[19] && (strcmp(result[19], "0") == 0) &&
-               result[20] && (strcmp(result[20], "0") == 0) &&
-               result[21] && (strcmp(result[21], "0") == 0) &&
-               result[22] && (strcmp(result[22], "0") == 0) &&
-               result[23] && (strcmp(result[23], "0") == 0) &&
-               result[24] && (strcmp(result[24], "0") == 0) &&
-               result[25] && (strcmp(result[25], "0") == 0) &&
-               result[26] && (strcmp(result[26], "0") == 0) &&
-               result[27] && (strcmp(result[27], "0") == 0) &&
-               result[28] && (strcmp(result[28], "0") == 0) &&
-               result[29] && (strcmp(result[29], "0") == 0) &&
-               result[30] && (strcmp(result[30], "0") == 0) &&
-               result[31] && (strcmp(result[31], "0") == 0) &&
+               result[2] && (strcmp(result[2], "3") == 0) &&
+               result[3] && (strcmp(result[3], "2") == 0) &&
+               result[4] && (strcmp(result[4], "5") == 0) &&
+               result[5] && (strcmp(result[5], "4") == 0) &&
+               result[6] && (strcmp(result[6], "7") == 0) &&
+               result[7] && (strcmp(result[7], "6") == 0) &&
+               result[8] && (strcmp(result[8], "9") == 0) &&
+               result[9] && (strcmp(result[9], "8") == 0) &&
+               result[10] && (strcmp(result[10], "11") == 0) &&
+               result[11] && (strcmp(result[11], "10") == 0) &&
+               result[12] && (strcmp(result[12], "13") == 0) &&
+               result[13] && (strcmp(result[13], "12") == 0) &&
+               result[14] && (strcmp(result[14], "15") == 0) &&
+               result[15] && (strcmp(result[15], "14") == 0) &&
+               result[16] && (strcmp(result[16], "17") == 0) &&
+               result[17] && (strcmp(result[17], "16") == 0) &&
+               result[18] && (strcmp(result[18], "19") == 0) &&
+               result[19] && (strcmp(result[19], "18") == 0) &&
+               result[20] && (strcmp(result[20], "21") == 0) &&
+               result[21] && (strcmp(result[21], "20") == 0) &&
+               result[22] && (strcmp(result[22], "23") == 0) &&
+               result[23] && (strcmp(result[23], "22") == 0) &&
+               result[24] && (strcmp(result[24], "25") == 0) &&
+               result[25] && (strcmp(result[25], "24") == 0) &&
+               result[26] && (strcmp(result[26], "27") == 0) &&
+               result[27] && (strcmp(result[27], "26") == 0) &&
+               result[28] && (strcmp(result[28], "29") == 0) &&
+               result[29] && (strcmp(result[29], "28") == 0) &&
+               result[30] && (strcmp(result[30], "31") == 0) &&
+               result[31] && (strcmp(result[31], "30") == 0) &&
                (retVal == 0)) {
                myRetVal = 0;
                printf("%s : Passed.\n", testid);
index 9397c071bc65149085657b45c47e89f5f87f1d83..816b108c648a54d1b6b72d10077b8f1504dee59c 100644 (file)
@@ -10,7 +10,6 @@ int test20(const char *testid, const Param *param) {
        char *idx = "fefpgafile";
        unsigned long int result[NUM1];
        int rows;
-       int i;
        int retVal;
        int myRetVal;
 
index 6865f8459f4e13da3085f5db8c2a6d486a626d39..f9d4860dce211f0c4e526093809230a63c677a47 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
@@ -24,7 +25,7 @@ int test21(const char *testid, const Param *param) {
                myRetVal = 0;
                printf("%s : Passed.\n", testid);
        } else {
-               printf("%s : Failed. Rows: %d, result: \'%s\', return Value: %d.\n", testid, rows, result, retVal);
+               printf("%s : Failed. Rows: %d, result: \'%s\', return Value: %d.\n", testid, rows, result[0], retVal);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
                myRetVal = -1;
        }
index 7784ea99e9d46eebbcf13de0705b41c83e3bbfa5..274db84233cfd9f8e43012430dd4e41ac5e92e68 100644 (file)
@@ -12,7 +12,6 @@ int test22(const char *testid, const Param *param) {
        int rows;
        int retVal;
        int myRetVal;
-       int i;
 
        printf("%s : Param_getString: Request for Array value.\n", testid);
 
index 3610ff49a79a48b0e8163d2fbca9f0b7d9932ab8..fff0c2eff4aaca5aa3c1d1fcf3b5cd1d9b35f688 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
index 77ccc2abbea0991a8f51290a4e5eb0db57d74fd5..7a4d2d31ddacd256cb5dcacf671014d524977bd6 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <param.h>
 
index 95e178d39e1dfa27403894e0994b2a14efe5a702..80127aebefb9c08e4a6659e302abb44ef6221e74 100644 (file)
@@ -1,10 +1,10 @@
-#ifndef TEST4_H
-#define TEST4_H
+#ifndef TEST8_H
+#define TEST8_H
 
 #include <param.h>
 
 #define NUM2 32
 
-int test4(const char *, const Param *);
+int test8(const char *, const Param *);
 
 #endif