run scripts: add BUILD_HEAD
PATCH 1/1 run scripts: add BUILD_HEAD
Signed-off-by Andrew Jones <[email protected]>
--- .gitignore | 1 + Makefile | 2 ++ run_tests.sh | 2 +- scripts/mkstandalone.sh | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-)
.gitignore +1 -0
@@ -15,3 +15,4 @@ cscope.* /test.log /msr.out /tests +/build-head
Makefile +2 -0
@@ -66,6 +66,8 @@ $(LIBFDT_archive): $(addprefix $(LIBFDT_objdir)/,$(LIBFDT_OBJS)) -include */.*.d */*/.*.d +all: $(shell git rev-parse --verify --short=8 HEAD >build-head 2>/dev/null) + standalone: all @scripts/mkstandalone.sh
run_tests.sh +1 -1
@@ -49,5 +49,5 @@ done RUNTIME_arch_run="./$TEST_DIR/run >> test.log" config=$TEST_DIR/unittests.cfg rm -f test.log -echo > test.log +printf "BUILD_HEAD=$(cat build-head)\n\n" > test.log for_each_unittest $config run
scripts/mkstandalone.sh +2 -0
@@ -45,6 +45,8 @@ generate_test () config_export ARCH_NAME config_export PROCESSOR + echo "echo BUILD_HEAD=$(cat build-head)" + if [ ! -f $kernel ]; then echo 'echo "skip '"$testname"' (test kernel not present)"' echo 'exit 2'
Signature · 1 line
2.4.3
Paolo Bonzini
maintainerQuoted 47 lines · Andrew Jones
Signed-off-by Andrew Jones <[email protected]>--- .gitignore | 1 + Makefile | 2 ++ run_tests.sh | 2 +- scripts/mkstandalone.sh | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-).gitignore +1
-0@@ -15,3 +15,4 @@ cscope.* /test.log /msr.out /tests +/build-headMakefile +2
-0@@ -66,6 +66,8 @@ $(LIBFDT_archive): $(addprefix $(LIBFDT_objdir)/,$(LIBFDT_OBJS)) -include */.*.d */*/.*.d +all: $(shell git rev-parse --verify --short=8 HEAD >build-head 2>/dev/null) + standalone: all @scripts/mkstandalone.shrun_tests.sh +1
-1@@ -49,5 +49,5 @@ done RUNTIME_arch_run="./$TEST_DIR/run >> test.log" config=$TEST_DIR/unittests.cfg rm -f test.log -echo > test.log +printf "BUILD_HEAD=$(cat build-head)\n\n" > test.log for_each_unittest $config runscripts/mkstandalone.sh +0
-0
scripts/mkstandalone.sh generate_test () · line 52
Quoted 8 lines
scripts/mkstandalone.sh +2
-0@@ -45,6 +45,8 @@ generate_test () config_export ARCH_NAME config_export PROCESSOR + echo "echo BUILD_HEAD=$(cat build-head)" + if [ ! -f $kernel ]; then echo 'echo "skip '"$testname"' (test kernel not present)"' echo 'exit 2'
Pushed, thanks. You guys are making me work hard. :)
Paolo