summaryrefslogtreecommitdiff
path: root/test/testbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/testbuild.sh')
-rwxr-xr-xtest/testbuild.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/testbuild.sh b/test/testbuild.sh
new file mode 100755
index 0000000..b81c929
--- /dev/null
+++ b/test/testbuild.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# This is the generic test case for the current distribution, it
+# is to be called from the spec file while building a build.rpm
+
+. ${0%/*}/common
+REPO="$1"
+shift
+
+if [ -z "$REPO" ]; then
+ echo "No local path to binary packages is given as argument"
+ exit 1
+fi
+
+[ "$ARCH" == "i386" ] && arch32bit
+
+repo "$REPO"
+
+run_build "$@"