File: run

package info (click to toggle)
hare 0.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,948 kB
  • sloc: asm: 1,264; makefile: 123; sh: 114; lisp: 101
file content (21 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -eu


arch=$(dpkg-architecture -A $(basename $0) -q DEB_TARGET_GNU_CPU)
cd $(dirname $0)

qemu=
if [ "$(uname -m)" != $arch ]; then
	qemu=qemu-$arch
fi

tmp=${AUTOPKGTEST_TMP:-/tmp}
mkdir -p $tmp/$arch/test
cp *.ha $tmp/$arch/test
cd $tmp/$arch/test

set -x
hare build -a $arch
$qemu ./test