gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17046 - in gnunet-update/test/new: . test-package/src


From: gnunet
Subject: [GNUnet-SVN] r17046 - in gnunet-update/test/new: . test-package/src
Date: Tue, 27 Sep 2011 13:44:23 +0200

Author: harsha
Date: 2011-09-27 13:44:23 +0200 (Tue, 27 Sep 2011)
New Revision: 17046

Added:
   gnunet-update/test/new/test-package/
Modified:
   gnunet-update/test/new/test-package/src/Makefile.am
   gnunet-update/test/new/test-package/src/binary-libfunadd.c
   gnunet-update/test/new/test-package/src/binary-libfundel.c
   gnunet-update/test/new/test-package/src/binary-libfunmod.c
   gnunet-update/test/new/test-package/src/libfunadd.c
   gnunet-update/test/new/test-package/src/libfunadd.h
   gnunet-update/test/new/test-package/src/libfundel.c
   gnunet-update/test/new/test-package/src/libfundel.h
   gnunet-update/test/new/test-package/src/libfunmod.c
   gnunet-update/test/new/test-package/src/libfunmod.h
Log:
extended test cases

Modified: gnunet-update/test/new/test-package/src/Makefile.am
===================================================================
--- gnunet-update/test/old/test-package/src/Makefile.am 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/Makefile.am 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -41,13 +41,13 @@
 libnochange_la_LDFLAGS = -version-info 0:0:0
 
 libfunadd_la_SOURCES = libfunadd.c
-libfunadd_la_LDFLAGS = -version-info 0:0:0
+libfunadd_la_LDFLAGS = -version-info 1:0:1
 
 libfunmod_la_SOURCES = libfunmod.c
-libfunmod_la_LDFLAGS = -version-info 0:0:0
+libfunmod_la_LDFLAGS = -version-info 1:0:0
 
 libfundel_la_SOURCES = libfundel.c
-libfundel_la_LDFLAGS = -version-info 0:0:0
+libfundel_la_LDFLAGS = -version-info 1:0:0
 
 #the project binaries
 bin_PROGRAMS = test-binary \

Modified: gnunet-update/test/new/test-package/src/binary-libfunadd.c
===================================================================
--- gnunet-update/test/old/test-package/src/binary-libfunadd.c  2011-09-27 
11:10:14 UTC (rev 17036)
+++ gnunet-update/test/new/test-package/src/binary-libfunadd.c  2011-09-27 
11:44:23 UTC (rev 17046)
@@ -19,8 +19,8 @@
 */
 
 /**
- * @file /gnunet-update/testold/test-package/src/binary-libfunadd.c
- * @brief binary which depends on libfunadd
+ * @file /gnunet-update/test/new/test-package/src/binary-libfunadd.c
+ * @brief binary which depends on the newer libfunadd
  * @author harsha
  */
 
@@ -31,5 +31,5 @@
  */
 int main()
 {
-  return libfunadd_function();
+  return libfunadd_new_function();
 }

Modified: gnunet-update/test/new/test-package/src/binary-libfundel.c
===================================================================
--- gnunet-update/test/old/test-package/src/binary-libfundel.c  2011-09-27 
11:10:14 UTC (rev 17036)
+++ gnunet-update/test/new/test-package/src/binary-libfundel.c  2011-09-27 
11:44:23 UTC (rev 17046)
@@ -19,7 +19,7 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/binary-libfundel.c
+ * @file /gnunet-update/test/new/test-package/src/binary-libfundel.c
  * @brief binary which depends on libfundel
  * @author harsha
  */
@@ -31,9 +31,6 @@
  */
 int main()
 {
-  int i;
-  i = libfundel_function_deprecated();
-  i = libfundel_function();
-  return i;
+  return libfundel_function();
 }
 

Modified: gnunet-update/test/new/test-package/src/binary-libfunmod.c
===================================================================
--- gnunet-update/test/old/test-package/src/binary-libfunmod.c  2011-09-27 
11:10:14 UTC (rev 17036)
+++ gnunet-update/test/new/test-package/src/binary-libfunmod.c  2011-09-27 
11:44:23 UTC (rev 17046)
@@ -19,7 +19,7 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/binary-libfunmod.c
+ * @file /gnunet-update/test/new/test-package/src/binary-libfunmod.c
  * @brief binary which depends on libfunmod
  * @author harsha
  */
@@ -31,6 +31,6 @@
  */
 int main()
 {
-  return libfunmod_function();
+  return libfunmod_function(0);
 }
 

Modified: gnunet-update/test/new/test-package/src/libfunadd.c
===================================================================
--- gnunet-update/test/old/test-package/src/libfunadd.c 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/libfunadd.c 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -19,9 +19,9 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/libfunadd.c
- * @brief the newer version of this library will add extra functions. For now,
- *        it has only one function
+ * @file /gnunet-update/test/new/test-package/src/libfunadd.c
+ * @brief This newer version of library extends the older version with a new
+ *        function
  * @author harsha
  */
 
@@ -37,4 +37,13 @@
   return 0;
 }
 
+/**
+ * This is the new function which is added in this version. It is not present 
in
+ * the older versions of this library
+ */
+int libfunadd_new_function()
+{
+  return 0;
+}
 
+

Modified: gnunet-update/test/new/test-package/src/libfunadd.h
===================================================================
--- gnunet-update/test/old/test-package/src/libfunadd.h 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/libfunadd.h 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -19,9 +19,9 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/libfunadd.h
- * @brief the newer version of this library will add extra functions. For now,
- *        it has only one function
+ * @file /gnunet-update/test/new/test-package/src/libfunadd.h
+ * @brief This newer version of library extends the older version with a new
+ *        function
  * @author harsha
  */
 
@@ -35,5 +35,10 @@
  */
 int libfunadd_function();
 
+/**
+ * This is the new function which is added in this version. It is not present 
in
+ * the older versions of this library
+ */
+int libfunadd_new_function();
 
 #endif /* LIBFUNADD_H_ */

Modified: gnunet-update/test/new/test-package/src/libfundel.c
===================================================================
--- gnunet-update/test/old/test-package/src/libfundel.c 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/libfundel.c 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -19,9 +19,8 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/libfundel.c
- * @brief A function from this library will be deleted in the newer release of
- *        this library
+ * @file /gnunet-update/test/new/test-package/src/libfundel.c
+ * @brief This newer version deletes a function from the older version
  * @author harsha
  */
 
@@ -36,13 +35,4 @@
   return 0;
 }
 
-/**
- * This function will be removed in the newer version of this library
- * @return 0
- */
-int libfundel_function_deprecated()
-{
-  return 0;
-}
 
-

Modified: gnunet-update/test/new/test-package/src/libfundel.h
===================================================================
--- gnunet-update/test/old/test-package/src/libfundel.h 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/libfundel.h 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -19,9 +19,8 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/libfundel.h
- * @brief A function from this library will be deleted in the newer release of
- *        this library
+ * @file /gnunet-update/test/new/test-package/src/libfundel.h
+ * @brief This newer version deletes a function from the older version
  * @author harsha
  */
 
@@ -34,11 +33,4 @@
  */
 int libfundel_function();
 
-/**
- * This function will be removed in the newer version of this library
- * @return 0
- */
-int libfundel_function_deprecated();
-
-
 #endif /* LIBFUNDEL_H_ */

Modified: gnunet-update/test/new/test-package/src/libfunmod.c
===================================================================
--- gnunet-update/test/old/test-package/src/libfunmod.c 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/libfunmod.c 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -19,9 +19,9 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/libfunmod.c
- * @brief the libfunmod library which has a function modified in the newer
- *        version
+ * @file /gnunet-update/test/new/test-package/src/libfunmod.c
+ * @brief A function's signature in this newer version of this library is
+ *        modified
  * @author harsha
  */
 
@@ -31,9 +31,9 @@
  * This function signature will be modified in the newer library
  * @return in this version it will return 0
  */
-int libfunmod_function()
+int libfunmod_function(int x)
 {
-  return 0;
+  return x;
 }
 
 

Modified: gnunet-update/test/new/test-package/src/libfunmod.h
===================================================================
--- gnunet-update/test/old/test-package/src/libfunmod.h 2011-09-27 11:10:14 UTC 
(rev 17036)
+++ gnunet-update/test/new/test-package/src/libfunmod.h 2011-09-27 11:44:23 UTC 
(rev 17046)
@@ -19,9 +19,9 @@
 */
 
 /**
- * @file /gnunet-update/test/old/test-package/src/libfunmod.h
- * @brief header file for the libfunmod library which has a function modified 
in
- *        the newer version
+ * @file /gnunet-update/test/new/test-package/src/libfunmod.h
+ * @brief A function's signature in this newer version of this library is
+ *        modified
  * @author harsha
  */
 
@@ -32,6 +32,6 @@
  * This function signature will be modified in the newer library
  * @return in this version it will return 0
  */
-int libfunmod_function();
+int libfunmod_function(int );
 
 #endif /* LIBFUNMOD_H_ */




reply via email to

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