[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9158 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9158 - gnunet/src/util |
Date: |
Thu, 15 Oct 2009 03:14:38 -0600 |
Author: jilu
Date: 2009-10-15 03:14:37 -0600 (Thu, 15 Oct 2009)
New Revision: 9158
Added:
gnunet/src/util/test_bio.c
Modified:
gnunet/src/util/Makefile.am
Log:
bio testcase harness~
Modified: gnunet/src/util/Makefile.am
===================================================================
--- gnunet/src/util/Makefile.am 2009-10-14 12:39:50 UTC (rev 9157)
+++ gnunet/src/util/Makefile.am 2009-10-15 09:14:37 UTC (rev 9158)
@@ -88,6 +88,7 @@
check_PROGRAMS = \
+ test_bio \
test_client \
test_common_allocation \
test_common_endian \
@@ -132,6 +133,13 @@
TESTS = $(check_PROGRAMS)
+
+test_bio_SOURCES = \
+ test_bio.c
+test_bio_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la
+
+
test_client_SOURCES = \
test_client.c
test_client_LDADD = \
Added: gnunet/src/util/test_bio.c
===================================================================
--- gnunet/src/util/test_bio.c (rev 0)
+++ gnunet/src/util/test_bio.c 2009-10-15 09:14:37 UTC (rev 9158)
@@ -0,0 +1,45 @@
+/*
+ This file is part of GNUnet.
+ (C) 2009 Christian Grothoff (and other contributing authors)
+
+ GNUnet is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ GNUnet 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNUnet; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @file util/test_bio.c
+ * @brief testcase for the buffered IO module
+ * @author
+ */
+#include "platform.h"
+#include "gnunet_common.h"
+#include "gnunet_disk_lib.h"
+#include "gnunet_scheduler_lib.h"
+
+
+
+int
+main (int argc, char *argv[])
+{
+ unsigned int failureCount = 0;
+
+ GNUNET_log_setup ("test-bio", "WARNING", NULL);
+ if (failureCount != 0)
+ {
+ fprintf (stderr, "\n%u TESTS FAILED!\n", failureCount);
+ return -1;
+ }
+ return 0;
+} /* end of main */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9158 - gnunet/src/util,
gnunet <=