]> granicus.if.org Git - check/commitdiff
Update NEWS, docs, and rpm building
authoramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 31 Jul 2001 01:08:17 +0000 (01:08 +0000)
committeramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 31 Jul 2001 01:08:17 +0000 (01:08 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@61 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/NEWS
check/configure
check/configure.in
check/doc/example.lyx
check/rpm/buildrpm.sh [new file with mode: 0755]
check/rpm/check.spec
check/tests/Makefile.am
check/tests/Makefile.in
check/tests/ex_log_output.c
check/tests/test_log_output.sh

index bef75a632513ee301b60134d0611e0c7e97a1794..a2cefc0e7d4eb3af2845910b16a38da5ccd10d1e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Jul 30, 2001:
+Released Check 0.7.1
+
+Reorganized printing and logging functions to allow for a less
+primitive logging function. Logging is now documented in the tutorial
+documentation.
+
 Wed Jul 11, 2001:
 Released Check 0.7.0
 
index bfe6c39c731ae2af69069809fd1ff76bf3a02795..09c790d014ed691a2e7b3e62479aa74e893eb7a7 100755 (executable)
@@ -691,7 +691,7 @@ fi
 
 PACKAGE=check
 
-VERSION=0.7.0
+VERSION=0.7.1
 
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
index a5be67d6f0791e2abe4fe6f3ad7443823fb08a4f..65361c2ebb6bfafff20249180e50f0903d0edccb 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(src/check.c)
-AM_INIT_AUTOMAKE(check,0.7.0)
+AM_INIT_AUTOMAKE(check,0.7.1)
 
 dnl Checks for programs.
 AC_PROG_AWK
index f99a40a0adecb9e62258cf77bb476ec47d4c726d..cf0cf3aa5a09497774736a4ec7a7c35cb1bcf777 100644 (file)
@@ -950,6 +950,61 @@ srunner_add_suite(sr, make_msg_suite());
 srunner_add_suite(sr, make_log_suite()); 
 \layout Subsection
 
+Test Logging
+\layout Standard
+
+Check supports operation to log the results of a test run.
+ To use test logging, use the srunner_set_log function with the name of
+ the log file you wish to create:
+\layout Code
+
+SRunner *sr;
+\layout Code
+
+sr = srunner_create(make_s1_suite());
+\layout Code
+
+srunner_add_suite(sr, make_s2_suite());
+\layout Code
+
+srunner_set_log(sr, "test.log");
+\layout Code
+
+srunner_run_all(sr, CRNORMAL);
+\layout Standard
+
+Check will write the results of the run to test.log.
+ The printmode argument to srunner_run_all does not apply to test logging;
+ the log will contain a result entry, organized by suite, for every test
+ run .
+ Here is an example of test log output:
+\layout Code
+
+Running suite S1 
+\layout Code
+
+ex_log_output.c:7:P:Core: Test passed
+\layout Code
+
+ex_log_output.c:13:F:Core: Failure
+\layout Code
+
+ex_log_output.c:17:E:Core: (after this point) Early exit with return value
+ 1
+\layout Code
+
+Running suite S2 
+\layout Code
+
+ex_log_output.c:25:P:Core: Test passed
+\layout Code
+
+Results for all suites run:
+\layout Code
+
+50%: Checks: 4, Failures: 1, Errors: 1
+\layout Subsection
+
 Conclusion
 \layout Standard
 
diff --git a/check/rpm/buildrpm.sh b/check/rpm/buildrpm.sh
new file mode 100755 (executable)
index 0000000..f5e3054
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+rpm --define "_topdir /home/amalec/src/check/rpm" -ba SPECS/check.spec --nodeps
index a7b8b1b478c8140450e244f08c3ec28531722434..cab014c99b7da0c42643ab7275465eeaa145701c 100644 (file)
@@ -1,9 +1,9 @@
 Summary: A unit test framework for C
 Name: check
-Version: 0.7.0
+Version: 0.7.1
 Release: 1
 Epoch: 1
-Source: http://prdownloads.sourceforge.net/check/check-0.7.0.tar.gz
+Source: http://prdownloads.sourceforge.net/check/check-0.7.1.tar.gz
 Group: Development/Tools
 Copyright: GPL
 URL: http://check.sourceforge.net
@@ -68,6 +68,8 @@ rm -rf ${RPM_BUILD_ROOT}
 %doc %{_prefix}/share/doc/%{name}-%{version}/money/config.h.in
 
 %changelog
+* Tue Jul 30 2001 Arien Malec <arien_malec@yahoo.com>
+- Updated for 0.7.1
 * Tue Jul 10 2001 Arien Malec <arien_malec@yahoo.com>
 - Updated for 0.7.0
 * Wed Jun 27 2001 Arien Malec <arien_malec@yahoo.com>
index 46b3da1e61b037bdec8f1e69ea2481b0437d7c9f..a1ec7779877cd81836da5940ee2649d524352670 100644 (file)
@@ -32,4 +32,4 @@ ex_log_output_SOURCES=\
 INCLUDES= -I$(srcdir)/../src
 LDADD= ../src/libcheck.a
 
-CLEANFILES=*.*~ *.log
\ No newline at end of file
+CLEANFILES=*.*~ *.log test_logfile
\ No newline at end of file
index a6d861c31b0a42970b336cdf13ae839bb7da508f..914665740b4467311d71e010303511e179359e84 100644 (file)
@@ -90,7 +90,7 @@ ex_log_output_SOURCES =       ex_log_output.c
 INCLUDES = -I$(srcdir)/../src
 LDADD = ../src/libcheck.a
 
-CLEANFILES = *.*~ *.log
+CLEANFILES = *.*~ *.log test_logfile
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = ../config.h
 CONFIG_CLEAN_FILES = 
index ea5b57c02596ca869b016ce1b72dc45b8ec64823..4f9430a096eb08e7e7f494170655593757885175 100644 (file)
@@ -60,7 +60,7 @@ void run_tests (int printmode)
 
   sr = srunner_create(make_s1_suite());
   srunner_add_suite(sr, make_s2_suite());
-  srunner_set_log(sr, "test_logfile");
+  srunner_set_log(sr, "test.log");
   srunner_run_all(sr, printmode);
 }
 
index 565a0749a7be5a69bdcb456c5fc8542f98dce4de..49f7e8cf1aac50cf6bc6461ce1fa806b6b3dd6bd 100755 (executable)
@@ -13,7 +13,7 @@ Results for all suites run:
 test_log_output ( ) {
     
     ./ex_log_output "${1}" > /dev/null
-    actual=`cat test_logfile`
+    actual=`cat test.log`
     if [ x"${expected}" != x"${actual}" ]; then
        echo "Problem with ex_log_output ${3}";
        echo "Expected:";