aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/make-runtime-properties.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-04 01:58:32 +0100
committerSven Gothel <[email protected]>2010-11-04 01:58:32 +0100
commit4d56491c3f8e76676e1c860d018bbe991d28ebac (patch)
treef5d9a7f61614b94ad3dd81fc55e323e2f9fed4e0 /make/scripts/make-runtime-properties.sh
parenta0e9d6c8382b7275db6fae664be44db6b59671d5 (diff)
Seperated unit tests (newt/awt/headless) and cleaned up some imports and comments
Seperated unit tests (newt/awt/headless) - no more *CORE* tests - junit.run.newt.headless: all NEWT headless (no-AWT) tests, without any AWT classes and with -Djava.awt.headless=true. Disabled for 'isOSX'. - junit.run.newt: all NEWT non AWT tests (same as above), but with full AWT. This test is not enabled via junit.run. Disabled for 'isOSX'. - junit.run.awt: all AWT tests without NEWT - using newt.event.jar to add AWT agnostic NEWT event adapter - junit.run.newt.awt: all NEWT + AWT tests - junit.run: junit.run.newt.headless,junit.run.awt,junit.run.newt.awt - swizzling around a few tests to achieve the above: TEST rules: - A runnable unit test must start with 'Test' - Only pure NEWT tests must have 'NEWT' in their name - AWT tests must have 'AWT' in their name. - AWT + NEWT tests must have '.newt.' in their package name, hence - Pure AWT tests (without NEWT) must not have '.newt.' in their package name
Diffstat (limited to 'make/scripts/make-runtime-properties.sh')
-rw-r--r--make/scripts/make-runtime-properties.sh59
1 files changed, 59 insertions, 0 deletions
diff --git a/make/scripts/make-runtime-properties.sh b/make/scripts/make-runtime-properties.sh
new file mode 100644
index 000000000..f546a93ee
--- /dev/null
+++ b/make/scripts/make-runtime-properties.sh
@@ -0,0 +1,59 @@
+#! /bin/bash
+
+dest0=../doc/Implementation
+dest=../doc/Implementation/runtime-properties-temp
+
+rm -rf $dest
+mkdir $dest
+
+function cleanup() {
+ tfile=$1
+ shift
+ ffile=$1
+ shift
+ domain=$1
+ shift
+
+ sed -e 's/^.*(\"//g' -i $tfile
+ sed -e 's/\".*$//g' -i $tfile
+ sed -e "s/^/$domain/g" -i $tfile
+
+ sort -u $tfile > $ffile
+ rm -f $tfile
+}
+
+grep -hRI "Debug\.debug" ../../gluegen/src/java/com/jogamp | sort -u > $dest/gluegen-rt.debug.tmp1.txt
+cleanup $dest/gluegen-rt.debug.tmp1.txt $dest/gluegen-rt.debug.txt jogamp.debug.
+grep -hRI -e "Debug\.isPropertyDefined" -e "Debug\.get" ../../gluegen/src/java/com/jogamp | sort -u > $dest/gluegen-rt.debug.ipd.tmp1.txt
+cleanup $dest/gluegen-rt.debug.ipd.tmp1.txt $dest/gluegen-rt.ipd.debug.txt
+
+grep -hRI "Debug\.debug" ../src/nativewindow | sort -u > $dest/nativewindow.debug.tmp1.txt
+cleanup $dest/nativewindow.debug.tmp1.txt $dest/nativewindow.debug.txt nativewindow.debug.
+grep -hRI -e "Debug\.isPropertyDefined" -e "Debug\.get" ../src/nativewindow | sort -u > $dest/nativewindow.debug.ipd.tmp1.txt
+cleanup $dest/nativewindow.debug.ipd.tmp1.txt $dest/nativewindow.ipd.debug.txt
+
+grep -hRI "Debug\.debug" ../src/jogl | sort -u > $dest/jogl.debug.all.tmp1.txt
+cleanup $dest/jogl.debug.all.tmp1.txt $dest/jogl.debug.all.txt jogl.debug.
+grep -hRI -e "Debug\.isPropertyDefined" -e "Debug\.get" ../src/jogl | sort -u > $dest/jogl.debug.ipd.tmp1.txt
+cleanup $dest/jogl.debug.ipd.tmp1.txt $dest/jogl.ipd.debug.txt
+
+grep -hRI "Debug\.debug" ../src/newt | sort -u > $dest/newt.debug.tmp1.txt
+cleanup $dest/newt.debug.tmp1.txt $dest/newt.debug.txt newt.debug.
+grep -hRI -e "Debug\.isPropertyDefined" -e "Debug\.get" ../src/newt | sort -u > $dest/newt.debug.ipd.tmp1.txt
+cleanup $dest/newt.debug.ipd.tmp1.txt $dest/newt.ipd.debug.txt
+
+function onefile() {
+ for i in $dest/* ; do
+ echo $i
+ echo ----------------------------------------
+ sed 's/^/ /g' $i
+ echo
+ echo
+ echo
+ done
+}
+
+onefile > $dest0/runtime-properties-new.txt
+
+rm -rf $dest
+