File: anita-wrapper.sh

package info (click to toggle)
flashrom 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,268 kB
  • sloc: ansic: 67,220; sh: 1,118; python: 104; makefile: 97
file content (18 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

cd

[ "${IDENT}" ] || IDENT=$(mktemp -u XXXXXXXX)

CCACHE=.ccache/anita-${IDENT}.img

[ -f ${CCACHE} ] || zcat cache.img.gz >${CCACHE}

if [ $# -eq 0 ]; then
	exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
		interact ${INST_IMG}
else
	exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
		--persist --run ". ./init && manitest \"$*\"" \
		boot ${INST_IMG}
fi