activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r835486 - in /activemq/sandbox/activemq-apollo/activemq-syscall: activemq-syscall-lib/ activemq-syscall/ activemq-syscall/src/test/ activemq-syscall/src/test/java/ activemq-syscall/src/test/java/org/ activemq-syscall/src/test/java/org/apach...
Date Thu, 12 Nov 2009 18:30:48 GMT
Author: chirino
Date: Thu Nov 12 18:30:47 2009
New Revision: 835486

URL: http://svn.apache.org/viewvc?rev=835486&view=rev
Log:
adding test cases

Added:
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/syscall/
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/syscall/CLibraryTest.java
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/resources/
Modified:
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall-lib/pom.xml
    activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/pom.xml

Modified: activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall-lib/pom.xml
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall-lib/pom.xml?rev=835486&r1=835485&r2=835486&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall-lib/pom.xml (original)
+++ activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall-lib/pom.xml Thu Nov
12 18:30:47 2009
@@ -27,7 +27,7 @@
   <groupId>org.apache.activemq</groupId>
   <artifactId>activemq-syscall-lib</artifactId>
   <version>6.0-SNAPSHOT</version>
-  <packaging>pom</packaging>
+  <packaging>jar</packaging>
   
   <name>ActiveMQ :: Syscall :: Lib</name>
   <description>JNI lib module</description>
@@ -37,10 +37,33 @@
     <jni-artifactId>activemq-syscall</jni-artifactId>
     <jni-version>${project.version}</jni-version>
     <jni-prefix>lib</jni-prefix>
-    <jni-suffix>.so</jni-suffix>  </properties>    
+    <jni-suffix>.so</jni-suffix>  
+  </properties>    
+  
+  <dependencies>
+  
+    <dependency>
+      <groupId>org.apache.activemq</groupId>
+      <artifactId>activemq-syscall</artifactId>
+      <version>6.0-SNAPSHOT</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <scope>test</scope>
+    </dependency>
+        
+  </dependencies> 
+    
   <profiles>
     
-    <profile>
+    <!-- <profile>
       <id>windows32</id>
       <activation>
         <property>
@@ -65,7 +88,7 @@
         </property>
       </activation>      
       <properties>
-        <configure-options>--with-universal</configure-options>
+        <configure-options>-with-universal</configure-options>
         <jni-suffix>.jnilib</jni-suffix>
       </properties>
     </profile>
@@ -79,18 +102,18 @@
         </property>
       </activation>      
       <properties>
-        <configure-options>--with-universal</configure-options>
+        <configure-options>-with-universal</configure-options>
         <jni-suffix>.jnilib</jni-suffix>
       </properties>
-    </profile>
+    </profile> -->
     
     <profile>
       <id>platform-selected</id>
-      <activation>
+      <!-- <activation>
         <property>
           <name>platform</name>
         </property>
-      </activation>
+      </activation> -->
       <build>
         <plugins>
           

Modified: activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/pom.xml
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/pom.xml?rev=835486&r1=835485&r2=835486&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/pom.xml (original)
+++ activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/pom.xml Thu Nov 12
18:30:47 2009
@@ -31,6 +31,20 @@
   <name>ActiveMQ :: Syscall :: No Arch</name>
   <description>Architecture independent module</description>
 
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <scope>test</scope>
+    </dependency>
+        
+  </dependencies> 
+  
   <build>
     <plugins>
       <plugin>
@@ -41,8 +55,10 @@
           <execution>
             <id>generate</id>
             <goals>
-              <goal>generate</goal>
-              <goal>package</goal>
+              <goal>source-generate</goal>
+              <goal>build-generate</goal>
+              <goal>build-make</goal>
+              <goal>build-package</goal>
             </goals>
           </execution>
         </executions>        

Added: activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/syscall/CLibraryTest.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/syscall/CLibraryTest.java?rev=835486&view=auto
==============================================================================
--- activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/syscall/CLibraryTest.java
(added)
+++ activemq/sandbox/activemq-apollo/activemq-syscall/activemq-syscall/src/test/java/org/apache/activemq/syscall/CLibraryTest.java
Thu Nov 12 18:30:47 2009
@@ -0,0 +1,22 @@
+package org.apache.activemq.syscall;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+import static org.apache.activemq.syscall.CLibrary.*;
+
+public class CLibraryTest {
+    
+    @Test
+    public void testMalloc() {
+        long ptr = CLibrary.malloc(100);
+        Assert.assertTrue(ptr!=0);
+    }
+    
+    @Test
+    public void testFree() {
+        long ptr = malloc(100);
+        free(ptr);
+    }
+    
+}



Mime
View raw message