debian/0000755000000000000000000000000012177473373007204 5ustar debian/cunit.pc0000644000000000000000000000030212101230047010615 0ustar prefix=/usr exec_prefix=${prefix} libdir={exec_prefix}/lib includedir=${prefix}/include/CUnit Name: CUnit Description: The C Unit Test Library Libs: -L${libdir} -lcunit CFlags: -I${includedir} debian/README.Debian0000644000000000000000000000023312101227655011226 0ustar Due to license issues all *.dsp files have been removed from the source package. -- Philipp Benner , Sat, 10 Mar 2012 22:31:46 +0000 debian/libcunit1-dev.install0000644000000000000000000000036712101230777013232 0ustar debian/tmp-cunit/usr/include usr debian/tmp-cunit/usr/lib/lib*.a usr/lib debian/tmp-cunit/usr/lib/lib*.so usr/lib debian/tmp-cunit/usr/share/man/man3 usr/share/man debian/cunit.pc usr/lib/pkgconfig debian/rules0000755000000000000000000000416312177375741010270 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # hardening flags DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk clean: dh_testdir dh_testroot rm -f install-stamp [ ! -f Makefile ] || $(MAKE) distclean dh_autoreconf_clean dh_clean @for i in debian/rules.d/*; do \ $(MAKE) -f $$i clean; \ done # Unfortunately, the build system fails to compile in a separated # build directory. Hence, cunit has to be installed directly after # each build process. build: build-stamp build-arch: build-stamp build-indep: build-stamp build-stamp: $(QUILT_STAMPFN) install: install-stamp install-stamp: dh_autoreconf @for i in debian/rules.d/*; do \ $(RM) config.status; \ $(MAKE) -f $$i build; \ $(MAKE) -f $$i install; \ done touch $@ get-orig-source: UPSTREAM_VERSION=2.1-2 get-orig-source: wget http://downloads.sourceforge.net/project/cunit/CUnit/$(UPSTREAM_VERSION)/CUnit-$(UPSTREAM_VERSION)-src.tar.bz2 tar -xjvf CUnit-$(UPSTREAM_VERSION)-src.tar.bz2 mv CUnit-$(UPSTREAM_VERSION) cunit-$(UPSTREAM_VERSION).dfsg.orig [ ! -f cunit-$(UPSTREAM_VERSION).dfsg.orig/Makefile ] || $(MAKE) -C cunit-$(UPSTREAM_VERSION).dfsg.orig distclean -find cunit-$(UPSTREAM_VERSION).dfsg.orig -name "*.dsp" | xargs -r $(RM) -v tar -cf - cunit-$(UPSTREAM_VERSION).dfsg.orig | gzip -9 > cunit_$(UPSTREAM_VERSION).dfsg.orig.tar.gz $(RM) CUnit-$(UPSTREAM_VERSION)-src.tar.bz2* $(RM) -r cunit-$(UPSTREAM_VERSION).dfsg.orig binary-common: dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples --exclude=.deps dh_install --sourcedir=. dh_installman dh_strip dh_compress dh_fixperms dh_makeshlibs dh_shlibdeps dh_installdeb dh_gencontrol dh_md5sums dh_builddeb # Build architecture-independent files here. binary-indep: build install $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture-dependent files here. binary-arch: build install $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-indep binary-arch .PHONY: get-orig-source build clean binary-indep binary-arch binary-common binary install debian/docs0000644000000000000000000000003112101227655010034 0ustar AUTHORS NEWS README TODO debian/source/0000755000000000000000000000000012177435746010506 5ustar debian/source/format0000644000000000000000000000001412101230335011662 0ustar 3.0 (quilt) debian/libcunit1-ncurses-dev.install0000644000000000000000000000043712101231020014666 0ustar debian/tmp-cunit-ncurses/usr/include usr debian/tmp-cunit-ncurses/usr/lib/lib*.a usr/lib debian/tmp-cunit-ncurses/usr/lib/lib*.so usr/lib debian/tmp-cunit-ncurses/usr/share/man/man3 usr/share/man debian/cunit.pc usr/lib/pkgconfig debian/libcunit1-doc.doc-base0000644000000000000000000000063011561221542013220 0ustar Document: libcunit1 Title: A unit testing framework for C Author: Anil Kumar, Jerry St.Clair Abstract: CUnit uses a simple framework for building test structures. It provides a rich set of assertions for testing common data types. Section: Programming Format: HTML Index: /usr/share/doc/libcunit1-doc/html/index.html Files: /usr/share/doc/libcunit1-doc/html/*.html /usr/share/doc/libcunit1-doc/html/*.css debian/libcunit1-doc.install0000644000000000000000000000011611561221542013210 0ustar debian/tmp-cunit/usr/share/doc/libcunit1-doc/html usr/share/doc/libcunit1-doc debian/copyright0000644000000000000000000000331712101227655011126 0ustar This package was downloaded from http://sourceforge.net/projects/cunit/ Files: * Copyright: (c) 2001, 2004-2006 Anil Kumar Jerry St.Clair License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Files: doc/* Copyright: © 2004-2005 Jerry St.Clair License: GFDL-1.2+ The documentation is distributed under the GNU Free Documentation License. It does not contain any secondary sections designated as invariant, cover texts, acknowledgements, and dedications. Therefore the documentation is considered as being compatible with the DFSG (according to the vote of GR 2006-001). Files: debian/* Copyright: (c) 2006-2012 Philipp Benner License: GPL-2+ The Debian packaging information is under the GPL, version 2 or later. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL' and the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. debian/libcunit1.install0000644000000000000000000000013211561221542012443 0ustar debian/tmp-cunit/usr/lib/lib*.so.* usr/lib debian/tmp-cunit/usr/share/CUnit usr/share debian/control0000644000000000000000000000670512177435731010613 0ustar Source: cunit Priority: optional Maintainer: Philipp Benner Build-Depends: debhelper (>= 5), dh-autoreconf, autoconf, dpkg-dev (>= 1.16.1~), libncurses5-dev (>= 5.5-5), quilt Standards-Version: 3.9.4 Section: libs Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/cunit/ Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/cunit/ Homepage: http://cunit.sourceforge.net/ Package: libcunit1-dev Section: libdevel Architecture: any Suggests: libcunit1-doc (= ${binary:Version}) Depends: ${misc:Depends}, libcunit1 (= ${binary:Version}) Description: Unit Testing Library for C -- development files CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. Package: libcunit1 Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Unit Testing Library for C CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. Package: libcunit1-ncurses-dev Section: libdevel Architecture: any Conflicts: libcunit1-dev Suggests: libcunit1-doc (= ${binary:Version}) Depends: ${misc:Depends}, libcunit1-ncurses (= ${binary:Version}) Description: Unit Testing Library for C (ncurses) -- development files CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. Package: libcunit1-ncurses Section: libs Architecture: any Conflicts: libcunit1 Depends: ${misc:Depends}, ${shlibs:Depends} Description: Unit Testing Library for C (ncurses) CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. Package: libcunit1-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Unit Testing Library for C -- documentation CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. debian/compat0000644000000000000000000000000211561221542010363 0ustar 5 debian/libcunit1-doc.examples0000644000000000000000000000001311561221542013354 0ustar Examples/* debian/libcunit1-ncurses.override0000644000000000000000000000007711561221542014304 0ustar libcunit1-ncurses: package-name-doesnt-match-sonames libcunit1 debian/patches/0000755000000000000000000000000012177435746010635 5ustar debian/patches/c99.patch0000644000000000000000000000104112177435731012250 0ustar Description: use c99 mode for snprintf. Author: Dmitrijs Ledkovs --- a/configure.in +++ b/configure.in @@ -26,7 +26,7 @@ TOPDIR=`pwd` -CFLAGS="$CFLAGS -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I${PWD}/CUnit/Headers" +CFLAGS="$CFLAGS -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -I${PWD}/CUnit/Headers" LDFLAGS="$LDFLAGS -L${PWD}/CUnit/Sources" AC_ARG_ENABLE(debug, @@ -156,6 +156,7 @@ dnl Check for programs. AC_PROG_CC +AC_PROG_CC_C99 AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LIBTOOL debian/patches/series0000644000000000000000000000006312177435731012043 0ustar c99.patch gcc-warnings.patch manual-warnings.patch debian/patches/manual-warnings.patch0000644000000000000000000000357512177435731014765 0ustar --- a/Man/man3/CUnit.3 +++ b/Man/man3/CUnit.3 @@ -473,7 +473,7 @@ be used instead of directly setting the value of the data structure members. All return CUE_SUCCESS on success, and the indicated error code on failure. .P -.TP5 +.TP 5 .B "CU_ErrorCode CU_set_suite_name(CU_pSuite pSuite, const char *strNewName)" .TP 5 .B "CU_ErrorCode CU_set_test_name(CU_pTest pTest, const char *strNewName)" @@ -481,7 +481,7 @@ are available as the .B pSuite->pName and -.BpTest->pName +.B pTest->pName data structure members. If the suite or test is NULL, then CUE_NOSUITE or CUE_NOTEST is returned, respectively. If strNewName is NULL, then CUE_NO_SUITENAME or CUE_NO_TESTNAME is returned, respectively. @@ -518,13 +518,13 @@ data structures to enumerate the suites and tests. This is not directly supported in the client API. .P -.TP5 +.TP 5 .B "CU_pSuite CU_get_suite(const char* strName)" -.TP5 +.TP 5 .B "CU_pSuite CU_get_suite_at_pos(unsigned int pos)" -.TP5 +.TP 5 .B "unsigned int CU_get_suite_pos(CU_pSuite pSuite)" -.TP5 +.TP 5 .B "unsigned int CU_get_suite_pos_by_name(const char* strName)"

These functions facilitate lookup of suites registered in the active test registry. @@ -539,13 +539,13 @@ CUnit error state to CUE_NOREGISTRY> if the registry is not initialized. As appropriate, CUE_NO_SUITENAME is set if strName is NULL, and CUE_NOSUITE is set if pSuite is NULL. .P -.TP5 +.TP 5 .B "CU_pTest CU_get_test(CU_pSuite pSuite, const char *strName)" -.TP5 +.TP 5 .B "CU_pTest CU_get_test_at_pos<(CU_pSuite pSuite, unsigned int pos)" -.TP5 +.TP 5 .B "unsigned int CU_get_test_pos<(CU_pSuite pSuite, CU_pTest pTest)" -.TP5 +.TP 5 .B "unsigned int CU_get_test_pos_by_name(CU_pSuite pSuite, const char *strName)" These functions facilitate lookup of tests registered in suites. The first 2 functions allow lookup of the test by name or position and return NULL if the debian/patches/gcc-warnings.patch0000644000000000000000000003242312177435731014236 0ustar --- a/CUnit/Sources/Framework/TestRun.c +++ b/CUnit/Sources/Framework/TestRun.c @@ -610,36 +610,36 @@ "%*s%*s%*u%*u%*u%*u%*u\n" /* len above! */ "%*s%*s%*u%*u%*u%*u%*s\n\n" "%*s%8.3f%*s", - width[0], _("Run Summary:"), - width[1], _("Type"), - width[2], _("Total"), - width[3], _("Ran"), - width[4], _("Passed"), - width[5], _("Failed"), - width[6], _("Inactive"), - width[0], " ", - width[1], _("suites"), - width[2], pRegistry->uiNumberOfSuites, - width[3], pRunSummary->nSuitesRun, - width[4], _("n/a"), - width[5], pRunSummary->nSuitesFailed, - width[6], pRunSummary->nSuitesInactive, - width[0], " ", - width[1], _("tests"), - width[2], pRegistry->uiNumberOfTests, - width[3], pRunSummary->nTestsRun, - width[4], pRunSummary->nTestsRun - pRunSummary->nTestsFailed, - width[5], pRunSummary->nTestsFailed, - width[6], pRunSummary->nTestsInactive, - width[0], " ", - width[1], _("asserts"), - width[2], pRunSummary->nAsserts, - width[3], pRunSummary->nAsserts, - width[4], pRunSummary->nAsserts - pRunSummary->nAssertsFailed, - width[5], pRunSummary->nAssertsFailed, - width[6], _("n/a"), - width[7], _("Elapsed time = "), CU_get_elapsed_time(), /* makes sure time is updated */ - width[8], _(" seconds") + (int)width[0], _("Run Summary:"), + (int)width[1], _("Type"), + (int)width[2], _("Total"), + (int)width[3], _("Ran"), + (int)width[4], _("Passed"), + (int)width[5], _("Failed"), + (int)width[6], _("Inactive"), + (int)width[0], " ", + (int)width[1], _("suites"), + (int)width[2], pRegistry->uiNumberOfSuites, + (int)width[3], pRunSummary->nSuitesRun, + (int)width[4], _("n/a"), + (int)width[5], pRunSummary->nSuitesFailed, + (int)width[6], pRunSummary->nSuitesInactive, + (int)width[0], " ", + (int)width[1], _("tests"), + (int)width[2], pRegistry->uiNumberOfTests, + (int)width[3], pRunSummary->nTestsRun, + (int)width[4], pRunSummary->nTestsRun - pRunSummary->nTestsFailed, + (int)width[5], pRunSummary->nTestsFailed, + (int)width[6], pRunSummary->nTestsInactive, + (int)width[0], " ", + (int)width[1], _("asserts"), + (int)width[2], pRunSummary->nAsserts, + (int)width[3], pRunSummary->nAsserts, + (int)width[4], pRunSummary->nAsserts - pRunSummary->nAssertsFailed, + (int)width[5], pRunSummary->nAssertsFailed, + (int)width[6], _("n/a"), + (int)width[7], _("Elapsed time = "), CU_get_elapsed_time(), /* makes sure time is updated */ + (int)width[8], _(" seconds") ); result[len-1] = '\0'; } --- a/CUnit/Sources/Console/Console.c +++ b/CUnit/Sources/Console/Console.c @@ -155,7 +155,7 @@ int chChoice; CU_pSuite pSuite = NULL; CU_STATUS eStatus = CU_STATUS_CONTINUE; - char szTemp[256]; + char szTemp; while (CU_STATUS_CONTINUE == eStatus) { @@ -163,8 +163,9 @@ _("***************** CUNIT CONSOLE - MAIN MENU ******************************"), _("(R)un (S)elect (L)ist (A)ctivate (F)ailures (O)ptions (H)elp (Q)uit"), _("Enter command: ")); - chChoice = toupper(getchar()); - fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */ + while ((szTemp = getchar()) == '\n' || szTemp == EOF); + chChoice = toupper(szTemp); + while ((szTemp = getchar()) != '\n' && szTemp != EOF); /* flush any chars out of the read buffer */ if (chChoice == _("R")[0]) { console_run_all_tests(pRegistry); @@ -231,7 +232,7 @@ int chChoice; CU_pTest pTest = NULL; CU_STATUS eStatus = CU_STATUS_CONTINUE; - char szTemp[256]; + char szTemp; assert(NULL != pSuite); assert(NULL != pSuite->pName); @@ -242,8 +243,9 @@ _("***************** CUNIT CONSOLE - SUITE MENU ***************************"), _("(R)un (S)elect (L)ist (A)ctivate (F)ailures (U)p (O)ptions (H)elp (Q)uit"), _("Enter command: ")); - chChoice = toupper(getchar()); - fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */ + while ((szTemp = getchar()) == '\n' || szTemp == EOF); + chChoice = toupper(szTemp); + while ((szTemp = getchar()) != '\n' && szTemp != EOF); /* flush any chars out of the read buffer */ if (chChoice == _("R")[0]) { console_run_suite(pSuite); @@ -311,7 +313,7 @@ { int chChoice; CU_STATUS eStatus = CU_STATUS_CONTINUE; - char szTemp[256]; + char szTemp; while (CU_STATUS_CONTINUE == eStatus) { fprintf(stdout, "\n%s\n", @@ -321,10 +323,11 @@ fprintf(stdout, "\n********************************************************************\n"); fprintf(stdout, "%s", _("Enter number of option to change : ")); - chChoice = getchar(); - fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */ + while ((szTemp = getchar()) == '\n' || szTemp == EOF); + chChoice = tolower(szTemp); + while ((szTemp = getchar()) != '\n' && szTemp != EOF); /* flush any chars out of the read buffer */ - switch (tolower(chChoice)) { + switch (chChoice) { case '1': CU_set_fail_on_inactive((CU_FALSE == CU_get_fail_on_inactive()) ? CU_TRUE : CU_FALSE); break; @@ -420,7 +423,7 @@ fprintf(stdout, "\n"); fprintf(stdout, _("Enter number of test to select (1-%u) : "), pSuite->uiNumberOfTests); - fgets(buffer, 100, stdin); + while (fgets(buffer, 100, stdin) == NULL); *ppTest = CU_get_test_by_index(atol(buffer), pSuite); } @@ -459,7 +462,7 @@ fprintf(stdout, "\n"); fprintf(stdout, _("Enter number of suite to select (1-%u) : "), pRegistry->uiNumberOfSuites); - fgets(buffer, 100, stdin); + while (fgets(buffer, 100, stdin) == NULL); *ppSuite = CU_get_suite_by_index(atol(buffer), pRegistry); } @@ -502,22 +505,22 @@ fprintf(stdout, "\n%s", _("--------------------- Registered Suites -----------------------------")); fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n", - width[0], _("#"), - width[1], _("Suite Name"), - width[2], _("Init?"), - width[3], _("Cleanup?"), - width[4], _("#Tests"), - width[5], _("Active?")); + (int)width[0], _("#"), + (int)width[1], _("Suite Name"), + (int)width[2], _("Init?"), + (int)width[3], _("Cleanup?"), + (int)width[4], _("#Tests"), + (int)width[5], _("Active?")); for (i = 1, pCurSuite = pRegistry->pSuite; (NULL != pCurSuite); pCurSuite = pCurSuite->pNext, ++i) { assert(NULL != pCurSuite->pName); fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s", - width[0], i, - width[1], width[1] - 1, pCurSuite->pName, - width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"), - width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"), - width[4], pCurSuite->uiNumberOfTests, - width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No")); + (int)width[0], i, + (int)width[1], (int)width[1] - 1, pCurSuite->pName, + (int)width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"), + (int)width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"), + (int)width[4], pCurSuite->uiNumberOfTests, + (int)width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No")); } fprintf(stdout, "\n---------------------------------------------------------------------\n"); fprintf(stdout, _("Total Number of Suites : %-u"), pRegistry->uiNumberOfSuites); @@ -558,18 +561,18 @@ _("----------------- Test List ------------------------------")); fprintf(stdout, "\n%s%s\n", _("Suite: "), pSuite->pName); fprintf(stdout, "\n%*s %-*s%*s\n", - width[0], _("#"), - width[1], _("Test Name"), - width[2], _("Active?")); + (int)width[0], _("#"), + (int)width[1], _("Test Name"), + (int)width[2], _("Active?")); for (uiCount = 1, pCurTest = pSuite->pTest ; NULL != pCurTest ; uiCount++, pCurTest = pCurTest->pNext) { assert(NULL != pCurTest->pName); fprintf(stdout, "\n%*u. %-*.*s%*s", - width[0], uiCount, - width[1], width[1]-1, pCurTest->pName, - width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No")); + (int)width[0], uiCount, + (int)width[1], (int)width[1]-1, pCurTest->pName, + (int)width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No")); } fprintf(stdout, "\n----------------------------------------------------------\n"); fprintf(stdout, _("Total Number of Tests : %-u"), pSuite->uiNumberOfTests); --- a/CUnit/Sources/Curses/Curses.c +++ b/CUnit/Sources/Curses/Curses.c @@ -736,8 +736,7 @@ } else { list_tests(pSuite); - snprintf(szTemp, STRING_LENGTH, "%s", - _("Enter number of test to select (1-%u) : "), + snprintf(szTemp, STRING_LENGTH, "Enter number of test to select (1-%u) : ", pRegistry->uiNumberOfSuites); read_input_string(szTemp, szTestNumber, STRING_LENGTH); test_num = atol(szTestNumber); @@ -769,8 +768,7 @@ else { while (1) { list_tests(pSuite); - snprintf(szTemp, STRING_LENGTH, "%s", - _("Enter number of test to select (1-%u) : "), + snprintf(szTemp, STRING_LENGTH, "Enter number of test to select (1-%u) : ", pRegistry->uiNumberOfSuites); read_input_string(szTemp, szTestNumber, STRING_LENGTH); test_num = atol(szTestNumber); @@ -1006,23 +1004,23 @@ } snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s", - width[0], _("#"), - width[1], _("Suite Name"), - width[2], _("Init?"), - width[3], _("Cleanup?"), - width[4], _("#Tests"), - width[5], _("Active?")); + (int)width[0], _("#"), + (int)width[1], _("Suite Name"), + (int)width[2], _("Init?"), + (int)width[3], _("Cleanup?"), + (int)width[4], _("#Tests"), + (int)width[5], _("Active?")); mvwprintw(details_pad.pPad, 0, 0, "%s", szTemp); for (i = 0, pCurSuite = pRegistry->pSuite; pCurSuite; pCurSuite = pCurSuite->pNext, i++) { assert(NULL != pCurSuite->pName); snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s", - width[0], i+1, - width[1], width[1] - 1, pCurSuite->pName, - width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"), - width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"), - width[4], pCurSuite->uiNumberOfTests, - width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No")); + (int)width[0], i+1, + (int)width[1], (int)width[1] - 1, pCurSuite->pName, + (int)width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"), + (int)width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"), + (int)width[4], pCurSuite->uiNumberOfTests, + (int)width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No")); mvwprintw(details_pad.pPad, i + 2, 0, "%s", szTemp); } @@ -1072,9 +1070,9 @@ snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s", - width[0], _("#"), - width[1], _("Test Name"), - width[2], _("Active?")); + (int)width[0], _("#"), + (int)width[1], _("Test Name"), + (int)width[2], _("Active?")); mvwprintw(details_pad.pPad, 1, 0, szTemp); for (i = 0, pCurTest = pSuite->pTest ; @@ -1083,9 +1081,9 @@ assert(NULL != pCurTest->pName); snprintf(szTemp, STRING_LENGTH, "%*u. %-*.*s%*s", - width[0], i + 1, - width[1], width[1]-1, pCurTest->pName, - width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No")); + (int)width[0], i + 1, + (int)width[1], (int)width[1]-1, pCurTest->pName, + (int)width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No")); mvwprintw(details_pad.pPad, i + 3, 0, "%s", szTemp); } debian/changelog0000644000000000000000000000552312177435731011057 0ustar cunit (2.1-2.dfsg-1) unstable; urgency=low * New upstream release (Closes: #717056, #718494). * Fixed debian/watch. -- Philipp Benner Sun, 04 Aug 2013 08:42:32 +0200 cunit (2.1-0.dfsg-12) unstable; urgency=low * Standards version 3.9.4. [Dmitrijs Ledkovs] * Check return value of fgets calls. * Compile in C99 mode to get snprintf support. (Closes: #710161) -- Philipp Benner Sun, 23 Jun 2013 19:44:36 +0200 cunit (2.1-0.dfsg-11) unstable; urgency=low * Added hardening flags. * Added pkg-config (Closes: #687561). -- Philipp Benner Sun, 27 Jan 2013 15:03:52 +0100 cunit (2.1-0.dfsg-10) unstable; urgency=low * Standards version 3.9.3. * Removed *.la files from package. * debian/rules: added build-arch and build-indep. * Added debian/README.source. -- Philipp Benner Sat, 10 Mar 2012 20:40:25 +0000 cunit (2.1-0.dfsg-9) unstable; urgency=low * Standards version 3.8.0. * Use "const char *" instead of "char *" to prevent warnings with g++ (Closes: #502581). -- Philipp Benner Sun, 25 Jan 2009 22:19:21 +0000 cunit (2.1-0.dfsg-8) unstable; urgency=low * Changed the doc-base section according to the new policy. -- Philipp Benner Mon, 31 Mar 2008 10:49:16 +0200 cunit (2.1-0.dfsg-7) unstable; urgency=low * New maintainer e-mail address. * debian/control: Added DM-Upload-Allowed: yes. -- Philipp Benner Tue, 15 Jan 2008 11:42:23 +0100 cunit (2.1-0.dfsg-6) unstable; urgency=low * Machine interpretable copyright file. * Removed debtags from debian/control. * Added homepage field to debian/control. * Added Vcs-Browser and Vcs-Svn fields. * Fixed debian-rules-ignores-make-clean-error. -- Philipp Benner Wed, 28 Nov 2007 22:10:56 +0100 cunit (2.1-0.dfsg-5) unstable; urgency=low * added missing include files to documentation (Closes: #421855) -- Philipp Benner Sun, 6 May 2007 23:08:10 +0200 cunit (2.1-0.dfsg-4) unstable; urgency=low * ncurses support (Closes: #414879) -- Philipp Benner Tue, 27 Mar 2007 21:37:30 +0200 cunit (2.1-0.dfsg-3) unstable; urgency=low * watch file upate -- Philipp Benner Fri, 24 Nov 2006 11:30:08 +0100 cunit (2.1-0.dfsg-2) unstable; urgency=low * added watch file version mangle * new README.Debian-source * mentioned in debian/copyright that the documentation is distributed + under the GNU FDL * removed dh_link from debian/rules -- Philipp Benner Tue, 17 Oct 2006 14:42:46 +0200 cunit (2.1-0.dfsg-1) unstable; urgency=low * Initial release (Closes: #293009) -- Philipp Benner Mon, 18 Sep 2006 19:58:21 +0200 debian/rules.d/0000755000000000000000000000000012177435746010562 5ustar debian/rules.d/cunit-ncurses0000644000000000000000000000253212101232520013255 0ustar # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --enable-curses \ CFLAGS="$(CFLAGS)" \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs -lncurses" build: config.status dh_testdir $(MAKE) install: build dh_testdir dh_testroot dh_installdirs # find Examples | xargs chmod 644 # $(MAKE) install \ DESTDIR=$(CURDIR)/debian/tmp-cunit-ncurses \ docdir=\$${prefix}/share/doc/libcunit1-doc/html \ dochdrdir=\$${prefix}/share/doc/libcunit1-doc/html/headers install -d debian/tmp-cunit-ncurses/usr/share/lintian/overrides install -m644 debian/libcunit1-ncurses.override \ debian/tmp-cunit-ncurses/usr/share/lintian/overrides/libcunit1-ncurses clean: $(RM) -r debian/tmp-cunit-ncurses .PHONY: build install clean debian/rules.d/cunit0000644000000000000000000000220312101232507011575 0ustar # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --disable-curses \ CFLAGS="$(CFLAGS)" \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" build: config.status dh_testdir $(MAKE) install: build dh_testdir dh_testroot dh_installdirs # find Examples | xargs chmod 644 # $(MAKE) install \ DESTDIR=$(CURDIR)/debian/tmp-cunit \ docdir=\$${prefix}/share/doc/libcunit1-doc/html \ dochdrdir=\$${prefix}/share/doc/libcunit1-doc/html/headers clean: $(RM) -r debian/tmp-cunit .PHONY: build install clean debian/libcunit1-ncurses.install0000644000000000000000000000031511561221542014126 0ustar debian/tmp-cunit-ncurses/usr/lib/lib*.so.* usr/lib debian/tmp-cunit-ncurses/usr/share/CUnit usr/share debian/tmp-cunit-ncurses/usr/share/lintian/overrides/libcunit1-ncurses usr/share/lintian/overrides debian/README.source0000644000000000000000000000031312101227655011343 0ustar This package uses quilt to apply some changes to the source. Please see /usr/share/doc/quilt/README.source for how to use quilt. -- Philipp Benner , Sat, 10 Mar 2012 22:34:36 +0000 debian/watch0000644000000000000000000000026512177373462010236 0ustar # Compulsory line, this is a version 3 file version=3 opts="uversionmangle=s/-src//,dversionmangle=s/\.dfsg//" \ http://sf.net/cunit/CUnit-(.+)\.tar\.(?:gz|bz2) \ debian uupdate