Posted by
Sven Gothel on
Dec 04, 2014; 5:30pm
URL: https://forum.jogamp.org/Jogl-Using-Wrong-Generic-Graphics-Adapter-tp4033216p4033710.html
On 12/04/2014 04:20 PM, Tobi Delbruck [via jogamp] wrote:
> I managed to download the mingw binary for gcc finally and just added the
> unpacked archive to my PATH. Now gluegen and jogl can both build.
>
great.
> But I never used JUnit and the tutorials are very indirect about how to use it.
> The example listed in the instructions
>
https://jogamp.org/wiki/index.php/Contributing_a_new_feature_or_fix for a JOGL
> test has a broken link pointing to the gears test example.
>
> Whenever I try to run an existing test, e.g. on Bug427GLJPanelTest1 JUnit
> reports there is an error. I think this class is not a junit test.
>
> gluegen has a directory src/test and gluegen has src/junit. Does this mean
> that JOGL does not have junit tests?
Of course, we have alot in jogl/src/test/,
e.g. jogl/src/test/com/jogamp/opengl/test/junit/jogl/awt/
>
> And do jogamp use JUnit 3 or JUnit 4?
We use:
gluegen/make/lib/junit.jar
which is a drop-in replacement of junit 4.8.2.
Read gluegen/make/lib/junit.LICENSE.txt
If using an IDE, you need to setup the compatible
junit jar files then!
+++
While it should be possible to use an IDE
to launch the unit tests, I run them via commandline.
Further, the repo provides my sandbox scripts
to launch selected unit tests manually
from the commandline.
POSIX, UNIX, OSX:
jogl/make/scripts/tests.sh
e.g. via
jogl/make/scripts/tests-x64.sh
Windows:
jogl/make/scripts/tests-win.bat
e.g. via
jogl/make/scripts/tests-x64.bat
>
> Sorry for all these basic questions.
No problem.
Hope it helps.
~Sven