Default to /tmp/loadertest for lua test scripts
This commit is contained in:
parent
3c00d4a760
commit
220ebfad83
@ -2,6 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# Quick script to build a suitable /boot dir somewhere in the tree for testing.
|
||||
# dir may be passed in, will default to /tmp/loadertest if not specified
|
||||
|
||||
die() {
|
||||
echo $*
|
||||
@ -11,7 +12,7 @@ die() {
|
||||
dir=$1
|
||||
cd $(make -V SRCTOP)
|
||||
|
||||
[ -n "$dir" ] || die "No directory specified"
|
||||
[ -n "$dir" ] || dir=/tmp/loadertest
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -12,7 +12,7 @@ obj=$(make -V .OBJDIR)
|
||||
t=$obj/userboot/test/test
|
||||
u=$obj/userboot/userboot/userboot.so
|
||||
|
||||
[ -n "$dir" ] || die "No directory specified"
|
||||
[ -n "$dir" ] || dir=/tmp/loadertest
|
||||
[ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user