summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Raynsford <[email protected]>2012-11-11 22:02:06 +0000
committerMark Raynsford <[email protected]>2012-11-11 22:02:06 +0000
commita58a9f8894612a10bcb03952687f8d9355af943c (patch)
treef52a5f9efdee0f7a1ee84cc49f1383706cc061ef
parentf5de8ced6d8dd93eab12be19b3c35aaca3b8da13 (diff)
Trivial-as-possible JOAL testHEADmaster
-rw-r--r--maven/trivial-joal/README.txt3
-rw-r--r--maven/trivial-joal/pom.xml50
-rw-r--r--maven/trivial-joal/src/test/java/com/io7m/example/test_joal/TestJOAL.java22
3 files changed, 75 insertions, 0 deletions
diff --git a/maven/trivial-joal/README.txt b/maven/trivial-joal/README.txt
new file mode 100644
index 0000000..24f966a
--- /dev/null
+++ b/maven/trivial-joal/README.txt
@@ -0,0 +1,3 @@
+Trivial example that does nothing beyond opening an AL context. This
+should be sufficient to test package dependency resolution and whether
+or not the binaries actually work.
diff --git a/maven/trivial-joal/pom.xml b/maven/trivial-joal/pom.xml
new file mode 100644
index 0000000..abc2308
--- /dev/null
+++ b/maven/trivial-joal/pom.xml
@@ -0,0 +1,50 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>com.io7m.example</groupId>
+ <artifactId>trivial-joal</artifactId>
+ <version>1.0.0</version>
+ <packaging>jar</packaging>
+
+ <name>jogl-mvn-test</name>
+ <url>http://maven.apache.org</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.gluegen</groupId>
+ <artifactId>gluegen-rt-main</artifactId>
+ <version>2.0-rc11</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jogamp.joal</groupId>
+ <artifactId>joal-main</artifactId>
+ <version>2.0-rc11</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/maven/trivial-joal/src/test/java/com/io7m/example/test_joal/TestJOAL.java b/maven/trivial-joal/src/test/java/com/io7m/example/test_joal/TestJOAL.java
new file mode 100644
index 0000000..a3f4efb
--- /dev/null
+++ b/maven/trivial-joal/src/test/java/com/io7m/example/test_joal/TestJOAL.java
@@ -0,0 +1,22 @@
+package com.io7m.example.test_joal;
+
+import org.junit.Test;
+
+import com.jogamp.openal.AL;
+import com.jogamp.openal.ALException;
+import com.jogamp.openal.ALFactory;
+
+public class TestJOAL
+{
+ @SuppressWarnings("static-method") @Test public void go()
+ {
+ try {
+ final AL al = ALFactory.getAL();
+ al.alGetError();
+ System.err.println("AL: " + al);
+ } catch (final ALException e) {
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+}