gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16985 - in gnunet-update: . test test/old test/old/test-pa


From: gnunet
Subject: [GNUnet-SVN] r16985 - in gnunet-update: . test test/old test/old/test-package test/old/test-package/src
Date: Wed, 21 Sep 2011 11:49:01 +0200

Author: harsha
Date: 2011-09-21 11:49:01 +0200 (Wed, 21 Sep 2011)
New Revision: 16985

Added:
   gnunet-update/test/old/test-package/
   gnunet-update/test/old/test-package/Makefile.am
   gnunet-update/test/old/test-package/bootstrap
   gnunet-update/test/old/test-package/configure.ac
   gnunet-update/test/old/test-package/src/
   gnunet-update/test/old/test-package/src/Makefile.am
   gnunet-update/test/old/test-package/src/test-binary.c
   gnunet-update/test/old/test-package/src/test-header.h
   gnunet-update/test/old/test-package/src/test-library.c
   gnunet-update/test/testcases.txt
Removed:
   gnunet-update/test/old/gnunet/
Modified:
   gnunet-update/
   gnunet-update/README
Log:
modified tests to work on a smaller test code


Property changes on: gnunet-update
___________________________________________________________________
Added: svn:ignore
   + .project
.pydevproject


Modified: gnunet-update/README
===================================================================
--- gnunet-update/README        2011-09-21 08:42:11 UTC (rev 16984)
+++ gnunet-update/README        2011-09-21 09:49:01 UTC (rev 16985)
@@ -51,7 +51,7 @@
 
 The program uses ldd to find out the dependencies. However certain
 shared object files may not be included as a dynamic load object in a
-binary or libraries. For example, most of the plugins are built like
+binary or library. For example, most of the plugins are built like
 this. These shared objects are loaded by the application
 dynamically. Their location is know/determined by the application.
 These objects differ from the shared objects which are loaded by loader

Added: gnunet-update/test/old/test-package/Makefile.am
===================================================================
--- gnunet-update/test/old/test-package/Makefile.am                             
(rev 0)
+++ gnunet-update/test/old/test-package/Makefile.am     2011-09-21 09:49:01 UTC 
(rev 16985)
@@ -0,0 +1,23 @@
+# This file is part of GNUnet.
+# (C) 2001--2011 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.
+#
+#
+# Process this file with automake to produce Makefile.in.
+#
+
+SUBDIRS = src

Copied: gnunet-update/test/old/test-package/bootstrap (from rev 16984, 
gnunet/bootstrap)
===================================================================
--- gnunet-update/test/old/test-package/bootstrap                               
(rev 0)
+++ gnunet-update/test/old/test-package/bootstrap       2011-09-21 09:49:01 UTC 
(rev 16985)
@@ -0,0 +1,2 @@
+#!/bin/sh
+autoreconf -if


Property changes on: gnunet-update/test/old/test-package/bootstrap
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mergeinfo
   + /branches/gnunet/mantis_0001616/bootstrap:13878-14093

Added: gnunet-update/test/old/test-package/configure.ac
===================================================================
--- gnunet-update/test/old/test-package/configure.ac                            
(rev 0)
+++ gnunet-update/test/old/test-package/configure.ac    2011-09-21 09:49:01 UTC 
(rev 16985)
@@ -0,0 +1,44 @@
+# This file is part of GNUnet.
+# (C) 2001--2010 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.
+#
+#
+# Process this file with autoconf to produce a configure script.
+#
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.65])
+AC_INIT([test-package], [0.0], address@hidden)
+AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+AC_CONFIG_SRCDIR([src/test-binary.c])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_LIBTOOL
+
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_FILES([Makefile src/Makefile])
+
+# Checks for libraries.
+
+# Checks for header files.
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+
+AC_OUTPUT

Added: gnunet-update/test/old/test-package/src/Makefile.am
===================================================================
--- gnunet-update/test/old/test-package/src/Makefile.am                         
(rev 0)
+++ gnunet-update/test/old/test-package/src/Makefile.am 2011-09-21 09:49:01 UTC 
(rev 16985)
@@ -0,0 +1,33 @@
+# This file is part of GNUnet.
+# (C) 2001--2011 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.
+#
+#
+# Process this file with automake to produce Makefile.in.
+#
+
+#the project libraries
+lib_LTLIBRARIES = libtest.la
+
+libtest_la_SOURCES = test-library.c
+libtest_la_LDFLAGS = -version-info 0:0:0
+include_HEADERS = test-header.h
+
+#the project binaries
+bin_PROGRAMS = test-binary
+test_binary_SOURCES = test-binary.c test-header.h
+test_binary_LDADD = libtest.la

Added: gnunet-update/test/old/test-package/src/test-binary.c
===================================================================
--- gnunet-update/test/old/test-package/src/test-binary.c                       
        (rev 0)
+++ gnunet-update/test/old/test-package/src/test-binary.c       2011-09-21 
09:49:01 UTC (rev 16985)
@@ -0,0 +1,33 @@
+/*
+     This file is part of GNUnet.
+     (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009, 2011 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 /gnunet-update/test/old/test-package/src/test-binary.c
+ * @brief source file for a test binary
+ * @author harsha
+ */
+
+#include "test-header.h"
+
+int main ()
+{
+  return test_function();
+}
+

Added: gnunet-update/test/old/test-package/src/test-header.h
===================================================================
--- gnunet-update/test/old/test-package/src/test-header.h                       
        (rev 0)
+++ gnunet-update/test/old/test-package/src/test-header.h       2011-09-21 
09:49:01 UTC (rev 16985)
@@ -0,0 +1,38 @@
+/*
+     This file is part of GNUnet.
+     (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009, 2011 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 /gnunet-update/test/old/test-package/src/test-header.h
+ * @brief header file for test-library's API
+ * @author harsha
+ */
+
+#ifndef TEST_HEADER_H_
+#define TEST_HEADER_H_
+
+/**
+ * A test function which returns 0
+ *
+ * @return always returns zero
+ */
+int
+test_function();
+
+#endif /* TEST_HEADER_H_ */

Added: gnunet-update/test/old/test-package/src/test-library.c
===================================================================
--- gnunet-update/test/old/test-package/src/test-library.c                      
        (rev 0)
+++ gnunet-update/test/old/test-package/src/test-library.c      2011-09-21 
09:49:01 UTC (rev 16985)
@@ -0,0 +1,42 @@
+/*
+     This file is part of GNUnet.
+     (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009, 2011 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 /gnunet-update/test/old/test-package/src/test-library.c
+ * @brief  A testing library
+ * @author harsha
+ */
+
+/**
+ * TODO: add different functions for different test cases
+ */
+
+#include "test-header.h"
+
+/**
+ * A test function which returns 0
+ *
+ * @return always returns zero
+ */
+int test_function()
+{
+  return 0;
+}
+

Added: gnunet-update/test/testcases.txt
===================================================================
--- gnunet-update/test/testcases.txt                            (rev 0)
+++ gnunet-update/test/testcases.txt    2011-09-21 09:49:01 UTC (rev 16985)
@@ -0,0 +1,30 @@
+This file contains a list of test cases that are to be used to test the source
+
+API Changes in shared libraries
+==========================================
+
+There is no change in a library in both versions. All binaries which are using
+the older library should work just fine with the new library. Only the
+library's revision number is incremented.
+
+Newer library modifies an existing function. Older binaries using this shared
+library can no loger use it. Newer library's revision and age are set to 0 and
+its current number is incremented.
+
+Newer library adds a new function. Older binaries using this shared library
+should be able to use the new library. However, binaries which are built with
+the new library cannot use the older library. For the newer library, revision
+is set to zero, age and current are incremented.
+
+Newer library deletes an existing function. Objects linking to older library
+cannot use the new library.
+
+Static variables?
+
+Changes to shared object files without version information
+=====================================================================
+
+
+Changes to the shared object files which are not dynamically linked but used
+by binaries at run-time.
+=============================================================================




reply via email to

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