Merge pull request #4 from eternalNight/master
Make ucore_lab autotest compatible
This commit is contained in:
@@ -105,7 +105,7 @@ show_msg() {
|
||||
echo $1
|
||||
shift
|
||||
if [ $# -gt 0 ]; then
|
||||
echo "$@" | awk '{printf " %s\n", $0}'
|
||||
echo -e "$@" | awk '{printf " %s\n", $0}'
|
||||
echo
|
||||
fi
|
||||
}
|
||||
@@ -146,9 +146,13 @@ run_qemu() {
|
||||
if [ -n "$brkfun" ]; then
|
||||
# find the address of the kernel $brkfun function
|
||||
brkaddr=`$grep " $brkfun\$" $sym_table | $sed -e's/ .*$//g'`
|
||||
brkaddr_phys=`echo $brkaddr | sed "s/^c0/00/g"`
|
||||
(
|
||||
echo "target remote localhost:$gdbport"
|
||||
echo "break *0x$brkaddr"
|
||||
if [ "$brkaddr" != "$brkaddr_phys" ]; then
|
||||
echo "break *0x$brkaddr_phys"
|
||||
fi
|
||||
echo "continue"
|
||||
) > $gdb_in
|
||||
|
||||
@@ -179,6 +183,8 @@ build_run() {
|
||||
run_qemu
|
||||
|
||||
show_time
|
||||
|
||||
cp $qemu_out .`echo $tag | tr '[:upper:]' '[:lower:]' | sed 's/ /_/g'`.log
|
||||
}
|
||||
|
||||
check_result() {
|
||||
@@ -578,4 +584,3 @@ run_test -prog 'priority' -check default_check \
|
||||
|
||||
## print final-score
|
||||
show_final
|
||||
|
||||
|
||||
Reference in New Issue
Block a user