File: run.sh

package info (click to toggle)
win32-loader 0.10.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,868 kB
  • sloc: ansic: 2,492; sh: 706; asm: 344; makefile: 338
file content (44 lines) | stat: -rwxr-xr-x 718 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
# Licensed under the zlib/libpng license (same as NSIS)
#
# Script to run all tests
#
# Usage: run.sh [<helper dir [<Windows architecture> [<test dir>]]]

set -e

SOURCEDIR=$(cd "$(dirname "$0")"; pwd -P)
TOPDIR=$(cd "${SOURCEDIR}/.."; pwd -P)
HELPERDIR=${1:-"${TOPDIR}/build"}

. "${SOURCEDIR}/common/funcs.sh"

main() {
       for r in ${SOURCEDIR}/*/run.sh
       do
               $r "${HELPERDIR}" "${WINEARCH}" "${PWD}"
       done
}

after() {
	return 0
}

[ $# -gt 1 ] && shift
wine_set_up $@
err=$?
case ${err} in
0)
	main
	;;
2)
	echo "Wine is not available"
	;;
95)
	echo "Wine with ${WINEARCH} architecture is not supported on this host"
	;;
*)
	echo "Failed to boot wine"
	;;
esac
wine_clean_up