Lines Matching refs:resdir

38 resdir=${2}
39 if test -z "$resdir" -o ! -d "$resdir" -o ! -w "$resdir"
41 echo "kvm-test-1-run.sh :$resdir: Not a writable directory, cannot store results into it"
45 echo ' ---' Kconfig fragment at: $config_template >> $resdir/log
46 touch $resdir/ConfigFragment.input
57 echo " --- $1" >> $resdir/ConfigFragment.input
58 cat $T/Kconfig_args >> $resdir/ConfigFragment.input
71 cp $T/KcList $resdir/ConfigFragment
73 base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'`
74 if test "$base_resdir" != "$resdir" && test -f $base_resdir/bzImage && test -f $base_resdir/vmlinux
80 ln -s $base_resdir/Make*.out $resdir # for kvm-recheck.sh
81 ln -s $base_resdir/.config $resdir # for kvm-recheck.sh
83 touch $resdir/builtkernel
84 elif test "$base_resdir" != "$resdir"
87 ln -s $base_resdir/Make*.out $resdir # for kvm-recheck.sh
88 ln -s $base_resdir/.config $resdir # for kvm-recheck.sh
89 echo Initial build failed, not running KVM, see $resdir.
90 if test -f $resdir/build.wait
92 mv $resdir/build.wait $resdir/build.ready
95 elif kvm-build.sh $T/KcList $resdir
100 cp vmlinux $resdir
101 cp .config $resdir
102 cp Module.symvers $resdir > /dev/null || :
103 cp System.map $resdir > /dev/null || :
106 cp $BOOT_IMAGE $resdir
107 KERNEL=$resdir/${BOOT_IMAGE##*/}
109 touch $resdir/builtkernel
111 echo No identifiable boot image, not running KVM, see $resdir.
114 parse-build.sh $resdir/Make.out $title
117 cp .config $resdir || :
118 echo Build failed, not running KVM, see $resdir.
119 if test -f $resdir/build.wait
121 mv $resdir/build.wait $resdir/build.ready
125 if test -f $resdir/build.wait
127 mv $resdir/build.wait $resdir/build.ready
129 while test -f $resdir/build.ready
144 cpu_count=`configNR_CPUS.sh $resdir/ConfigFragment`
148 echo CPU count limited from $cpu_count to $TORTURE_ALLOTED_CPUS | tee -a $resdir/Warnings
155 qemu_args="$qemu_args `identify_qemu_args "$QEMU" "$resdir/console.log"`"
163 boot_args="`per_version_boot_params "$boot_args" $resdir/.config $seconds`"
172 testid_txt="`dirname $resdir`/testid.txt"
173 touch $resdir/bare-metal
174 echo To run this scenario on bare metal: >> $resdir/bare-metal
175 echo >> $resdir/bare-metal
176 echo " 1." Set your bare-metal build tree to the state shown in this file: >> $resdir/bare-metal
177 echo " " $testid_txt >> $resdir/bare-metal
178 echo " 2." Update your bare-metal build tree"'"s .config based on this file: >> $resdir/bare-metal
179 echo " " $resdir/ConfigFragment >> $resdir/bare-metal
180 echo " 3." Make the bare-metal kernel"'"s build system aware of your .config updates: >> $resdir/ba…
181 echo " " $ 'yes "" | make oldconfig' >> $resdir/bare-metal
182 echo " 4." Build your bare-metal kernel. >> $resdir/bare-metal
183 echo " 5." Boot your bare-metal kernel with the following parameters: >> $resdir/bare-metal
184 echo " " $kboot_args >> $resdir/bare-metal
185 echo " 6." Start the test with the following command: >> $resdir/bare-metal
186 echo " " $ modprobe $TORTURE_MOD $modprobe_args >> $resdir/bare-metal
187 echo " 7." After some time, end the test with the following command: >> $resdir/bare-metal
188 echo " " $ rmmod $TORTURE_MOD >> $resdir/bare-metal
189 echo " 8." Copy your bare-metal kernel"'"s .config file, overwriting this file: >> $resdir/bare-met…
190 echo " " $resdir/.config >> $resdir/bare-metal
191 echo " 9." Copy the console output from just before the modprobe to just after >> $resdir/bare-metal
192 echo " " the rmmod into this file: >> $resdir/bare-metal
193 echo " " $resdir/console.log >> $resdir/bare-metal
194 echo "10." Check for runtime errors using the following command: >> $resdir/bare-metal
195 echo " " $ tools/testing/selftests/rcutorture/bin/kvm-recheck.sh `dirname $resdir` >> $resdir/bar…
196 echo >> $resdir/bare-metal
197 echo Some of the above steps may be skipped if you build your bare-metal >> $resdir/bare-metal
198 echo kernel here: `head -n 1 $testid_txt | sed -e 's/^Build directory: //'` >> $resdir/bare-metal
200 …MU_MEM -kernel $KERNEL -append \"$qemu_append $boot_args\" $TORTURE_QEMU_GDB_ARG > $resdir/qemu-cmd
202 echo "# seconds=$seconds" >> $resdir/qemu-cmd
203 echo "# TORTURE_KCONFIG_GDB_ARG=\"$TORTURE_KCONFIG_GDB_ARG\"" >> $resdir/qemu-cmd
204 echo "# TORTURE_JITTER_START=\"$TORTURE_JITTER_START\"" >> $resdir/qemu-cmd
205 echo "# TORTURE_JITTER_STOP=\"$TORTURE_JITTER_STOP\"" >> $resdir/qemu-cmd
206 echo "# TORTURE_TRUST_MAKE=\"$TORTURE_TRUST_MAKE\"; export TORTURE_TRUST_MAKE" >> $resdir/qemu-cmd
207 echo "# TORTURE_CPU_COUNT=$cpu_count" >> $resdir/qemu-cmd
212 touch $resdir/buildonly
216 kvm-test-1-run-qemu.sh $resdir
217 parse-console.sh $resdir/console.log $title