Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95001ad
commit 32e2386
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/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 | ||
DISTRO="$1" | ||
shift | ||
ARCH="$1" | ||
shift | ||
|
||
if [ -z "$REPO" ]; then | ||
echo "No local path to binary packages is given as argument" | ||
exit 1 | ||
fi | ||
if [ -z "$DISTRO" ]; then | ||
echo "No distribution is given as argument ( eg '13.1' or 'fedora11' )" | ||
exit 1 | ||
fi | ||
if [ -z "$ARCH" ]; then | ||
echo "No architecture is given as argument ( eg 'i386' or 'x86_64' )" | ||
exit 1 | ||
fi | ||
|
||
[ "$ARCH" == "i386" ] && arch32bit | ||
|
||
repo "$REPO" | ||
|
||
run_build --dist "${DISTRO}-${ARCH}" \ | ||
"$@" |