From a58a9f8894612a10bcb03952687f8d9355af943c Mon Sep 17 00:00:00 2001 From: Mark Raynsford Date: Sun, 11 Nov 2012 22:02:06 +0000 Subject: Trivial-as-possible JOAL test --- maven/trivial-joal/README.txt | 3 ++ maven/trivial-joal/pom.xml | 50 ++++++++++++++++++++++ .../java/com/io7m/example/test_joal/TestJOAL.java | 22 ++++++++++ 3 files changed, 75 insertions(+) create mode 100644 maven/trivial-joal/README.txt create mode 100644 maven/trivial-joal/pom.xml create mode 100644 maven/trivial-joal/src/test/java/com/io7m/example/test_joal/TestJOAL.java 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 @@ + + 4.0.0 + + com.io7m.example + trivial-joal + 1.0.0 + jar + + jogl-mvn-test + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + 4.10 + test + + + org.jogamp.gluegen + gluegen-rt-main + 2.0-rc11 + + + org.jogamp.joal + joal-main + 2.0-rc11 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.0.2 + + 1.6 + 1.6 + + + + + + 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); + } + } +} -- cgit v1.2.3