some forgotten commits (unit tests update)
authorJan Pospíšil <honik@ntc.zcu.cz>
Fri, 10 Nov 2006 10:04:11 +0000 (10:04 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Fri, 10 Nov 2006 10:04:11 +0000 (10:04 +0000)
org.glite.lb.client/Makefile
org.glite.lb.client/test/prod_proto_test.c
org.glite.lb.client/test/producer_test.cpp

index 8d2fe16..63b749c 100644 (file)
@@ -248,9 +248,9 @@ examples: ${EXAMPLES} ${EXAMPLES_CL} ${sh_PROGS}
 
 fake: ${FAKE_EXAMPLES}
 
-#check: compile check.producer
+check: compile check.producer
 
- check.producer: producer_test
+check.producer: producer_test
        ./producer_test
 
 producer_test: producer_test.o prod_proto_test.o
index ef4ddc8..385a1cb 100644 (file)
@@ -3,7 +3,6 @@
 
 #include "prod_proto.h"
 #include "glite/lb/producer.h"
-#include "glite/lb/escape.h"
 
 /* virtual read will return all zeroes (answer from logger always without error) */
 int
index 2a6387d..9f965ba 100644 (file)
 extern "C" {
 int edg_wll_log_write(edg_wll_Context, int *,char *);
 int edg_wll_log_read(edg_wll_Context, int *);
+int edg_wll_log_proxy_write(edg_wll_Context, int *,char *);
+int edg_wll_log_proxy_read(edg_wll_Context, int *);
+int edg_wll_log_direct_write(edg_wll_Context, int *,char *);
+int edg_wll_log_direct_read(edg_wll_Context, int *);
 }
 
 class ProducerTest: public  CppUnit::TestFixture
@@ -41,7 +45,7 @@ public:
   void testProtoClient() {
     edg_wll_Context context;
     int err;
-    char *tst_msg = "DATE=20040831150159.702224 HOST=\"some.host\" PROG=edg-wms LVL=USAGE DG.PRIORITY=0 DG.SOURCE=\"UserInterface\" DG.SRC_INSTANCE=\"\" DG.EVNT=\"RegJob\" DG.JOBID=\"https://some.host:1234/x67qr549qc\" DG.SEQCODE=\"UI=2:NS=0:WM=0:BH=1:JSS=0:LM=0:LRMS=0:APP=0\" DG.REGJOB.JDL=\"\" DG.REGJOB.NS=\"ns address\" DG.REGJOB.PARENT=\"\" DG.REGJOB.JOBTYPE=\"SIMPLE\" DG.REGJOB.NSUBJOBS=\"0\" DG.REGJOB.SEED=\"\"";
+    static char *tst_msg = "DATE=20040831150159.702224 HOST=\"some.host\" PROG=edg-wms LVL=USAGE DG.PRIORITY=0 DG.SOURCE=\"UserInterface\" DG.SRC_INSTANCE=\"\" DG.EVNT=\"RegJob\" DG.JOBID=\"https://some.host:1234/x67qr549qc\" DG.SEQCODE=\"UI=2:NS=0:WM=0:BH=1:JSS=0:LM=0:LRMS=0:APP=0\" DG.REGJOB.JDL=\"\" DG.REGJOB.NS=\"ns address\" DG.REGJOB.PARENT=\"\" DG.REGJOB.JOBTYPE=\"SIMPLE\" DG.REGJOB.NSUBJOBS=\"0\" DG.REGJOB.SEED=\"\"";
     int size = strlen(tst_msg)+1+EDG_WLL_LOG_SOCKET_HEADER_LENGTH+sizeof(size);
 
     err = edg_wll_InitContext(&context);