blob: 3ff9ee17b320360d36687006ad149d4cb3187c03 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001#!/bin/sh
2
3cd
4
5[ "${IDENT}" ] || IDENT=$(mktemp -u XXXXXXXX)
6
7CCACHE=.ccache/anita-${IDENT}.img
8
9[ -f ${CCACHE} ] || zcat cache.img.gz >${CCACHE}
10
11if [ $# -eq 0 ]; then
12 exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
13 interact ${INST_IMG}
14else
15 exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
16 --persist --run ". ./init && manitest \"$*\"" \
17 boot ${INST_IMG}
18fi