])
])
+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
libparted/fs/reiserfs/Makefile
libparted/fs/ufs/Makefile
libparted/fs/xfs/Makefile
+libparted/tests/Makefile
parted/Makefile
partprobe/Makefile
doc/Makefile
#
# This file may be modified and/or distributed without restriction.
-SUBDIRS = labels fs
+if HAVE_CHECK
+SUBDIRS_CHECK = tests
+else
+SUBDIRS_CHECK =
+endif
+
+SUBDIRS = labels fs . $(SUBDIRS_CHECK)
LIBS = @INTLLIBS@ @LIBS@
--- /dev/null
+# 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
+
--- /dev/null
+#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;
+}
+