File: testbuild.sh

package info (click to toggle)
obs-build 20141024-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,528 kB
  • ctags: 280
  • sloc: perl: 7,019; sh: 2,357; ansic: 255; makefile: 92
file content (19 lines) | stat: -rwxr-xr-x 343 bytes parent folder | download | duplicates (5)
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 "$@"