+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
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; }
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
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
--- /dev/null
+#!/bin/sh
+rpm --define "_topdir /home/amalec/src/check/rpm" -ba SPECS/check.spec --nodeps
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
%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>
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
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 =
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);
}
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:";