gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28969 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r28969 - gnunet/src/testbed
Date: Tue, 3 Sep 2013 15:57:00 +0200

Author: harsha
Date: 2013-09-03 15:56:59 +0200 (Tue, 03 Sep 2013)
New Revision: 28969

Added:
   gnunet/src/testbed/buildvars.py.in
   gnunet/src/testbed/gnunet-service-test-barriers.c
   gnunet/src/testbed/test_testbed_api_barriers.c
   gnunet/src/testbed/test_testbed_api_barriers.py
Modified:
   gnunet/src/testbed/
   gnunet/src/testbed/Makefile.am
Log:
- build system changes for testing barriers API


Index: gnunet/src/testbed
===================================================================
--- gnunet/src/testbed  2013-09-03 13:28:47 UTC (rev 28968)
+++ gnunet/src/testbed  2013-09-03 13:56:59 UTC (rev 28969)

Property changes on: gnunet/src/testbed
___________________________________________________________________
Modified: svn:ignore
## -43,3 +43,6 ##
 test_testbed_api_peer_reconfiguration
 *.log
 *.trs
+*.pyc
+gnunet-service-test-barriers
+buildvars.py
Modified: gnunet/src/testbed/Makefile.am
===================================================================
--- gnunet/src/testbed/Makefile.am      2013-09-03 13:28:47 UTC (rev 28968)
+++ gnunet/src/testbed/Makefile.am      2013-09-03 13:56:59 UTC (rev 28969)
@@ -30,6 +30,15 @@
   $(ll_binaries) \
   gnunet-testbed-profiler
 
+noinst_SCRIPTS = \
+  buildvars.py
+
+CLEANFILES = $(noinst_SCRIPTS) \
+  buildvars.pyc
+
+noinst_PROGRAMS = \
+  gnunet-service-test-barriers
+
 gnunet_service_testbed_SOURCES = \
   gnunet-service-testbed.h \
   gnunet-service-testbed.c \
@@ -150,7 +159,8 @@
   test_testbed_api_testbed_run_topologyfromfile \
   test_testbed_api_testbed_run_topologyscalefree \
   test_testbed_api_testbed_run_waitforever \
-  test_testbed_api_statistics
+  test_testbed_api_statistics \
+  test_testbed_api_barriers
 
 if ENABLE_TEST_RUN
  TESTS = \
@@ -179,7 +189,8 @@
   test_testbed_api_testbed_run_topologysmallworld \
   test_testbed_api_testbed_run_topologysmallworldring \
   test_testbed_api_testbed_run_topologyfromfile \
-  test_testbed_api_testbed_run_topologyscalefree
+  test_testbed_api_testbed_run_topologyscalefree \
+  test_testbed_api_barriers.py
 endif
 
 test_testbed_api_hosts_SOURCES = \
@@ -350,6 +361,23 @@
  $(top_builddir)/src/util/libgnunetutil.la \
  libgnunettestbed.la
 
+test_testbed_api_barriers_SOURCES = \
+ test_testbed_api_barriers.c
+test_testbed_api_barriers_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ libgnunettestbed.la
+
+do_subst = sed -e 's,address@hidden@],$(libexecdir),g'
+
+buildvars.py: buildvars.py.in Makefile
+       $(do_subst) < $(srcdir)/buildvars.py.in > $@
+
+gnunet_service_test_barriers_SOURCES = \
+  gnunet-service-test-barriers.c
+gnunet_service_test_barriers_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ libgnunettestbed.la
+
 EXTRA_DIST = \
   test_testbed_api.conf \
   test_testbed_api_test_timeout.conf \
@@ -364,4 +392,6 @@
   test_testbed_api_testbed_run_topologyscalefree.conf \
   overlay_topology.txt \
   sample_hosts.txt \
-  sample.job
+  sample.job \
+  buildvars.py.in \
+  test_testbed_api_barriers.py

Added: gnunet/src/testbed/buildvars.py.in
===================================================================
--- gnunet/src/testbed/buildvars.py.in                          (rev 0)
+++ gnunet/src/testbed/buildvars.py.in  2013-09-03 13:56:59 UTC (rev 28969)
@@ -0,0 +1,24 @@
+# This file is part of GNUnet.
+# (C) 2008--2013 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:     testbed/buildvars.py
+# brief:    file for importing variables from build syste into python
+# author:   Sree Harsha Totakura
+
+libexecdir = '@libexecdir@'

Added: gnunet/src/testbed/gnunet-service-test-barriers.c
===================================================================
--- gnunet/src/testbed/gnunet-service-test-barriers.c                           
(rev 0)
+++ gnunet/src/testbed/gnunet-service-test-barriers.c   2013-09-03 13:56:59 UTC 
(rev 28969)
@@ -0,0 +1,32 @@
+/*
+      This file is part of GNUnet
+      (C) 2008--2013 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 3, 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 testbed/gnunet-service-test-barriers.c
+ * @brief Service for testing testbed barriers.  This service is started as a
+ *   peer service and waits for a barrier to be crossed.
+ * @author Sree Harsha Totakura <address@hidden> 
+ */
+
+
+int main ()
+{
+  return 0;
+}

Added: gnunet/src/testbed/test_testbed_api_barriers.c
===================================================================
--- gnunet/src/testbed/test_testbed_api_barriers.c                              
(rev 0)
+++ gnunet/src/testbed/test_testbed_api_barriers.c      2013-09-03 13:56:59 UTC 
(rev 28969)
@@ -0,0 +1,31 @@
+/*
+      This file is part of GNUnet
+      (C) 2008--2013 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 3, 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 testbed/test_testbed_api_barriers.c
+ * @brief testcase binary for testing testbed barriers API
+ * @author Sree Harsha Totakura <address@hidden> 
+ */
+
+
+int main ()
+{
+  return 0;
+}

Added: gnunet/src/testbed/test_testbed_api_barriers.py
===================================================================
--- gnunet/src/testbed/test_testbed_api_barriers.py                             
(rev 0)
+++ gnunet/src/testbed/test_testbed_api_barriers.py     2013-09-03 13:56:59 UTC 
(rev 28969)
@@ -0,0 +1,43 @@
+#!/usr/bin/env python
+# This file is part of GNUnet.
+# (C) 2008--2013 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:     testbed/test_testbed_api_barriers.py
+# brief:    execution script for testing testbed barriers API.
+# author:   Sree Harsha Totakura
+
+
+import subprocess as sp
+import shutil
+import os
+from buildvars import libexecdir
+
+
+service = 'gnunet-service-test-barriers'
+
+# copy gnunet-service-test-barriers service to gnunet's libexec dir
+shutil.copy (service, libexecdir)
+
+# start the testcase binary
+ret = subprocess.call ('test_testbed_api_barriers', shell=False)
+
+# remove the installed gnunet-service-test-barriers copy
+os.unlink (os.path.join (libexecdir, service))
+
+sys.exit (ret)


Property changes on: gnunet/src/testbed/test_testbed_api_barriers.py
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property



reply via email to

[Prev in Thread] Current Thread [Next in Thread]