summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/gluegen/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-07 03:58:56 +0100
committerSven Gothel <[email protected]>2012-03-07 03:58:56 +0100
commit238a669b5163e76d79dcf298b3c63381821e01ba (patch)
tree12c0225a1aae3cac7a161300590bdba9fa58a030 /src/junit/com/jogamp/gluegen/test
parentbe3c68fada7cf9503f3d501d29283628e0056bcb (diff)
Don't build and use gluegen.apk (compile time only) ; Don't test classloader -> JarURL on Android
All [remaining] tests passed on Android!
Diffstat (limited to 'src/junit/com/jogamp/gluegen/test')
-rw-r--r--src/junit/com/jogamp/gluegen/test/junit/generation/PCPPTest.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/PCPPTest.java b/src/junit/com/jogamp/gluegen/test/junit/generation/PCPPTest.java
index c4c7e56..4c47a78 100644
--- a/src/junit/com/jogamp/gluegen/test/junit/generation/PCPPTest.java
+++ b/src/junit/com/jogamp/gluegen/test/junit/generation/PCPPTest.java
@@ -28,13 +28,18 @@
package com.jogamp.gluegen.test.junit.generation;
+import com.jogamp.common.os.AndroidVersion;
import com.jogamp.gluegen.pcpp.PCPP;
+import com.jogamp.junit.util.JunitTracer;
+
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Collections;
+
+import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
@@ -42,11 +47,18 @@ import static org.junit.Assert.*;
* serves mainly as entry point for debugging purposes.
* @author Sven Gothel, Michael Bien
*/
-public class PCPPTest {
+public class PCPPTest extends JunitTracer {
+ @BeforeClass
+ public static void init() {
+ if(AndroidVersion.isAvailable) {
+ // PCPP is n/a on Android - GlueGen Runtime only
+ setTestSupported(false);
+ }
+ }
+
@Test
public void pcppMacroDefinitionTest() throws FileNotFoundException, IOException {
-
PCPP pp = new PCPP(Collections.<String>emptyList(), false, false);
ByteArrayOutputStream output = new ByteArrayOutputStream();
pp.setOut(output);