Commit 7b087c35 authored by anilsaharan's avatar anilsaharan

Modified for HTML Interface


git-svn-id: http://svn.code.sf.net/p/cunit/code/trunk@23 f00e6729-6848-4c17-8bfb-678c97c00071
parent c3cc4e82
Anil Kumar Saharan
Email : aksaharan@yahoo.com
Homepage : http://www.mycgiserver.com/~anilks
Tausif Ahsan Gilani
Email : tausifahsan@rediffmail.com
Homepage : http://www.polarhome.com/~aksaharan
......@@ -11,7 +11,7 @@ Wishing you good time with CUnit.
-----------------------------------
Anil Kumar
Email : aksaharan@yahoo.com
Personal Page : http://www.mycgiserver.com/~anilks/
Personal Page : http://www.polarhome.com/~aksaharan/
Project Page : http://www.sourceforge.net/projects/cunit/
......
......@@ -3,7 +3,22 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
###############################################################################
Project: "CUnit"=.\CUnit\CUnit.dsp - Package Owner=<4>
Project: "AutomatedTest"=".\EXAMPLES\AutomatedTest\AutomatedTest.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
End Project Dependency
}}}
###############################################################################
Project: "CUnit"=".\CUnit\CUnit.dsp" - Package Owner=<4>
Package=<5>
{{{
......@@ -15,7 +30,7 @@ Package=<4>
###############################################################################
Project: "ConsoleTest"=.\Examples\ConsoleTest\ConsoleTest.dsp - Package Owner=<4>
Project: "ConsoleTest"=".\Examples\ConsoleTest\ConsoleTest.dsp" - Package Owner=<4>
Package=<5>
{{{
......
Summary: A unit testing framework for 'C'
Name: CUnit
Version : 1.0
Release: 4
Release: 5
Epoch: 1
Source: http://www.sourceforge.net/projects/cunit
Group: Development/Tools
......@@ -32,6 +32,7 @@ make install
%defattr(-,root,root)
########### Include Files
%{_prefix}/include/CUnit/Automated.h
%{_prefix}/include/CUnit/Console.h
%{_prefix}/include/CUnit/Curses.h
%{_prefix}/include/CUnit/CUnit.h
......@@ -45,38 +46,25 @@ make install
%{_prefix}/man/man3/add_test_case.3
%{_prefix}/man/man3/add_test_group.3
%{_prefix}/man/man3/ASSERT.3
%{_prefix}/man/man3/automated_run_tests.3
%{_prefix}/man/man3/cleanup_registry.3
%{_prefix}/man/man3/console_run_tests.3
%{_prefix}/man/man3/curses_run_tests.3
%{_prefix}/man/man3/get_error.3
%{_prefix}/man/man3/get_registry.3
%{_prefix}/man/man3/initialize_registry.3
%{_prefix}/man/man3/set_output_filename.3
%{_prefix}/man/man3/set_registry.3
%{_prefix}/man/man8/CUnit.8
########## Share information and Example Files
%{_prefix}/share/CUnit-1.0-4/Example/Console/README
%{_prefix}/share/CUnit-1.0-4/Example/Console/ConsoleTest
%{_prefix}/share/CUnit-1.0-4/Example/Curses/README
%{_prefix}/share/CUnit-1.0-4/Example/Curses/CursesTest
%{_prefix}/share/CUnit-1.0-5/Example/Automated/README
%{_prefix}/share/CUnit-1.0-5/Example/Automated/AutomatedTest
%{_prefix}/share/CUnit-1.0-5/Example/Console/README
%{_prefix}/share/CUnit-1.0-5/Example/Console/ConsoleTest
%{_prefix}/share/CUnit-1.0-5/Example/Curses/README
%{_prefix}/share/CUnit-1.0-5/Example/Curses/CursesTest
%changelog
* Sun Feb 03 2002 Anil Kumar <aksaharan@yahoo.com>
- Made modifications for moving RPM Creation in the root directory.
- Cleaned up configure.in for Checks not required and added some additonal
header and library checks.
- Made separate options for gzip, tar, zip and rpm creation in root directory.
- Fixed Workspace file for Windows Build.
* Sun Dec 23 2001 Anil Kumar <aksaharan@yahoo.com>
- Made modifications for change in Directory Structure and Linking Options.
* Sun Nov 25 2001 Anil Kumar <aksaharan@yahoo.com>
- Added Curses based interface to the Package.
* Sun Oct 28 2001 Anil Kumar <aksaharan@yahoo.com>
- Integrated RPM creation in the package configuration
* Sun Oct 21 2001 Anil Kumar <aksaharan@yahoo.com>
- Added a few Error Codes and respective description.
- Added code for handling duplicate group/test name
# Add the change log in ChangeLog file located under source home directory.
# The same file is inturn used internally to populate the change log for the RPM
# creation.
......@@ -32,6 +32,7 @@ make install
%defattr(-,root,root)
########### Include Files
%{_prefix}/include/CUnit/Automated.h
%{_prefix}/include/CUnit/Console.h
%{_prefix}/include/CUnit/Curses.h
%{_prefix}/include/CUnit/CUnit.h
......@@ -45,38 +46,25 @@ make install
%{_prefix}/man/man3/add_test_case.3
%{_prefix}/man/man3/add_test_group.3
%{_prefix}/man/man3/ASSERT.3
%{_prefix}/man/man3/automated_run_tests.3
%{_prefix}/man/man3/cleanup_registry.3
%{_prefix}/man/man3/console_run_tests.3
%{_prefix}/man/man3/curses_run_tests.3
%{_prefix}/man/man3/get_error.3
%{_prefix}/man/man3/get_registry.3
%{_prefix}/man/man3/initialize_registry.3
%{_prefix}/man/man3/set_output_filename.3
%{_prefix}/man/man3/set_registry.3
%{_prefix}/man/man8/CUnit.8
########## Share information and Example Files
%{_prefix}/share/@PACKAGE@-@VERSION@-@RELEASE@/Example/Automated/README
%{_prefix}/share/@PACKAGE@-@VERSION@-@RELEASE@/Example/Automated/AutomatedTest
%{_prefix}/share/@PACKAGE@-@VERSION@-@RELEASE@/Example/Console/README
%{_prefix}/share/@PACKAGE@-@VERSION@-@RELEASE@/Example/Console/ConsoleTest
%{_prefix}/share/@PACKAGE@-@VERSION@-@RELEASE@/Example/Curses/README
%{_prefix}/share/@PACKAGE@-@VERSION@-@RELEASE@/Example/Curses/CursesTest
%changelog
* Sun Feb 03 2002 Anil Kumar <aksaharan@yahoo.com>
- Made modifications for moving RPM Creation in the root directory.
- Cleaned up configure.in for Checks not required and added some additonal
header and library checks.
- Made separate options for gzip, tar, zip and rpm creation in root directory.
- Fixed Workspace file for Windows Build.
* Sun Dec 23 2001 Anil Kumar <aksaharan@yahoo.com>
- Made modifications for change in Directory Structure and Linking Options.
* Sun Nov 25 2001 Anil Kumar <aksaharan@yahoo.com>
- Added Curses based interface to the Package.
* Sun Oct 28 2001 Anil Kumar <aksaharan@yahoo.com>
- Integrated RPM creation in the package configuration
* Sun Oct 21 2001 Anil Kumar <aksaharan@yahoo.com>
- Added a few Error Codes and respective description.
- Added code for handling duplicate group/test name
# Add the change log in ChangeLog file located under source home directory.
# The same file is inturn used internally to populate the change log for the RPM
# creation.
......@@ -89,6 +89,10 @@ SOURCE=.\Sources\Framework\AssertImpl.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Automated\Automated.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Console\Console.c
# End Source File
# Begin Source File
......@@ -109,6 +113,10 @@ SOURCE=.\Sources\Framework\Util.c
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\Headers\Automated.h
# End Source File
# Begin Source File
SOURCE=.\Headers\Console.h
# End Source File
# Begin Source File
......
......@@ -43,7 +43,13 @@
*/
#ifndef BOOL
#define BOOL int
#endif
#ifndef FALSE
#define FALSE (int)0
#endif
#ifndef TRUE
#define TRUE (int)~FALSE
#endif
......
CUnitIncludedir=${includedir}/CUnit
CUnitInclude_HEADERS = \
Automated.h
Console.h \
CUnit.h \
Curses.h \
......
......@@ -65,7 +65,7 @@ RELEASE = @RELEASE@
VERSION = @VERSION@
CUnitIncludedir = ${includedir}/CUnit
CUnitInclude_HEADERS = Console.h CUnit.h Curses.h Errno.h TestDB.h
CUnitInclude_HEADERS = Automated.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
......@@ -210,6 +210,11 @@ install-am install uninstall-am uninstall all-redirect all-am all \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
Console.h \
CUnit.h \
Curses.h \
Errno.h \
TestDB.h
#Util.h, TestRun.h are not included because these are used internally
#by the CUnit files but is not for the external inclusion.
......
......@@ -298,6 +298,7 @@ void add_failure(unsigned int uiLineNumber, char szCondition[],
if (!g_pTestRegistry) {
assert(!"PTestRegistry is NULL which is not supposed "
"to be so at this stage.");
abort();
}
pResult = (PTestResult)malloc(sizeof(TestResult));
......@@ -429,12 +430,6 @@ int run_single_test(PTestCase pTest)
(*pTest->pTestFunc)();
}
#if _DELAYTEST && WIN32
_sleep(100);
#elif _DELAYTEST
sleep(1);
#endif
if (f_pTestCompleteMessageHandler) {
(*f_pTestCompleteMessageHandler)(g_pTestCase->pName, g_pTestGroup->pName, g_pTestRegistry->pResult);
}
......
SUBDIRS = Framework Console Curses
SUBDIRS = Framework Automated Console Curses
lib_LIBRARIES = libcunit.a
libcunit_a_SOURCES =
libcunit_a_LIBADD = \
Automated/Automated.o \
Console/Console.o \
Curses/Curses.o \
Framework/AssertImpl.o \
Framework/TestDB.o \
Framework/TestRun.o \
Framework/Util.o \
Console/Console.o \
Curses/Curses.o
Framework/Util.o
......@@ -64,13 +64,13 @@ RANLIB = @RANLIB@
RELEASE = @RELEASE@
VERSION = @VERSION@
SUBDIRS = Framework Console Curses
SUBDIRS = Framework Automated Console Curses
lib_LIBRARIES = libcunit.a
libcunit_a_SOURCES =
libcunit_a_LIBADD = Framework/AssertImpl.o Framework/TestDB.o Framework/TestRun.o Framework/Util.o Console/Console.o Curses/Curses.o
libcunit_a_LIBADD = Automated/Automated.o Console/Console.o Curses/Curses.o Framework/AssertImpl.o Framework/TestDB.o Framework/TestRun.o Framework/Util.o
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
......@@ -81,8 +81,9 @@ DEFS = @DEFS@ -I. -I$(srcdir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
libcunit_a_DEPENDENCIES = Framework/AssertImpl.o Framework/TestDB.o \
Framework/TestRun.o Framework/Util.o Console/Console.o Curses/Curses.o
libcunit_a_DEPENDENCIES = Automated/Automated.o Console/Console.o \
Curses/Curses.o Framework/AssertImpl.o Framework/TestDB.o \
Framework/TestRun.o Framework/Util.o
libcunit_a_OBJECTS =
AR = ar
DIST_COMMON = Makefile.am Makefile.in
......
* Sun Mar 24 2002 Anil Kumar <aksaharan@yahoo.com>
- Added interface for automated run test. It generates HTML file.
* Sun Feb 03 2002 Anil Kumar <aksaharan@yahoo.com>
- Made modifications for moving RPM Creation in the root directory.
- Cleaned up configure.in for Checks not required and added some additonal
......
SUBDIRS = ConsoleTest CursesTest
SUBDIRS = AutomatedTest ConsoleTest CursesTest
......@@ -64,7 +64,7 @@ RANLIB = @RANLIB@
RELEASE = @RELEASE@
VERSION = @VERSION@
SUBDIRS = ConsoleTest CursesTest
SUBDIRS = AutomatedTest ConsoleTest CursesTest
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_COMMON = Makefile.am Makefile.in
......
......@@ -9,7 +9,9 @@ RPMFLAGS=
ZIP=zip
RPM=rpm
PACKAGE_TMPDIR=@PACKAGE@-@VERSION@-@RELEASE@
PACKAGE_TMPSPEC=${TMPDIR}/@PACKAGE@-@VERSION@-@RELEASE@.spec
SPECFILE=@PACKAGE@".spec"
CHANGELOG="ChangeLog"
SOURCE_GZIP_FILE=@PACKAGE@-@VERSION@-@RELEASE@.tar.gz
SOURCE_ZIP_FILE=@PACKAGE@-@VERSION@-@RELEASE@.zip
SOURCE_TAR_FILE=@PACKAGE@-@VERSION@-@RELEASE@.tar
......@@ -37,7 +39,7 @@ rpm: rpm-package
zip: clean
cd .. && \
rm -f ${SOURCE_ZIP_FILE} && \
${ZIP} -RT ${SOURCE_ZIP_FILE} @PACKAGE@-@VERSION@-@RELEASE@/* && \
${ZIP} -rT ${SOURCE_ZIP_FILE} @PACKAGE@-@VERSION@-@RELEASE@/* && \
cp -f ${SOURCE_ZIP_FILE} ./@PACKAGE@-@VERSION@-@RELEASE@/ && \
cd @PACKAGE@-@VERSION@-@RELEASE@
......@@ -54,10 +56,13 @@ gzip: clean tarball
gzip ${SOURCE_TAR_FILE}
rpm-package:
cp ${SPECFILE} ${PACKAGE_TMPSPEC} && \
echo "%changelog" >> ${PACKAGE_TMPSPEC} && \
cat ${CHANGELOG} >> ${PACKAGE_TMPSPEC} && \
rm -rf ${RPMDIRS} && \
mkdir -p ${RPMDIRS} && \
export RPM_BUILD_ROOT=${PWD} && \
${RPM} ${RPM_DEFINES} ${RPMFLAGS} -bb @PACKAGE@".spec" && \
${RPM} ${RPM_DEFINES} ${RPMFLAGS} -bb ${PACKAGE_TMPSPEC} && \
( (cp -f ${RPM_ATHLON} .) || (cp -f ${RPM_I386} .) || (cp -f ${RPM_I486} .) \
|| (cp -f ${RPM_I586} .) || (cp -f ${RPM_I686} .) \
|| (cp -f ${RPM_K6} .) || (cp -f ${RPM_NOARCH} .) ) && \
......
......@@ -75,7 +75,9 @@ RPMFLAGS =
ZIP = zip
RPM = rpm
PACKAGE_TMPDIR = @PACKAGE@-@VERSION@-@RELEASE@
PACKAGE_TMPSPEC = ${TMPDIR}/@PACKAGE@-@VERSION@-@RELEASE@.spec
SPECFILE = @PACKAGE@".spec"
CHANGELOG = "ChangeLog"
SOURCE_GZIP_FILE = @PACKAGE@-@VERSION@-@RELEASE@.tar.gz
SOURCE_ZIP_FILE = @PACKAGE@-@VERSION@-@RELEASE@.zip
SOURCE_TAR_FILE = @PACKAGE@-@VERSION@-@RELEASE@.tar
......@@ -349,7 +351,7 @@ rpm: rpm-package
zip: clean
cd .. && \
rm -f ${SOURCE_ZIP_FILE} && \
${ZIP} -RT ${SOURCE_ZIP_FILE} @PACKAGE@-@VERSION@-@RELEASE@/* && \
${ZIP} -rT ${SOURCE_ZIP_FILE} @PACKAGE@-@VERSION@-@RELEASE@/* && \
cp -f ${SOURCE_ZIP_FILE} ./@PACKAGE@-@VERSION@-@RELEASE@/ && \
cd @PACKAGE@-@VERSION@-@RELEASE@
......@@ -366,10 +368,13 @@ gzip: clean tarball
gzip ${SOURCE_TAR_FILE}
rpm-package:
cp ${SPECFILE} ${PACKAGE_TMPSPEC} && \
echo "%changelog" >> ${PACKAGE_TMPSPEC} && \
cat ${CHANGELOG} >> ${PACKAGE_TMPSPEC} && \
rm -rf ${RPMDIRS} && \
mkdir -p ${RPMDIRS} && \
export RPM_BUILD_ROOT=${PWD} && \
${RPM} ${RPM_DEFINES} ${RPMFLAGS} -bb @PACKAGE@".spec" && \
${RPM} ${RPM_DEFINES} ${RPMFLAGS} -bb ${PACKAGE_TMPSPEC} && \
( (cp -f ${RPM_ATHLON} .) || (cp -f ${RPM_I386} .) || (cp -f ${RPM_I486} .) \
|| (cp -f ${RPM_I586} .) || (cp -f ${RPM_I686} .) \
|| (cp -f ${RPM_K6} .) || (cp -f ${RPM_NOARCH} .) ) && \
......
man_MANS = \
automated_run_tests.3 \
add_test_case.3 \
add_test_group.3 \
ASSERT.3 \
automated_run_tests.3 \
cleanup_registry.3 \
console_run_tests.3 \
curses_run_tests.3 \
get_error.3 \
get_registry.3 \
initialize_registry.3 \
set_output_filename.3 \
set_registry.3
......@@ -64,7 +64,7 @@ RANLIB = @RANLIB@
RELEASE = @RELEASE@
VERSION = @VERSION@
man_MANS = add_test_case.3 add_test_group.3 ASSERT.3 cleanup_registry.3 console_run_tests.3 curses_run_tests.3 get_error.3 get_registry.3 initialize_registry.3 set_registry.3
man_MANS = automated_run_tests.3 add_test_case.3 add_test_group.3 ASSERT.3 automated_run_tests.3 cleanup_registry.3 console_run_tests.3 curses_run_tests.3 get_error.3 get_registry.3 initialize_registry.3 set_output_filename.3 set_registry.3
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
......
......@@ -19,6 +19,7 @@ It does not returns any value.
.BR "ASSERT" (3),
.BR "add_test_case" (3),
.BR "add_test_group" (3),
.BR "automated_run_tests" (3),
.BR "curses_run_tests" (3),
.BR "cleanup_registry" (3),
.BR "CUnit" (8),
......
......@@ -19,6 +19,7 @@ It does not returns any value.
.BR "ASSERT" (3),
.BR "add_test_case" (3),
.BR "add_test_group" (3),
.BR "automated_run_tests" (3),
.BR "console_run_tests" (3),
.BR "cleanup_registry" (3),
.BR "CUnit" (8),
......
......@@ -8,7 +8,11 @@ CUnit \- A unit testing framework for C
.br
.B #include <CUnit/TestDB.h>
.br
.B #include <CUnit/Automated.h>
.br
.B #include <CUnit/Console.h>
.br
.B #include <CUnit/Curses.h>
.SH "DESCRIPTION"
CUnit is a combination of the core platform independent framework and platform dependent customization features to provide user interface. The platform indepndent framework consists of the basic functionalities required such as initialization/cleanup of test registry, test groups and test cases. The other part which handles the user interface has the responsibility of only managing user interaction with the system and finally invoke appropriate framework functionality. The most of the functions exposed to the user are declared in the header files defined below,
......@@ -21,10 +25,18 @@ This file contains function macro definition for ASSERT which is used in the tes
.TP 2
This file contains function declarations to be used for the Maniplating the test registry/test groups/test cases.
.TP 1
.B #include <CUnit/Automated.h>
.TP 2
This file contains function declarations to be used for the automated run test.
.TP 1
.B #include <CUnit/Console.h>
.TP 2
This file contains function declarations to be used for the console run test.
.TP 1
.B #include <CUnit/Curses.h>
.TP 2
This file contains function declarations to be used for the curses run test.
.TP 1
The basic hierarchichal organization of CUnit is as depicted below,
......@@ -66,7 +78,9 @@ for running tests with console user interaction.
.BR "ASSERT" (3),
.BR "add_test_case" (3),
.BR "add_test_group" (3),
.BR "automated_run_tests" (3),
.BR "console_run_tests" (3),
.BR "curses_run_tests" (3),
.BR "cleanup_registry" (3),
.BR "initialize_registry" (3),
.BR "get_registry" (3),
......
......@@ -10,7 +10,6 @@ Linux:
GNU packages such as Automake and Autoconf should be available. steps to be followed for
installation are as follows:
1> ./configure --prefix<Your choice of directory for installation>
2> Make sure that ur directory name reflects the version and release.
2> make
3> make install
......
......@@ -691,7 +691,7 @@ fi
PACKAGE=CUnit
VERSION=1.0-4
VERSION=1.0-5
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; }
......@@ -776,7 +776,7 @@ fi
PACKAGE=CUnit
VERSION=1.0
RELEASE=4
RELEASE=5
TOPDIR=`pwd`
......@@ -1556,7 +1556,7 @@ else
fi
done
for ac_hdr in stdio.h
for ac_hdr in file.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
......@@ -1596,7 +1596,7 @@ else
fi
done
for ac_hdr in stdlib.h
for ac_hdr in stdio.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
......@@ -1636,7 +1636,7 @@ else
fi
done
for ac_hdr in string.h
for ac_hdr in stdlib.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
......@@ -1676,14 +1676,54 @@ else
fi
done
for ac_hdr in string.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1684: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1689 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1682: checking for working const" >&5
echo "configure:1722: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1687 "configure"
#line 1727 "configure"
#include "confdefs.h"
int main() {
......@@ -1732,7 +1772,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if { (eval echo configure:1736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
......@@ -1876,9 +1916,11 @@ trap 'rm -fr `echo "Makefile \
CUnit/Headers/Makefile \
CUnit/Sources/Makefile \
CUnit/Sources/Framework/Makefile \
CUnit/Sources/Automated/Makefile \
CUnit/Sources/Console/Makefile \
CUnit/Sources/Curses/Makefile \
Examples/Makefile \
Examples/AutomatedTest/Makefile \
Examples/ConsoleTest/Makefile \
Examples/CursesTest/Makefile \
Man/Makefile \
......@@ -1977,9 +2019,11 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile \
CUnit/Headers/Makefile \
CUnit/Sources/Makefile \
CUnit/Sources/Framework/Makefile \
CUnit/Sources/Automated/Makefile \
CUnit/Sources/Console/Makefile \
CUnit/Sources/Curses/Makefile \
Examples/Makefile \
Examples/AutomatedTest/Makefile \
Examples/ConsoleTest/Makefile \
Examples/CursesTest/Makefile \
Man/Makefile \
......
dnl Process this file with autoconf to produce a configure script.
AC_INIT(CUnit/Sources/Framework/AssertImpl.c)
AM_INIT_AUTOMAKE(CUnit, 1.0-4)
AM_INIT_AUTOMAKE(CUnit, 1.0-5)
PACKAGE=CUnit
VERSION=1.0
RELEASE=4
RELEASE=5
TOPDIR=`pwd`
......@@ -27,6 +27,7 @@ AC_CHECK_HEADERS(assert.h)
AC_CHECK_HEADERS(ctype.h)
AC_CHECK_HEADERS(curses.h)
AC_CHECK_HEADERS(math.h)
AC_CHECK_HEADERS(file.h)
AC_CHECK_HEADERS(stdio.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(string.h)
......@@ -44,9 +45,11 @@ AC_OUTPUT( Makefile \
CUnit/Headers/Makefile \
CUnit/Sources/Makefile \
CUnit/Sources/Framework/Makefile \
CUnit/Sources/Automated/Makefile \
CUnit/Sources/Console/Makefile \
CUnit/Sources/Curses/Makefile \
Examples/Makefile \
Examples/AutomatedTest/Makefile \
Examples/ConsoleTest/Makefile \
Examples/CursesTest/Makefile \
Man/Makefile \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment