Lines Matching refs:resdir

39 resdir=${3}
40 if test -z "$resdir" -o ! -d "$resdir" -o ! -w "$resdir"
42 echo "kvm-test-1-run.sh :$resdir: Not a writable directory, cannot store results into it"
46 echo ' ---' Kconfig fragment at: $config_template >> $resdir/log
47 touch $resdir/ConfigFragment.input
58 echo " --- $1" >> $resdir/ConfigFragment.input
59 cat $T/Kconfig_args >> $resdir/ConfigFragment.input
73 cp $T/KcList $resdir/ConfigFragment
75 base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'`
76 if test "$base_resdir" != "$resdir" -a -f $base_resdir/bzImage -a -f $base_resdir/vmlinux
82 ln -s $base_resdir/Make*.out $resdir # for kvm-recheck.sh
83 ln -s $base_resdir/.config $resdir # for kvm-recheck.sh
85 touch $resdir/builtkernel
86 elif kvm-build.sh $T/KcList $resdir
91 cp vmlinux $resdir
92 cp .config $resdir
93 cp Module.symvers $resdir > /dev/null || :
94 cp System.map $resdir > /dev/null || :
97 cp $BOOT_IMAGE $resdir
98 KERNEL=$resdir/${BOOT_IMAGE##*/}
100 touch $resdir/builtkernel
102 echo No identifiable boot image, not running KVM, see $resdir.
105 parse-build.sh $resdir/Make.out $title
108 cp .config $resdir || :
109 echo Build failed, not running KVM, see $resdir.
136 cpu_count=`configNR_CPUS.sh $resdir/ConfigFragment`
140 echo CPU count limited from $cpu_count to $TORTURE_ALLOTED_CPUS | tee -a $resdir/Warnings
147 qemu_args="$qemu_args `identify_qemu_args "$QEMU" "$resdir/console.log"`"
155 boot_args="`per_version_boot_params "$boot_args" $resdir/.config $seconds`"
160 …MU_MEM -kernel $KERNEL -append \"$qemu_append $boot_args\" $TORTURE_QEMU_GDB_ARG > $resdir/qemu-cmd
165 touch $resdir/buildonly
170 sed -e 's/$/ 2>\&1 \&/' < $resdir/qemu-cmd > $T/qemu-cmd
171 echo 'echo $! > $resdir/qemu_pid' >> $T/qemu-cmd
174 echo "NOTE: $QEMU either did not run or was interactive" > $resdir/console.log
177 ( . $T/qemu-cmd; wait `cat $resdir/qemu_pid`; echo $? > $resdir/qemu-retval ) &
182 if test -s "$resdir/qemu_pid"
184 qemu_pid=`cat "$resdir/qemu_pid"`
202 if test -z "$qemu_pid" -a -s "$resdir/qemu_pid"
204 qemu_pid=`cat "$resdir/qemu_pid"`
218 echo Completed in $kruntime vs. $seconds >> $resdir/Warnings 2>&1
219 grep "^(qemu) qemu:" $resdir/kvm-test-1-run.sh.out >> $resdir/Warnings 2>&1
220 …ed -n "s/^(qemu) qemu: terminating on signal [0-9]* from pid \([0-9]*\).*$/\1/p" $resdir/Warnings`"
223 echo "ps -fp $killpid" >> $resdir/Warnings 2>&1
224 ps -fp $killpid >> $resdir/Warnings 2>&1
232 if test -z "$qemu_pid" -a -s "$resdir/qemu_pid"
234 qemu_pid=`cat "$resdir/qemu_pid"`
242 oldline="`tail $resdir/console.log`"
247 echo "PID $qemu_pid killed due to run STOP request" >> $resdir/Warnings 2>&1
259 newline="`tail $resdir/console.log`"
264 …last_ts="`tail $resdir/console.log | grep '^\[ *[0-9]\+\.[0-9]\+]' | tail -1 | sed -e 's/^\[ *//' …
275 echo "!!! PID $qemu_pid hung at $kruntime vs. $seconds seconds" >> $resdir/Warnings 2>&1
287 parse-console.sh $resdir/console.log $title