Merge pull request #4 from eternalNight/master

Make ucore_lab autotest compatible
This commit is contained in:
chyyuu
2015-03-15 17:32:44 +08:00
11 changed files with 156 additions and 19 deletions

View File

@@ -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() {
@@ -636,4 +642,3 @@ run_test -prog 'matrix' -check default_check \
## print final-score
show_final