Skip to content

Instantly share code, notes, and snippets.

@kdm9
Created February 6, 2016 10:21
Show Gist options
  • Save kdm9/c01935abd63f4caf6bc6 to your computer and use it in GitHub Desktop.
Save kdm9/c01935abd63f4caf6bc6 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -lt 1 ]
then
echo "USAGE: run-debci-test <PKG.changes> [<outdir>]"
exit 1
fi
if [ $# -eq 2 ]
then
OUTDIR$2
else
OUTDIR=$(mktemp -d)
fi
PKG=$1
if [ ! -f "$PKG" ]
then
echo "Package '*.changes' file must exist"
exit 1
fi
echo "Running adt-run for $PKG, output to $OUTDIR"
set -x
adt-run --user debci --output-dir ${OUTDIR} ${PKG} \
--- schroot debci-unstable-amd64
echo "Output is in $OUTDIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment