OSDN Git Service

Revert "Add check unittest support and a initial test for a resizing bug."
authorOtavio Salvador <otavio@debian.org>
Tue, 5 Dec 2006 16:16:04 +0000 (14:16 -0200)
committerOtavio Salvador <otavio@debian.org>
Tue, 5 Dec 2006 16:16:04 +0000 (14:16 -0200)
This code wasn't ready for commit yet.

This reverts commit ba43cb6ff7bb1d945062e25b94efecb1b84c0c33.

configure.ac
libparted/Makefile.am
libparted/tests/Makefile.am [deleted file]
libparted/tests/resize.c [deleted file]

index 5dc4ebc..8200564 100644 (file)
@@ -432,10 +432,6 @@ AC_CHECK_HEADER([execinfo.h], [
        ])
 ])
 
-dnl check for "check", unit testing library/header
-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
-AM_CONDITIONAL(HAVE_CHECK, test "x$CHECK_LIBS" != "x")
-
 dnl Checks for typedefs, structures and compiler characteristics.
 AC_PROG_LD
 
@@ -490,7 +486,6 @@ libparted/fs/ntfs/Makefile
 libparted/fs/reiserfs/Makefile
 libparted/fs/ufs/Makefile
 libparted/fs/xfs/Makefile
-libparted/tests/Makefile
 parted/Makefile
 partprobe/Makefile
 doc/Makefile
index b071658..0cb7c09 100644 (file)
@@ -3,13 +3,7 @@
 #
 # This file may be modified and/or distributed without restriction.
 
-if HAVE_CHECK
-SUBDIRS_CHECK = tests
-else
-SUBDIRS_CHECK =
-endif
-
-SUBDIRS       = labels fs . $(SUBDIRS_CHECK)
+SUBDIRS       = labels fs
 
 LIBS = @INTLLIBS@ @LIBS@
 
diff --git a/libparted/tests/Makefile.am b/libparted/tests/Makefile.am
deleted file mode 100644 (file)
index c4e66e5..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# This file is part of GNU Parted
-# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
-#
-# This file may be modified and/or distributed without restriction.
-
-TESTS = resize
-bin_PROGRAMS     = resize
-resize_CFLAGS    = @CHECK_CFLAGS@ -I$(top_srcdir)/include
-resize_LDADD     = @CHECK_LIBS@ $(top_builddir)/libparted/libparted.la
-resize_SOURCES   = resize.c
-
diff --git a/libparted/tests/resize.c b/libparted/tests/resize.c
deleted file mode 100644 (file)
index 761f81a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <parted/parted.h>
-#include <check.h>
-
-START_TEST (test_start_sector)
-{
-               fail_unless(0 == 0, "Erro proposital");
-}
-END_TEST               
-
-int main(void)
-{
-               int number_failed;
-               Suite *suite = suite_create( "Resize" );
-               TCase *basic = tcase_create( "Basic" );
-               
-               tcase_add_test( basic, test_start_sector );
-               suite_add_tcase( suite, basic );
-
-               SRunner *srunner = srunner_create( suite );
-               srunner_run_all( srunner, CK_VERBOSE );
-
-               number_failed = srunner_ntests_failed( srunner );
-               srunner_free(srunner);
-               
-               return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-