Add tests for bindings parameters, fix several broken bindings.
[libguestfs.git] / ocaml / run-bindtests
old mode 100755 (executable)
new mode 100644 (file)
similarity index 86%
rename from java/run-java-test
rename to ocaml/run-bindtests
index 905360d..a9162c9
@@ -1,5 +1,5 @@
 #!/bin/sh -
-# libguestfs Java bindings
+# libguestfs OCaml bindings
 # Copyright (C) 2009 Red Hat Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -16,6 +16,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-cmd=$(echo $1 | sed -e 's,^./t/,,' -e 's,.class$,,')
+set -e
+
+./bindtests > bindtests.tmp
+diff -u ../bindtests bindtests.tmp
 
-$JAVA -Djava.library.path=.libs $cmd