aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-05-28 07:58:03 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-28 07:58:03 +1000
commit1f91a25bd595274bb55567020c9804a58b9af2de (patch)
tree6f7ac7fed05b5ed9ffd19e8ce5d23a54a013094f /test
parentd03824b0fdf67dffb17c54e45892a1265c37305e (diff)
downloadskiboot-1f91a25bd595274bb55567020c9804a58b9af2de.zip
skiboot-1f91a25bd595274bb55567020c9804a58b9af2de.tar.gz
skiboot-1f91a25bd595274bb55567020c9804a58b9af2de.tar.bz2
Simplify boot-tests makefile
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.check17
1 files changed, 5 insertions, 12 deletions
diff --git a/test/Makefile.check b/test/Makefile.check
index 5e25afa..c951cb8 100644
--- a/test/Makefile.check
+++ b/test/Makefile.check
@@ -3,22 +3,15 @@ check: boot-check
boot-check: skiboot.lid
./test/run_boot_test.sh
-boot-check-op-build-v1.0:
- SKIBOOT_MEM_DUMP=skiboot-op-build-v1.0.dump SKIBOOT_ZIMAGE=`pwd`/opal-ci/images/op-build-v1.0/zImage.epapr ./test/run_boot_test.sh
+OP_BUILD_BOOT_CHECK=op-build-v1.0 op-build-v1.1 op-build-v1.2 op-build-v1.2.1
-boot-check-op-build-v1.1:
- SKIBOOT_MEM_DUMP=skiboot-op-build-v1.1.dump SKIBOOT_ZIMAGE=`pwd`/opal-ci/images/op-build-v1.1/zImage.epapr ./test/run_boot_test.sh
+boot-check-%:
+ SKIBOOT_MEM_DUMP=skiboot-$(@:boot-check-%=%).dump SKIBOOT_ZIMAGE=`pwd`/opal-ci/images/$(@:boot-check-%=%)/zImage.epapr ./test/run_boot_test.sh
-boot-check-op-build-v1.2:
- SKIBOOT_MEM_DUMP=skiboot-op-build-v1.2.dump SKIBOOT_ZIMAGE=`pwd`/opal-ci/images/op-build-v1.2/zImage.epapr ./test/run_boot_test.sh
-
-boot-check-op-build-v1.2.1:
- SKIBOOT_MEM_DUMP=skiboot-op-build-v1.2.1.dump SKIBOOT_ZIMAGE=`pwd`/opal-ci/images/op-build-v1.2.1/zImage.epapr ./test/run_boot_test.sh
-
-boot-tests: boot-check boot-check-op-build-v1.0 boot-check-op-build-v1.1 boot-check-op-build-v1.2 boot-check-op-build-v1.2.1
+boot-tests: boot-check $(OP_BUILD_BOOT_CHECK:%=boot-check-%)
boot-coverage-report: boot-tests extract-gcov skiboot.map all-boot-hardware
- CROSS=$(CROSS) BOOT_TESTS="hello_world boot_test op-build-v1.0 op-build-v1.1 op-build-v1.2 op-build-v1.2.1 ${FSP_GCOV_MACHINES}" ./test/make-boot-coverage-report.sh
+ CROSS=$(CROSS) BOOT_TESTS="hello_world boot_test ${OP_BUILD_BOOT_CHECK} ${FSP_GCOV_MACHINES}" ./test/make-boot-coverage-report.sh
boot-hardware-%:
./external/boot-tests/boot_test.sh -v -p -t $(@:boot-hardware-%=%) -1 skiboot.lid