Date: Fri, 16 Feb 2018 20:26:18 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329407 - head/tools/boot Message-ID: <201802162026.w1GKQI7k009223@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Feb 16 20:26:18 2018 New Revision: 329407 URL: https://svnweb.freebsd.org/changeset/base/329407 Log: lua-test: Image the loader test directory if it doesn't exist yet Modified: head/tools/boot/lua-test.sh Modified: head/tools/boot/lua-test.sh ============================================================================== --- head/tools/boot/lua-test.sh Fri Feb 16 20:23:48 2018 (r329406) +++ head/tools/boot/lua-test.sh Fri Feb 16 20:26:18 2018 (r329407) @@ -1,19 +1,22 @@ #!/bin/sh # $FreeBSD$ +# Will image the test directory (default /tmp/loadertest) if it doesn't exist + die() { echo $* exit 1 } dir=$1 +scriptdir=$(dirname $(realpath $0)) cd $(make -V SRCTOP)/stand obj=$(make -V .OBJDIR) t=$obj/userboot/test/test u=$obj/userboot/userboot/userboot.so [ -n "$dir" ] || dir=/tmp/loadertest -[ -d "$dir" ] || die "Directory $dir doesn't exist" +[ -d "$dir" ] || ${scriptdir}/lua-img.sh ${dir} [ -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)"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802162026.w1GKQI7k009223>