]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Thu, 31 Aug 2000 16:46:26 +0000 (16:46 +0000)
committerhades <hades>
Thu, 31 Aug 2000 16:46:26 +0000 (16:46 +0000)
allParam/Makefile
allParam/test/Makefile
allParam/test/suite.c

index cece99d0782a42ff5efe4c1b92d3f24f316e5454..7e8ae4dea4f3f0406c24cf3d151a010ea044d040 100644 (file)
@@ -34,12 +34,16 @@ $(patsubst %Param,install_%,$(PARAMLIBES)) :
        install -m 664 $(patsubst install_%,%,$@)/param.h \
        $(INCDIR)/$(patsubst install_%,%,$@)
 
+test :
+       cd test ; $(MAKE) $@
+
 clean :
        cd ca ; $(MAKE) $@
        cd file ; $(MAKE) $@
        cd psql ; $(MAKE) $@
        cd ora ; $(MAKE) $@
        cd tcl ; $(MAKE) $@
+       cd test ; $(MAKE) $@
 
 lib_clean :
        cd ca ; $(MAKE) $@
@@ -47,4 +51,5 @@ lib_clean :
        cd psql ; $(MAKE) $@
        cd ora ; $(MAKE) $@
        cd tcl ; $(MAKE) $@
+       cd test ; $(MAKE) bin_clean
 
index 5a1e6a77ea79d74fff0336954177df5ab3bb9094..c2bda74c2a07070ed5ed92890e139bb6e86d9a95 100644 (file)
@@ -1,4 +1,3 @@
-CC = gcc
 MV = mv
 
 # Channel Access test
@@ -36,6 +35,13 @@ LIBS = ca file ora psql tcl
 
 suite : $(addsuffix _suite,$(LIBS))
 
+test : $(addsuffix _suite_new,$(LIBS))
+       time ./ca_suite > test_protocol.txt
+       time ./file_suite >> test_protocol.txt
+       time ./ora_suite >> test_protocol.txt
+       time ./psql_suite >> test_protocol.txt
+       time ./tcl_suite >> test_protocol.txt
+
 $(addsuffix _suite_new,$(LIBS)) :
        $(RM) $(patsubst %_new,%,$@)
        $(MAKE) $(patsubst %_new,%,$@)
@@ -81,8 +87,8 @@ $(addsuffix .o, $(TESTS)) : $(patsubst %.o,%.c,$@) $(patsubst %.o,%.h,$@)
        $(CC) -c $(CFLAGS) $(patsubst %.o,%.c,$@) -o $@
 
 clean :
-       rm -f *.o
+       rm -f *.o test_protocol.txt
 
 bin_clean :
-       rm *.o *_suite
+       rm *.o *_suite test_protocol.txt
 
index d7c40eaa9dbdb398108830848c5dc2102cc3a242..39e498e9bd623b41dcdc094486d7bf04f51fba5a 100644 (file)
@@ -31,6 +31,8 @@ int main(int argc, char *argv[]) {
        param = malloc(sizeof(Param));
        conParam(param);
 
+       printf("================================================================================\n");
+       printf("%s : Starting test ...\n", argv[0]);
        printf("================================================================================\n");
        errors -= test1("Test 1", param);
        errors -= test2("Test 2", param);