[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18666 - in gnunet-update/test: . new/test-package/src old/
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18666 - in gnunet-update/test: . new/test-package/src old/test-package/src |
Date: |
Sun, 18 Dec 2011 11:06:53 +0100 |
Author: harsha
Date: 2011-12-18 11:06:53 +0100 (Sun, 18 Dec 2011)
New Revision: 18666
Added:
gnunet-update/test/new/test-package/src/libnew.c
gnunet-update/test/new/test-package/src/test-binary-modified.c
gnunet-update/test/new/test-package/src/test-binary-new.c
gnunet-update/test/old/test-package/src/libold.c
gnunet-update/test/old/test-package/src/test-binary-modified.c
gnunet-update/test/old/test-package/src/test-binary-removed.c
Removed:
gnunet-update/test/new/test-package/src/test-header.h
gnunet-update/test/new/test-package/src/test-library.c
gnunet-update/test/old/test-package/src/test-header.h
gnunet-update/test/old/test-package/src/test-library.c
Modified:
gnunet-update/test/new/test-package/src/Makefile.am
gnunet-update/test/new/test-package/src/test-binary.c
gnunet-update/test/old/test-package/src/Makefile.am
gnunet-update/test/old/test-package/src/test-binary.c
gnunet-update/test/testcases.txt
Log:
refined test cases
Modified: gnunet-update/test/new/test-package/src/Makefile.am
===================================================================
--- gnunet-update/test/new/test-package/src/Makefile.am 2011-12-17 19:02:42 UTC
(rev 18665)
+++ gnunet-update/test/new/test-package/src/Makefile.am 2011-12-18 10:06:53 UTC
(rev 18666)
@@ -21,22 +21,17 @@
#
#the project libraries
-lib_LTLIBRARIES = libtest.la \
- libnochange.la \
+lib_LTLIBRARIES = libnochange.la \
libfunmod.la \
libfunadd.la \
- libfundel.la
+ libfundel.la \
+ libnew.la
-include_HEADERS = test-header.h \
- libnochange.h \
+include_HEADERS = libnochange.h \
libfunmod.h \
libfunadd.h \
libfundel.h
-libtest_la_SOURCES = test-library.c
-libtest_la_LDFLAGS = -version-info 0:0:0
-
-
libnochange_la_SOURCES = libnochange.c
libnochange_la_LDFLAGS = -version-info 0:0:0
@@ -49,16 +44,24 @@
libfundel_la_SOURCES = libfundel.c
libfundel_la_LDFLAGS = -version-info 1:0:0
+libnew_la_SOURCES = libnew.c
+libnew_la_LDFLAGS = -version-info 0:0:0
+
#the project binaries
bin_PROGRAMS = test-binary \
+ test-binary-new \
+ test-binary-modified \
binary-libfunadd \
binary-libfundel \
binary-libfunmod \
binary-libnochange
-test_binary_SOURCES = test-binary.c test-header.h
-test_binary_LDADD = libtest.la
+test_binary_SOURCES = test-binary.c
+test_binary_new_SOURCES = test-binary-new.c
+
+test_binary_modified_SOURCES = test-binary-modified.c
+
binary_libfunadd_SOURCES = binary-libfunadd.c libfunadd.h
binary_libfunadd_LDADD = libfunadd.la
Added: gnunet-update/test/new/test-package/src/libnew.c
===================================================================
--- gnunet-update/test/new/test-package/src/libnew.c
(rev 0)
+++ gnunet-update/test/new/test-package/src/libnew.c 2011-12-18 10:06:53 UTC
(rev 18666)
@@ -0,0 +1,37 @@
+/*
+ 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 test/old/test-package/src/libnew.c
+ * @brief this library is newly added in the newer version of the package
+ * @author harsha
+ */
+
+
+/**
+ * Dummy function
+ * @return 0
+ */
+int libnew_function()
+{
+ return 0;
+}
+
+
Added: gnunet-update/test/new/test-package/src/test-binary-modified.c
===================================================================
--- gnunet-update/test/new/test-package/src/test-binary-modified.c
(rev 0)
+++ gnunet-update/test/new/test-package/src/test-binary-modified.c
2011-12-18 10:06:53 UTC (rev 18666)
@@ -0,0 +1,36 @@
+/*
+ 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 test/old/test-package/src/test-binary-modified.c
+ * @brief this binary will be modified(hence should be replaced) in the new
+ * updated package
+ * @author harsha
+ */
+
+
+/**
+ * The main execution function
+ */
+int main ()
+{
+ return 1;
+}
+
Added: gnunet-update/test/new/test-package/src/test-binary-new.c
===================================================================
--- gnunet-update/test/new/test-package/src/test-binary-new.c
(rev 0)
+++ gnunet-update/test/new/test-package/src/test-binary-new.c 2011-12-18
10:06:53 UTC (rev 18666)
@@ -0,0 +1,36 @@
+/*
+ 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/new/test-package/src/test-binary-new.c
+ * @brief source file for a test binary new; this binary is newly added in the
+ * updated package
+ * @author harsha
+ */
+
+
+/**
+ * The main execution function
+ */
+int main ()
+{
+ return 0;
+}
+
Modified: gnunet-update/test/new/test-package/src/test-binary.c
===================================================================
--- gnunet-update/test/new/test-package/src/test-binary.c 2011-12-17
19:02:42 UTC (rev 18665)
+++ gnunet-update/test/new/test-package/src/test-binary.c 2011-12-18
10:06:53 UTC (rev 18666)
@@ -19,18 +19,16 @@
*/
/**
- * @file /gnunet-update/test/old/test-package/src/test-binary.c
+ * @file /gnunet-update/test/new/test-package/src/test-binary.c
* @brief source file for a test binary
* @author harsha
*/
-#include "test-header.h"
-
/**
* The main execution function
*/
int main ()
{
- return test_function();
+ return 0;
}
Deleted: gnunet-update/test/new/test-package/src/test-header.h
===================================================================
--- gnunet-update/test/new/test-package/src/test-header.h 2011-12-17
19:02:42 UTC (rev 18665)
+++ gnunet-update/test/new/test-package/src/test-header.h 2011-12-18
10:06:53 UTC (rev 18666)
@@ -1,38 +0,0 @@
-/*
- 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_ */
Deleted: gnunet-update/test/new/test-package/src/test-library.c
===================================================================
--- gnunet-update/test/new/test-package/src/test-library.c 2011-12-17
19:02:42 UTC (rev 18665)
+++ gnunet-update/test/new/test-package/src/test-library.c 2011-12-18
10:06:53 UTC (rev 18666)
@@ -1,42 +0,0 @@
-/*
- 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;
-}
-
Modified: gnunet-update/test/old/test-package/src/Makefile.am
===================================================================
--- gnunet-update/test/old/test-package/src/Makefile.am 2011-12-17 19:02:42 UTC
(rev 18665)
+++ gnunet-update/test/old/test-package/src/Makefile.am 2011-12-18 10:06:53 UTC
(rev 18666)
@@ -21,22 +21,17 @@
#
#the project libraries
-lib_LTLIBRARIES = libtest.la \
- libnochange.la \
+lib_LTLIBRARIES = libnochange.la \
libfunmod.la \
libfunadd.la \
- libfundel.la
+ libfundel.la \
+ libold.la
-include_HEADERS = test-header.h \
- libnochange.h \
+include_HEADERS = libnochange.h \
libfunmod.h \
libfunadd.h \
libfundel.h
-libtest_la_SOURCES = test-library.c
-libtest_la_LDFLAGS = -version-info 0:0:0
-
-
libnochange_la_SOURCES = libnochange.c
libnochange_la_LDFLAGS = -version-info 0:0:0
@@ -49,16 +44,24 @@
libfundel_la_SOURCES = libfundel.c
libfundel_la_LDFLAGS = -version-info 0:0:0
+libold_la_SOURCES = libold.c
+libold_la_LDFLAGS = -version-info 0:0:0
+
#the project binaries
bin_PROGRAMS = test-binary \
+ test-binary-removed \
+ test-binary-modified \
binary-libfunadd \
binary-libfundel \
binary-libfunmod \
binary-libnochange
-test_binary_SOURCES = test-binary.c test-header.h
-test_binary_LDADD = libtest.la
+test_binary_SOURCES = test-binary.c
+test_binary_removed_SOURCES = test-binary-removed.c
+
+test_binary_modified_SOURCES = test-binary-modified.c
+
binary_libfunadd_SOURCES = binary-libfunadd.c libfunadd.h
binary_libfunadd_LDADD = libfunadd.la
Added: gnunet-update/test/old/test-package/src/libold.c
===================================================================
--- gnunet-update/test/old/test-package/src/libold.c
(rev 0)
+++ gnunet-update/test/old/test-package/src/libold.c 2011-12-18 10:06:53 UTC
(rev 18666)
@@ -0,0 +1,37 @@
+/*
+ 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 test/old/test-package/src/libold.c
+ * @brief this library will be removed in the newer version of the package
+ * @author harsha
+ */
+
+
+/**
+ * Dummy function
+ * @return 0
+ */
+int libold_function()
+{
+ return 0;
+}
+
+
Added: gnunet-update/test/old/test-package/src/test-binary-modified.c
===================================================================
--- gnunet-update/test/old/test-package/src/test-binary-modified.c
(rev 0)
+++ gnunet-update/test/old/test-package/src/test-binary-modified.c
2011-12-18 10:06:53 UTC (rev 18666)
@@ -0,0 +1,36 @@
+/*
+ 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 test/old/test-package/src/test-binary-modified.c
+ * @brief this binary will be modified(hence should be replaced) in the new
+ * updated package
+ * @author harsha
+ */
+
+
+/**
+ * The main execution function
+ */
+int main ()
+{
+ return 0;
+}
+
Added: gnunet-update/test/old/test-package/src/test-binary-removed.c
===================================================================
--- gnunet-update/test/old/test-package/src/test-binary-removed.c
(rev 0)
+++ gnunet-update/test/old/test-package/src/test-binary-removed.c
2011-12-18 10:06:53 UTC (rev 18666)
@@ -0,0 +1,35 @@
+/*
+ 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 test/old/test-package/src/test-binary-removed.c
+ * @brief this binary will be deleted in the new updated package
+ * @author harsha
+ */
+
+
+/**
+ * The main execution function
+ */
+int main ()
+{
+ return 0;
+}
+
Modified: gnunet-update/test/old/test-package/src/test-binary.c
===================================================================
--- gnunet-update/test/old/test-package/src/test-binary.c 2011-12-17
19:02:42 UTC (rev 18665)
+++ gnunet-update/test/old/test-package/src/test-binary.c 2011-12-18
10:06:53 UTC (rev 18666)
@@ -19,18 +19,16 @@
*/
/**
- * @file /gnunet-update/test/old/test-package/src/test-binary.c
+ * @file test/old/test-package/src/test-binary.c
* @brief source file for a test binary
* @author harsha
*/
-#include "test-header.h"
-
/**
* The main execution function
*/
int main ()
{
- return test_function();
+ return 0;
}
Deleted: gnunet-update/test/old/test-package/src/test-header.h
===================================================================
--- gnunet-update/test/old/test-package/src/test-header.h 2011-12-17
19:02:42 UTC (rev 18665)
+++ gnunet-update/test/old/test-package/src/test-header.h 2011-12-18
10:06:53 UTC (rev 18666)
@@ -1,38 +0,0 @@
-/*
- 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_ */
Deleted: gnunet-update/test/old/test-package/src/test-library.c
===================================================================
--- gnunet-update/test/old/test-package/src/test-library.c 2011-12-17
19:02:42 UTC (rev 18665)
+++ gnunet-update/test/old/test-package/src/test-library.c 2011-12-18
10:06:53 UTC (rev 18666)
@@ -1,42 +0,0 @@
-/*
- 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;
-}
-
Modified: gnunet-update/test/testcases.txt
===================================================================
--- gnunet-update/test/testcases.txt 2011-12-17 19:02:42 UTC (rev 18665)
+++ gnunet-update/test/testcases.txt 2011-12-18 10:06:53 UTC (rev 18666)
@@ -1,30 +1,58 @@
This file contains a list of test cases that are to be used to test the source
-API Changes in shared libraries
-==========================================
+* 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.
+** There is no change in a library in both versions
+ libnochange
+ binary-libnochange.c
-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.
+ 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 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 modifies an existing function
+ libfunmod.c
+ binary-libfunmod.c
-Newer library deletes an existing function. Objects linking to older library
-cannot use the new library.
+ 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.
-Static variables?
+** Newer library adds a new function
+ libfunadd.c
+ binary-libfunadd.c
-Changes to shared object files without version information
-=====================================================================
+ 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
+ libfundel.c
+ binary-libfundel.c
-Changes to the shared object files which are not dynamically linked but used
-by binaries at run-time.
-=============================================================================
+ Objects linking to older library cannot use the new library.
+
+** A newer library is added in the new package
+ libnew.c
+
+** An older library is removed in from the older package
+ libold.c
+
+** A binary which doesn't depend of any of the in package libraries
+ test-binary.c
+
+** A binary is modified in the newer package
+ test-binary-modified.c
+
+** A binary is removed in the newer package
+ test-binary-removed.c
+
+** A binary is added in the newer package
+ test-binary-new.c
+
+** 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.
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18666 - in gnunet-update/test: . new/test-package/src old/test-package/src,
gnunet <=