Move from CUnit to BCUnit

parent cf37017c
......@@ -5,8 +5,8 @@ Jerry St.Clair (JDS)
Email : jds2@users.sourceforge.net
-----------------------------------------------------------
Special thanks to the following contributors to CUnit:
Special thanks to the following contributors to BCUnit:
K. Cheung and Aurema Pty Ltd.
Shortcut code for efficient registration of
CUnit tests and suites.
BCUnit tests and suites.
......@@ -3,7 +3,7 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
###############################################################################
Project: "CUnit"=".\CUnit\CUnit.dsp" - Package Owner=<4>
Project: "BCUnit"=".\BCUnit\BCUnit.dsp" - Package Owner=<4>
Package=<5>
{{{
......@@ -24,7 +24,7 @@ Package=<5>
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
Project_Dep_Name BCUnit
End Project Dependency
}}}
......@@ -39,7 +39,7 @@ Package=<5>
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
Project_Dep_Name BCUnit
End Project Dependency
}}}
......@@ -54,7 +54,7 @@ Package=<5>
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
Project_Dep_Name BCUnit
End Project Dependency
}}}
......
......@@ -2,15 +2,15 @@ Summary: A unit testing framework for 'C'
Name: @PACKAGE@
Version: @VERSION@
Release: @RELEASE@
Source: http://www.sourceforge.net/projects/cunit/@PACKAGE@-@VERSION@-@RELEASE@.tar.gz
Source: http://www.sourceforge.net/projects/bcunit/@PACKAGE@-@VERSION@-@RELEASE@.tar.gz
Group: Development/Tools
License: GPL
URL: http://cunit.sourceforge.net
URL: https://github.com/BelledonneCommunications/bcunit
Packager: Jerry St. Clair <jds2@users.sourceforge.net>
%description
CUnit is a unit testing framework for C.
This package installs the CUnit static library,
BCUnit is a unit testing framework for C.
This package installs the BCUnit static library,
headers, and documentation files.
%prep
......@@ -32,24 +32,24 @@ make DESTDIR=$RPM_BUILD_ROOT install
%defattr(-,root,root)
########### Include Files
%{_prefix}/include/CUnit/Automated.h
%{_prefix}/include/CUnit/Basic.h
%{_prefix}/include/CUnit/Console.h
%{_prefix}/include/CUnit/CUError.h
%{_prefix}/include/CUnit/CUnit.h
%{_prefix}/include/CUnit/CUnit_intl.h
%{_prefix}/include/CUnit/CUCurses.h
%{_prefix}/include/CUnit/MyMem.h
%{_prefix}/include/CUnit/TestDB.h
%{_prefix}/include/CUnit/TestRun.h
%{_prefix}/include/CUnit/Util.h
%{_prefix}/include/BCUnit/Automated.h
%{_prefix}/include/BCUnit/Basic.h
%{_prefix}/include/BCUnit/Console.h
%{_prefix}/include/BCUnit/CUError.h
%{_prefix}/include/BCUnit/BCUnit.h
%{_prefix}/include/BCUnit/BCUnit_intl.h
%{_prefix}/include/BCUnit/CUCurses.h
%{_prefix}/include/BCUnit/MyMem.h
%{_prefix}/include/BCUnit/TestDB.h
%{_prefix}/include/BCUnit/TestRun.h
%{_prefix}/include/BCUnit/Util.h
########## Library Files
%{_prefix}/lib/libcunit.a
%{_prefix}/lib/libcunit.so.@LIBTOOL_SUFFIX@
%{_prefix}/lib/libbcunit.a
%{_prefix}/lib/libbcunit.so.@LIBTOOL_SUFFIX@
########## doc Files
%{_prefix}/doc/@PACKAGE@/CUnit_doc.css
%{_prefix}/doc/@PACKAGE@/BCUnit_doc.css
%{_prefix}/doc/@PACKAGE@/error_handling.html
%{_prefix}/doc/@PACKAGE@/fdl.html
%{_prefix}/doc/@PACKAGE@/index.html
......@@ -62,8 +62,8 @@ make DESTDIR=$RPM_BUILD_ROOT install
%{_prefix}/doc/@PACKAGE@/headers/Basic.h
%{_prefix}/doc/@PACKAGE@/headers/Console.h
%{_prefix}/doc/@PACKAGE@/headers/CUError.h
%{_prefix}/doc/@PACKAGE@/headers/CUnit.h
%{_prefix}/doc/@PACKAGE@/headers/CUnit_intl.h
%{_prefix}/doc/@PACKAGE@/headers/BCUnit.h
%{_prefix}/doc/@PACKAGE@/headers/BCUnit_intl.h
%{_prefix}/doc/@PACKAGE@/headers/CUCurses.h
%{_prefix}/doc/@PACKAGE@/headers/MyMem.h
%{_prefix}/doc/@PACKAGE@/headers/TestDB.h
......@@ -72,7 +72,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
%{_prefix}/doc/@PACKAGE@/headers/Win.h
########## Manpage Files
%{_prefix}/man/man3/CUnit.3*
%{_prefix}/man/man3/BCUnit.3*
########## Share information and Example Files
%{_prefix}/share/@PACKAGE@/Examples/Automated/README
......@@ -83,11 +83,11 @@ make DESTDIR=$RPM_BUILD_ROOT install
%{_prefix}/share/@PACKAGE@/Examples/Console/ConsoleTest
%{_prefix}/share/@PACKAGE@/Examples/Curses/README
%{_prefix}/share/@PACKAGE@/Examples/Curses/CursesTest
%{_prefix}/share/@PACKAGE@/Test/test_cunit
%{_prefix}/share/@PACKAGE@/CUnit-List.dtd
%{_prefix}/share/@PACKAGE@/CUnit-List.xsl
%{_prefix}/share/@PACKAGE@/CUnit-Run.dtd
%{_prefix}/share/@PACKAGE@/CUnit-Run.xsl
%{_prefix}/share/@PACKAGE@/Test/test_bcunit
%{_prefix}/share/@PACKAGE@/BCUnit-List.dtd
%{_prefix}/share/@PACKAGE@/BCUnit-List.xsl
%{_prefix}/share/@PACKAGE@/BCUnit-Run.dtd
%{_prefix}/share/@PACKAGE@/BCUnit-Run.xsl
%{_prefix}/share/@PACKAGE@/Memory-Dump.dtd
%{_prefix}/share/@PACKAGE@/Memory-Dump.xsl
......
# Microsoft Developer Studio Project File - Name="CUnit" - Package Owner=<4>
# Microsoft Developer Studio Project File - Name="BCUnit" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=CUnit - Win32 Debug
CFG=BCUnit - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "CUnit.mak".
!MESSAGE NMAKE /f "BCUnit.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "CUnit.mak" CFG="CUnit - Win32 Debug"
!MESSAGE NMAKE /f "BCUnit.mak" CFG="BCUnit - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "CUnit - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "CUnit - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE "BCUnit - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "BCUnit - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
......@@ -28,7 +28,7 @@ CFG=CUnit - Win32 Debug
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "CUnit - Win32 Release"
!IF "$(CFG)" == "BCUnit - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
......@@ -51,7 +51,7 @@ LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "CUnit - Win32 Debug"
!ELSEIF "$(CFG)" == "BCUnit - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
......@@ -78,8 +78,8 @@ LIB32=link.exe -lib
# Begin Target
# Name "CUnit - Win32 Release"
# Name "CUnit - Win32 Debug"
# Name "BCUnit - Win32 Release"
# Name "BCUnit - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
......@@ -137,7 +137,7 @@ SOURCE=.\Headers\CUError.h
# End Source File
# Begin Source File
SOURCE=.\Headers\CUnit.h
SOURCE=.\Headers\BCUnit.h
# End Source File
# Begin Source File
......
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
* Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair
*
......@@ -35,10 +35,10 @@
* @{
*/
#ifndef CUNIT_AUTOMATED_H_SEEN
#define CUNIT_AUTOMATED_H_SEEN
#ifndef BCUNIT_AUTOMATED_H_SEEN
#define BCUNIT_AUTOMATED_H_SEEN
#include "CUnit.h"
#include "BCUnit.h"
#include "TestDB.h"
#ifdef __cplusplus
......@@ -47,12 +47,12 @@ extern "C" {
CU_EXPORT void CU_automated_run_tests(void);
/**<
* Runs CUnit tests using the automated interface.
* Runs BCUnit tests using the automated interface.
* This function sets appropriate callback functions, initializes the
* test output files, and calls the appropriate functions to list the
* tests and run them. If an output file name root has not been
* specified using CU_set_output_filename(), a generic root will be
* applied. It is an error to call this function before the CUnit
* applied. It is an error to call this function before the BCUnit
* test registry has been initialized (check by assertion).
*/
......@@ -71,17 +71,17 @@ CU_EXPORT void CU_set_output_filename(const char* szFilenameRoot);
* Sets the root file name for automated test output files.
* The strings "-Listing.xml" and "-Results.xml" are appended to the
* specified root to generate the filenames. If szFilenameRoot is
* empty, the default root ("CUnitAutomated") is used.
* empty, the default root ("BCUnitAutomated") is used.
*
* @param szFilenameRoot String containing root to use for file names.
*/
#ifdef USE_DEPRECATED_CUNIT_NAMES
#ifdef USE_DEPRECATED_BCUNIT_NAMES
/** Deprecated (version 1). @deprecated Use CU_automated_run_tests(). */
#define automated_run_tests() CU_automated_run_tests()
/** Deprecated (version 1). @deprecated Use CU_set_output_filename(). */
#define set_output_filename(x) CU_set_output_filename((x))
#endif /* USE_DEPRECATED_CUNIT_NAMES */
#endif /* USE_DEPRECATED_BCUNIT_NAMES */
void CU_automated_enable_junit_xml(CU_BOOL bFlag);
......@@ -92,5 +92,5 @@ const char *CU_automated_package_name_get(void);
#ifdef __cplusplus
}
#endif
#endif /* CUNIT_AUTOMATED_H_SEEN */
#endif /* BCUNIT_AUTOMATED_H_SEEN */
/** @} */
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
* Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair
*
......@@ -19,7 +19,7 @@
*/
/*
* ASSERT Macro definitions and general CUnit configuration definitions.
* ASSERT Macro definitions and general BCUnit configuration definitions.
*
* 09/Aug/2001 ASSERT definitions. (AK)
*
......@@ -34,12 +34,12 @@
* 01-Sep-2004 Modified assertions for setjmp/longjmp mechanism of
* aborting test runs, added CU_FAIL and CU_PASS macros. (JDS)
*
* 07-May-2005 Added CU_ prefix to remaining CUnit defines (BOOL, TRUE,
* 07-May-2005 Added CU_ prefix to remaining BCUnit defines (BOOL, TRUE,
* FALSE, MAX_...). Added CU_UNREFERENCED_PARAMETER() define. (JDS)
*/
/** @file
* Basic CUnit include file for user and system code.
* Basic BCUnit include file for user and system code.
* Defines macros for assertions for use in user test cases.
* Basic system macro definitions also appear here.
*/
......@@ -47,13 +47,13 @@
* @{
*/
#ifndef CUNIT_CUNIT_H_SEEN
#define CUNIT_CUNIT_H_SEEN
#ifndef BCUNIT_BCUNIT_H_SEEN
#define BCUNIT_BCUNIT_H_SEEN
#include <string.h>
#include <math.h>
/** CUnit version number. */
/** BCUnit version number. */
#define CU_VERSION "@VERSION@-@RELEASE@"
/* Max string lengths for names (includes terminating NULL. */
......@@ -64,17 +64,17 @@
/* Global type Definitions to be used for boolean operators. */
#ifndef CU_BOOL
/** Boolean type for CUnit use. */
/** Boolean type for BCUnit use. */
#define CU_BOOL int
#endif
#ifndef CU_TRUE
/** Boolean TRUE for CUnit use. */
/** Boolean TRUE for BCUnit use. */
#define CU_TRUE 1
#endif
#ifndef CU_FALSE
/** Boolean FALSE for CUnit use. */
/** Boolean FALSE for BCUnit use. */
#define CU_FALSE 0
#endif
......@@ -327,7 +327,7 @@
#define CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(actual, expected, granularity) \
{ CU_assertImplementation(((fabs((double)(actual) - (expected)) > fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_TRUE); }
#ifdef USE_DEPRECATED_CUNIT_NAMES
#ifdef USE_DEPRECATED_BCUNIT_NAMES
#ifndef BOOL
/** Deprecated (version 2.0-2). @deprecated Use CU_BOOL. */
......@@ -379,8 +379,8 @@
#define ASSERT_DOUBLE_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) > fabs((double)granularity))) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_DOUBLE_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", FALSE); return; }}
/** Deprecated (version 1). @deprecated Use CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL. */
#define ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) <= fabs((double)granularity))) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_DOUBLE_NOT_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", FALSE); return; }}
#endif /* USE_DEPRECATED_CUNIT_NAMES */
#endif /* USE_DEPRECATED_BCUNIT_NAMES */
#endif /* CUNIT_CUNIT_H_SEEN */
#endif /* BCUNIT_BCUNIT_H_SEEN */
/** @} */
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2006 Jerry St.Clair
*
* This library is free software; you can redistribute it and/or
......@@ -24,15 +24,15 @@
*/
/** @file
* Internal CUnit header supporting internationalization of
* CUnit framework & interfaces.
* Internal BCUnit header supporting internationalization of
* BCUnit framework & interfaces.
*/
/** @addtogroup Framework
* @{
*/
#ifndef CUNIT_CUNIT_INTL_H_SEEN
#define CUNIT_CUNIT_INTL_H_SEEN
#ifndef BCUNIT_BCUNIT_INTL_H_SEEN
#define BCUNIT_BCUNIT_INTL_H_SEEN
/* activate these when source preparation is complete
#include <libintl.h>
......@@ -57,6 +57,6 @@
#undef bindtextdomain
#define bindtextdomain(Package, Directory)
#endif /* CUNIT_CUNIT_INTL_H_SEEN */
#endif /* BCUNIT_BCUNIT_INTL_H_SEEN */
/** @} */
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2004-2006 Jerry St.Clair
*
* This library is free software; you can redistribute it and/or
......@@ -30,10 +30,10 @@
* @{
*/
#ifndef CUNIT_BASIC_H_SEEN
#define CUNIT_BASIC_H_SEEN
#ifndef BCUNIT_BASIC_H_SEEN
#define BCUNIT_BASIC_H_SEEN
#include "CUnit.h"
#include "BCUnit.h"
#include "TestDB.h"
#ifdef __cplusplus
......@@ -49,9 +49,9 @@ typedef enum {
CU_EXPORT CU_ErrorCode CU_basic_run_tests(void);
/**<
* Runs all registered CUnit tests using the basic interface.
* Runs all registered BCUnit tests using the basic interface.
* The default CU_BasicRunMode is used unless it has been
* previously changed using CU_basic_set_mode(). The CUnit test
* previously changed using CU_basic_set_mode(). The BCUnit test
* registry must have been initialized before calling this function.
*
* @return A CU_ErrorCode indicating the framework error condition, including
......@@ -109,5 +109,5 @@ CU_EXPORT void CU_basic_show_failures(CU_pFailureRecord pFailure);
#ifdef __cplusplus
}
#endif
#endif /* CUNIT_BASIC_H_SEEN */
#endif /* BCUNIT_BASIC_H_SEEN */
/** @} */
......@@ -24,7 +24,7 @@ set(AUTOMATED_INCLUDES Automated.h)
set(BASIC_INCLUDES Basic.h)
set(CONSOLE_INCLUDES Console.h)
set(CURSES_INCLUDES CUCurses.h)
set(FRAMEWORK_INCLUDES CUError.h CUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h)
set(FRAMEWORK_INCLUDES CUError.h BCUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h)
set(HEADER_FILES ${FRAMEWORK_INCLUDES})
......@@ -44,9 +44,9 @@ if(ENABLE_CURSES)
list(APPEND HEADER_FILES ${CURSES_INCLUDES})
endif()
configure_file(CUnit.h.in CUnit.h @ONLY)
configure_file(BCUnit.h.in BCUnit.h @ONLY)
install(FILES ${HEADER_FILES} ${CMAKE_CURRENT_BINARY_DIR}/CUnit.h
DESTINATION include/CUnit
install(FILES ${HEADER_FILES} ${CMAKE_CURRENT_BINARY_DIR}/BCUnit.h
DESTINATION include/BCUnit
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
* Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair
*
......@@ -37,10 +37,10 @@
* @{
*/
#ifndef CUNIT_CURSES_H_SEEN
#define CUNIT_CURSES_H_SEEN
#ifndef BCUNIT_CURSES_H_SEEN
#define BCUNIT_CURSES_H_SEEN
#include "CUnit.h"
#include "BCUnit.h"
#include "TestDB.h"
#ifdef __cplusplus
......@@ -48,9 +48,9 @@ extern "C" {
#endif
CU_EXPORT void CU_curses_run_tests(void);
/**< Run registered CUnit tests using the curses interface. */
/**< Run registered BCUnit tests using the curses interface. */
#ifdef USE_DEPRECATED_CUNIT_NAMES
#ifdef USE_DEPRECATED_BCUNIT_NAMES
/** Deprecated (version 1). @deprecated Use CU_curses_run_tests(). */
#define curses_run_tests() CU_curses_run_tests()
#endif
......@@ -58,5 +58,5 @@ CU_EXPORT void CU_curses_run_tests(void);
#ifdef __cplusplus
}
#endif
#endif /* CUNIT_CURSES_H_SEEN */
#endif /* BCUNIT_CURSES_H_SEEN */
/** @} */
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
* Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair
*
......@@ -19,7 +19,7 @@
*/
/*
* Contains CUnit error codes which can be used externally.
* Contains BCUnit error codes which can be used externally.
*
* Aug 2001 Initial implementation. (AK)
*
......@@ -36,7 +36,7 @@
/** @file
* Error handling functions (user interface).
* CUnit uses a simple (and conventional) error handling strategy.
* BCUnit uses a simple (and conventional) error handling strategy.
* Functions that can generate errors set (and usually return) an
* error code to indicate the run status. The error code can be
* inspected using the CU_get_error() function. A descriptive
......@@ -46,13 +46,13 @@
* @{
*/
#ifndef CUNIT_CUERROR_H_SEEN
#define CUNIT_CUERROR_H_SEEN
#ifndef BCUNIT_CUERROR_H_SEEN
#define BCUNIT_CUERROR_H_SEEN
#include <errno.h>
/*------------------------------------------------------------------------*/
/** CUnit error codes.
/** BCUnit error codes.
* If codes are added or removed, be sure to make a change to the
* error messages in CUError.c/get_error_desc().
* @see CU_set_error()
......@@ -91,9 +91,9 @@ typedef enum {
} CU_ErrorCode;
/*------------------------------------------------------------------------*/
/** CUnit error action codes.
/** BCUnit error action codes.
* These are used to set the action desired when an error
* condition is detected in the CUnit framework.
* condition is detected in the BCUnit framework.
* @see CU_set_error_action()
* @see CU_get_error_action()
*/
......@@ -105,7 +105,7 @@ typedef enum CU_ErrorAction {
/* Error handling & reporting functions. */
#include "CUnit.h"
#include "BCUnit.h"
#ifdef __cplusplus
extern "C" {
......@@ -113,9 +113,9 @@ extern "C" {
CU_EXPORT CU_ErrorCode CU_get_error(void);
/**<
* Retrieves the current CUnit framework error code.
* CUnit implementation functions set the error code to indicate the
* status of the most recent operation. In general, the CUnit functions
* Retrieves the current BCUnit framework error code.
* BCUnit implementation functions set the error code to indicate the
* status of the most recent operation. In general, the BCUnit functions
* will clear the code to CUE_SUCCESS, then reset it to a specific error
* code if an exception condition is encountered. Some functions
* return the code, others leave it to the user to inspect if desired.
......@@ -128,8 +128,8 @@ CU_EXPORT CU_ErrorCode CU_get_error(void);
CU_EXPORT const char* CU_get_error_msg(void);
/**<
* Retrieves a message corresponding to the current framework error code.
* CUnit implementation functions set the error code to indicate the
* of the most recent operation. In general, the CUnit functions will
* BCUnit implementation functions set the error code to indicate the
* of the most recent operation. In general, the BCUnit functions will
* clear the code to CUE_SUCCESS, then reset it to a specific error
* code if an exception condition is encountered. This function allows
* the user to retrieve a descriptive error message corresponding to the
......@@ -166,15 +166,15 @@ CU_EXPORT CU_ErrorAction CU_get_error_action(void);
* @see CU_ErrorAction
*/
#ifdef CUNIT_BUILD_TESTS
void test_cunit_CUError(void);
#ifdef BCUNIT_BUILD_TESTS
void test_bcunit_CUError(void);
#endif
/* Internal function - users should not generally call this function */
CU_EXPORT void CU_set_error(CU_ErrorCode error);
/**<
* Sets the CUnit framework error code.
* This function is used internally by CUnit implementation functions
* Sets the BCUnit framework error code.
* This function is used internally by BCUnit implementation functions
* when an error condition occurs within the framework. It should
* not generally be called by user code. NOTE that if the current
* error action is CUEA_ABORT, then calling this function will
......@@ -190,10 +190,10 @@ CU_EXPORT void CU_set_error(CU_ErrorCode error);
}
#endif
#ifdef USE_DEPRECATED_CUNIT_NAMES
#ifdef USE_DEPRECATED_BCUNIT_NAMES
/** Deprecated (version 1). @deprecated Use CU_get_error_msg(). */
#define get_error() CU_get_error_msg()
#endif /* USE_DEPRECATED_CUNIT_NAMES */
#endif /* USE_DEPRECATED_BCUNIT_NAMES */
#endif /* CUNIT_CUERROR_H_SEEN */
#endif /* BCUNIT_CUERROR_H_SEEN */
/** @} */
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
* Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair
*
......@@ -35,10 +35,10 @@
* @{
*/
#ifndef CUNIT_CONSOLE_H_SEEN
#define CUNIT_CONSOLE_H_SEEN
#ifndef BCUNIT_CONSOLE_H_SEEN
#define BCUNIT_CONSOLE_H_SEEN
#include "CUnit.h"
#include "BCUnit.h"
#include "TestDB.h"
#ifdef __cplusplus
......@@ -46,15 +46,15 @@ extern "C" {
#endif
CU_EXPORT void CU_console_run_tests(void);
/**< Run registered CUnit tests using the console interface. */
/**< Run registered BCUnit tests using the console interface. */
#ifdef USE_DEPRECATED_CUNIT_NAMES
#ifdef USE_DEPRECATED_BCUNIT_NAMES
/** Deprecated (version 1). @deprecated Use CU_console_run_tests(). */
#define console_run_tests() CU_console_run_tests()
#endif /* USE_DEPRECATED_CUNIT_NAMES */
#endif /* USE_DEPRECATED_BCUNIT_NAMES */
#ifdef __cplusplus
}
#endif
#endif /* CUNIT_CONSOLE_H_SEEN */
#endif /* BCUNIT_CONSOLE_H_SEEN */
/** @} */
#
# Jamfile to build CUnit - Source Headers Directory
# Jamfile to build BCUnit - Source Headers Directory
# (see http://www.freetype.org/jam/index.html)
#
# Copyright (C) 2004-2006 Jerry St.Clair
......@@ -19,14 +19,14 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#---------------------------------------------------------------------------
SubDir TOP CUnit Headers ;
SubDir TOP BCUnit Headers ;
CU_HEADERS =
Automated.h
Basic.h
Console.h
CUError.h
CUnit.h
BCUnit.h
CUCurses.h
MyMem.h
TestDB.h
......@@ -37,6 +37,6 @@ CU_HEADERS =
if $(INSTALL_DOC_DIR)
{
InstallCUnitFile $(INSTALL_INC_DIR) : $(CU_HEADERS) ;
InstallBCUnitFile $(INSTALL_INC_DIR) : $(CU_HEADERS) ;
}
## Process this file with automake to produce Makefile.in
CUnitIncludedir=$(includedir)/CUnit
BCUnitIncludedir=$(includedir)/BCUnit
AUTOMATED_INCLUDES = Automated.h
BASIC_INCLUDES = Basic.h
CONSOLE_INCLUDES = Console.h
CURSES_INCLUDES = CUCurses.h
FRAMEWORK_INCLUDES = CUError.h CUnit.h CUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h
FRAMEWORK_INCLUDES = CUError.h BCUnit.h BCUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h
# Default configuration without enabling anything
INCLUDE_FILES = $(FRAMEWORK_INCLUDES)
......@@ -29,5 +29,5 @@ endif
INCLUDE_FILES += $(BASIC_INCLUDE_FILES) $(CONSOLE_INCLUDE_FILES) $(AUTOMATED_INCLUDE_FILES) $(CURSES_INCLUDE_FILES)
CUnitInclude_HEADERS = $(INCLUDE_FILES)
BCUnitInclude_HEADERS = $(INCLUDE_FILES)
/*
* CUnit - A Unit testing framework library for C.
* BCUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
* Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair
*
......@@ -32,7 +32,7 @@
/** @file
* Memory management functions (user interface).
* Two versions of memory allocation/deallocation are available.
* If compiled with MEMTRACE defined, CUnit keeps track of all
* If compiled with MEMTRACE defined, BCUnit keeps track of all
* system allocations & deallocations. The memory record can
* then be reported using CU_CREATE_MEMORY_REPORT. Otherwise,
* standard system memory allocation is used without tracing.
......@@ -41,8 +41,8 @@
* @{
*/
#ifndef CUNIT_MYMEM_H_SEEN
#define CUNIT_MYMEM_H_SEEN
#ifndef BCUNIT_MYMEM_H_SEEN