summaryrefslogtreecommitdiff
path: root/test/testbuild.sh
blob: b81c929c951845adaefd9f88b676fc149da63209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 "$@"