]> granicus.if.org Git - check/commitdiff
Added log tests
authoramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Jul 2001 21:26:51 +0000 (21:26 +0000)
committeramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Jul 2001 21:26:51 +0000 (21:26 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@57 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/Makefile.in
check/aclocal.m4
check/config.h.in
check/configure
check/doc/money/aclocal.m4
check/doc/money/config.h.in
check/doc/money/configure
check/src/Makefile.in
check/tests/Makefile.in
check/tests/test_log_output.sh [new file with mode: 0755]

index 646fdea8d8e8c10d89299f2dc153eac248f7dc02..8da967abe4109ef53ea1e380dde60506634ebf9e 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.4 from Makefile.am
+# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
 
 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -84,13 +84,13 @@ CONFIG_CLEAN_FILES =
 DATA =  $(doc_DATA)
 
 DIST_COMMON =  README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
-Makefile.am Makefile.in NEWS acinclude.m4 aclocal.m4 config.h.in \
-configure configure.in install-sh missing mkinstalldirs
+Makefile.am Makefile.in NEWS aclocal.m4 config.h.in configure \
+configure.in install-sh missing mkinstalldirs
 
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 all: all-redirect
 .SUFFIXES:
@@ -101,10 +101,10 @@ Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
        cd $(top_builddir) \
          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
-$(ACLOCAL_M4):  configure.in  acinclude.m4
+$(ACLOCAL_M4):  configure.in 
        cd $(srcdir) && $(ACLOCAL)
 
-config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES)
        $(SHELL) ./config.status --recheck
 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
        cd $(srcdir) && $(AUTOCONF)
index cf8646d3ab06b3e76e37f9e6f6934e07a67622c8..7d5836b91f4d1fbed719541171644fe7ba3a68b6 100644 (file)
@@ -1,4 +1,4 @@
-dnl aclocal.m4 generated automatically by aclocal 1.4
+dnl aclocal.m4 generated automatically by aclocal 1.4-p4
 
 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
@@ -10,7 +10,6 @@ dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 dnl PARTICULAR PURPOSE.
 
-
 # Do all the work for Automake.  This macro actually does too much --
 # some checks are only needed if your package does certain things.
 # But this isn't really a big deal.
index 4afb9f299e4bed024da48cdad5f8e419d624d22c..f5fccbd3f0d82d95307c27bc44dc6c4c51c8c939 100644 (file)
@@ -1,4 +1,4 @@
-/* config.h.in.  Generated automatically from configure.in by autoheader.  */
+/* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
 
 /* Define to empty if the keyword does not work.  */
 #undef const
index 64085fc2c26cea76ecf17e391e61bf8c7f9c7fe0..bfe6c39c731ae2af69069809fd1ff76bf3a02795 100755 (executable)
@@ -774,7 +774,7 @@ fi
 
 
 
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
index f23ba2904e17f5ce128893301a5f29aad9149aeb..af170a3a6bea44764572725c5202379a15d6b656 100644 (file)
@@ -1,4 +1,4 @@
-dnl aclocal.m4 generated automatically by aclocal 1.4
+dnl aclocal.m4 generated automatically by aclocal 1.4-p4
 
 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
index c40351482f48d7c5c8835087c13025717900245d..f327bf9df4db99dac4eca4b82f95aef95e3f2f4a 100644 (file)
@@ -1,4 +1,4 @@
-/* config.h.in.  Generated automatically from configure.in by autoheader.  */
+/* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
 
 /* Define if you have the check library (-lcheck).  */
 #undef HAVE_LIBCHECK
index 679db67896b03690d81c1ccca27711cefaa034a2..e00f5e83e25ed9bbd1d29e116e224ec9cd8b2d52 100755 (executable)
@@ -774,7 +774,7 @@ fi
 
 
 
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
index 122b877c0b4a000faea05a2efd16b41b3720a317..5c4052dbed8772ff2a765c380b0b61e81c26ad07 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.4 from Makefile.am
+# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
 
 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -100,7 +100,7 @@ DIST_COMMON =  Makefile.am Makefile.in
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 DEP_FILES =  .deps/check.P .deps/check_log.P .deps/check_msg.P \
 .deps/check_run.P .deps/error.P .deps/list.P
index b51cfc80cc19fb03f75f77ef6b440aeccd4aeab1..a6d861c31b0a42970b336cdf13ae839bb7da508f 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.4 from Makefile.am
+# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
 
 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -128,7 +128,7 @@ DIST_COMMON =  Makefile.am Makefile.in
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 DEP_FILES =  .deps/check_check_log.P .deps/check_check_main.P \
 .deps/check_check_master.P .deps/check_check_msg.P \
diff --git a/check/tests/test_log_output.sh b/check/tests/test_log_output.sh
new file mode 100755 (executable)
index 0000000..ac2fee4
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+expected="Running suite S1
+ex_log_output.c:7:P:Core: Test passed
+ex_log_output.c:13:F:Core: Failure
+ex_log_output.c:17:E:Core: (after this point) Early exit with return value 1
+Running suite S2
+ex_log_output.c:21:P:Core: Test passed
+Results for all suites run:
+25%: Checks: 4, Failures: 1, Errors: 1"
+
+
+test_log_output ( ) {
+    
+    ./ex_log_output "${1}"
+    actual=`cat test_logfile`
+    if [ x"${expected}" != x"${actual}" ]; then
+       echo "Problem with ex_log_output ${3}";
+       echo "Expected:";
+       echo "${expected}";
+       echo "Got:";
+       echo "${actual}";
+       exit 1;
+    fi
+    
+}
+
+test_log_output "CRSILENT";
+test_log_output "CRMINIMAL";
+test_log_output "CRNORMAL";
+test_log_output "CRVERBOSE";
+exit 0