Index: head/tools/boot/lua-test.sh =================================================================== --- head/tools/boot/lua-test.sh (nonexistent) +++ head/tools/boot/lua-test.sh (revision 329266) @@ -0,0 +1,22 @@ +#!/bin/sh +# $FreeBSD$ + +die() { + echo $* + exit 1 +} + +dir=$1 +cd $(make -V SRCTOP)/stand +obj=$(make -V .OBJDIR) +t=$obj/userboot/test/test +u=$obj/userboot/userboot/userboot.so + +[ -n "$dir" ] || die "No directory specified" +[ -d "$dir" ] || die "Directory $dir doesn't exist" +[ -f "$dir/boot/lua/loader.lua" ] || die "No boot/lua/loader.lua found" +[ -f "$dir/boot/kernel/kernel" ] || die "No kernel to load" +[ -x "$t" ] || die "no userboot test jig found ($t)" +[ -x "$u" ] || die "no userboot.so ($u) found" + +$t -h $dir -b $u Property changes on: head/tools/boot/lua-test.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property