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
72 cp $T/KcList $resdir/ConfigFragment
74 base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'`
75 if test "$base_resdir" != "$resdir" && test -f $base_resdir/bzImage && test -f $base_resdir/vmlinux
81 ln -s $base_resdir/Make*.out $resdir # for kvm-recheck.sh
82 ln -s $base_resdir/.config $resdir # for kvm-recheck.sh
84 touch $resdir/builtkernel
85 elif test "$base_resdir" != "$resdir"
88 ln -s $base_resdir/Make*.out $resdir # for kvm-recheck.sh
89 ln -s $base_resdir/.config $resdir # for kvm-recheck.sh
90 echo Initial build failed, not running KVM, see $resdir.
91 if test -f $resdir/build.wait
93 mv $resdir/build.wait $resdir/build.ready
96 elif kvm-build.sh $T/KcList $resdir
101 cp vmlinux $resdir
102 cp .config $resdir
103 cp Module.symvers $resdir > /dev/null || :
104 cp System.map $resdir > /dev/null || :
107 cp $BOOT_IMAGE $resdir
108 KERNEL=$resdir/${BOOT_IMAGE##*/}
110 touch $resdir/builtkernel
112 echo No identifiable boot image, not running KVM, see $resdir.
115 parse-build.sh $resdir/Make.out $title
118 cp .config $resdir || :
119 echo Build failed, not running KVM, see $resdir.
120 if test -f $resdir/build.wait
122 mv $resdir/build.wait $resdir/build.ready
126 if test -f $resdir/build.wait
128 mv $resdir/build.wait $resdir/build.ready
130 while test -f $resdir/build.ready
145 cpu_count=`configNR_CPUS.sh $resdir/ConfigFragment`
149 echo CPU count limited from $cpu_count to $TORTURE_ALLOTED_CPUS | tee -a $resdir/Warnings
156 qemu_args="$qemu_args `identify_qemu_args "$QEMU" "$resdir/console.log"`"
164 boot_args="`per_version_boot_params "$boot_args" $resdir/.config $seconds`"
173 testid_txt="`dirname $resdir`/testid.txt"
174 touch $resdir/bare-metal
175 echo To run this scenario on bare metal: >> $resdir/bare-metal
176 echo >> $resdir/bare-metal
177 echo " 1." Set your bare-metal build tree to the state shown in this file: >> $resdir/bare-metal
178 echo " " $testid_txt >> $resdir/bare-metal
179 echo " 2." Update your bare-metal build tree"'"s .config based on this file: >> $resdir/bare-metal
180 echo " " $resdir/ConfigFragment >> $resdir/bare-metal
181 echo " 3." Make the bare-metal kernel"'"s build system aware of your .config updates: >> $resdir/ba…
182 echo " " $ 'yes "" | make oldconfig' >> $resdir/bare-metal
183 echo " 4." Build your bare-metal kernel. >> $resdir/bare-metal
184 echo " 5." Boot your bare-metal kernel with the following parameters: >> $resdir/bare-metal
185 echo " " $kboot_args >> $resdir/bare-metal
186 echo " 6." Start the test with the following command: >> $resdir/bare-metal
187 echo " " $ modprobe $TORTURE_MOD $modprobe_args >> $resdir/bare-metal
188 echo " 7." After some time, end the test with the following command: >> $resdir/bare-metal
189 echo " " $ rmmod $TORTURE_MOD >> $resdir/bare-metal
190 echo " 8." Copy your bare-metal kernel"'"s .config file, overwriting this file: >> $resdir/bare-met…
191 echo " " $resdir/.config >> $resdir/bare-metal
192 echo " 9." Copy the console output from just before the modprobe to just after >> $resdir/bare-metal
193 echo " " the rmmod into this file: >> $resdir/bare-metal
194 echo " " $resdir/console.log >> $resdir/bare-metal
195 echo "10." Check for runtime errors using the following command: >> $resdir/bare-metal
196 echo " " $ tools/testing/selftests/rcutorture/bin/kvm-recheck.sh `dirname $resdir` >> $resdir/bar…
197 echo >> $resdir/bare-metal
198 echo Some of the above steps may be skipped if you build your bare-metal >> $resdir/bare-metal
199 echo kernel here: `head -n 1 $testid_txt | sed -e 's/^Build directory: //'` >> $resdir/bare-metal
201 …MU_MEM -kernel $KERNEL -append \"$qemu_append $boot_args\" $TORTURE_QEMU_GDB_ARG > $resdir/qemu-cmd
203 echo "# seconds=$seconds" >> $resdir/qemu-cmd
204 echo "# TORTURE_KCONFIG_GDB_ARG=\"$TORTURE_KCONFIG_GDB_ARG\"" >> $resdir/qemu-cmd
205 echo "# TORTURE_JITTER_START=\"$TORTURE_JITTER_START\"" >> $resdir/qemu-cmd
206 echo "# TORTURE_JITTER_STOP=\"$TORTURE_JITTER_STOP\"" >> $resdir/qemu-cmd
207 echo "# TORTURE_TRUST_MAKE=\"$TORTURE_TRUST_MAKE\"; export TORTURE_TRUST_MAKE" >> $resdir/qemu-cmd
208 echo "# TORTURE_CPU_COUNT=$cpu_count" >> $resdir/qemu-cmd
213 touch $resdir/buildonly
217 kvm-test-1-run-qemu.sh $resdir
218 parse-console.sh $resdir/console.log $title