java: Enable assertions when doing 'make check'.
[libguestfs.git] / java / run-java-tests
index 8447160..64ce079 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh -
 # libguestfs Perl bindings
 #!/bin/sh -
 # libguestfs Perl bindings
-# Copyright (C) 2009 Red Hat Inc.
+# Copyright (C) 2009-2011 Red Hat Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -20,5 +20,5 @@ set -e
 
 for f in t/*.class; do
   classname=$(basename $f .class)
 
 for f in t/*.class; do
   classname=$(basename $f .class)
-  $JAVA -Djava.library.path=.libs $classname
+  $JAVA -Djava.library.path=.libs -ea $classname
 done
\ No newline at end of file
 done
\ No newline at end of file