summaryrefslogtreecommitdiffstats
path: root/test/Makefile.check
blob: db286ac1cb5faf4bf818946f6ce63a6841695a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
check: boot-check boot-smt-check qemu-boot-check debian-jessie-boot-check

boot-check: skiboot.lid
	$(call Q, BOOT TEST , ./test/run_mambo_boot_test.sh, $@)

boot-smt-check: skiboot.lid
	$(call Q, BOOT TEST , THREADS=2 ./test/run_mambo_boot_test.sh, $@)

qemu-boot-check: skiboot.lid
	$(call Q, BOOT TEST , ./test/run_qemu_boot_test.sh , $@)

debian-jessie-boot-check: skiboot.lid
	$(call Q, BOOT TEST , ./test/run_qemu-jessie-debian-installer_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-%: skiboot.lid skiboot.map
	$(call Q, BOOT TEST , SKIBOOT_MEM_DUMP=skiboot-$(@:boot-check-%=%).dump SKIBOOT_ZIMAGE=`pwd`/opal-ci/images/$(@:boot-check-%=%)/zImage.epapr ./test/run_mambo_boot_test.sh, $@)

boot-tests: boot-check $(OP_BUILD_BOOT_CHECK:%=boot-check-%)

boot-coverage-report: boot-tests extract-gcov skiboot.map all-boot-hardware
	$(call Q, BOOT TEST , CROSS=$(CROSS) BOOT_TESTS="hello_world boot_test ${OP_BUILD_BOOT_CHECK} ${FSP_GCOV_MACHINES}" ./test/make-boot-coverage-report.sh, $@)

boot-fsp-hardware-%: skiboot.lid skiboot.map
	$(call Q, BOOT TEST , ./external/boot-tests/boot_test.sh -v -p -b fsp -t $(@:boot-fsp-hardware-%=%) -1 skiboot.lid, $@)
	./external/boot-tests/extract_gcov.sh $(@:boot-fsp-hardware-%=%)

all-boot-hardware: $(FSP_GCOV_MACHINES:%=boot-fsp-hardware-%)
OpenPOWER on IntegriCloud