Add working libguestfs tests.
[patchq.git] / check-release.sh
index d46d99a..63d2c05 100755 (executable)
@@ -1,3 +1,38 @@
 #!/bin/bash -
 
-echo check-release called: $@
+set -e
+
+d="$(dirname $0)"
+source $d/test-functions
+
+pick_project "$@"
+checkout_sources
+apply_patches "$@"
+local_config
+
+cd $project
+
+./localconfigure
+
+case "$project" in
+    libguestfs)
+        make ||:
+        rm po-docs/podfiles; make -C po-docs update-po
+        make
+        ;;
+    *)
+        make
+        ;;
+esac
+
+# Run the tests.
+
+case "$project" in
+    libguestfs)
+        #make check-release  # one day
+        make check
+        ;;
+    *)
+        make check
+        ;;
+esac