File: save_all.sh

package info (click to toggle)
blcr 0.8.5-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,728 kB
  • ctags: 3,413
  • sloc: ansic: 31,999; sh: 12,633; makefile: 929; perl: 401; cpp: 79; java: 9
file content (13 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e
. ${cr_testsdir:-`dirname $0`}/shellinit
context=Context1
#
cp -f ${cr_testsdir}/save_aux tstexe
trap "\rm -f $context tstexe tstmap[12] 2>/dev/null" 0
rm -f tstmap[12]
${cr_run} ./tstexe "--file $context --clobber --save-all" S P
# Unlink and overwrite exec; unlink mmap()ed files
rm -f tstexe tstmap[12]
cp /dev/null tstexe
${cr_restart} $context