diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-27 17:01:37 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-27 17:01:37 +1000 |
commit | d03824b0fdf67dffb17c54e45892a1265c37305e (patch) | |
tree | 71e99c9539a97713b69666bab08a71e8c7d501d4 /test | |
parent | 32253c5110db72715b8e144165d79bb327571dc4 (diff) | |
download | skiboot-d03824b0fdf67dffb17c54e45892a1265c37305e.zip skiboot-d03824b0fdf67dffb17c54e45892a1265c37305e.tar.gz skiboot-d03824b0fdf67dffb17c54e45892a1265c37305e.tar.bz2 |
Support doing physical machine boot tests with gcov
We can boot FSP machines and extract GCOV coverage report from them
combining with Mambo reports
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.check | 10 | ||||
-rwxr-xr-x | test/make-boot-coverage-report.sh | 5 |
2 files changed, 11 insertions, 4 deletions
diff --git a/test/Makefile.check b/test/Makefile.check index e2b960d..5e25afa 100644 --- a/test/Makefile.check +++ b/test/Makefile.check @@ -17,5 +17,11 @@ boot-check-op-build-v1.2.1: 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-coverage-report: boot-tests extract-gcov skiboot.map - CROSS=$(CROSS) ./test/make-boot-coverage-report.sh +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 + +boot-hardware-%: + ./external/boot-tests/boot_test.sh -v -p -t $(@:boot-hardware-%=%) -1 skiboot.lid + ./external/boot-tests/extract_gcov.sh $(@:boot-hardware-%=%) + +all-boot-hardware: $(FSP_GCOV_MACHINES:%=boot-hardware-%)
\ No newline at end of file diff --git a/test/make-boot-coverage-report.sh b/test/make-boot-coverage-report.sh index 7e07231..c4d5a0d 100755 --- a/test/make-boot-coverage-report.sh +++ b/test/make-boot-coverage-report.sh @@ -16,12 +16,13 @@ function process_dump { find .|grep '\.gcda$'|xargs rm -f -BOOT_TESTS="hello_world boot_test op-build-v1.0 op-build-v1.1 op-build-v1.2 op-build-v1.2.1" - for i in $BOOT_TESTS; do if [ -f ./external/mambo/skiboot-$i.dump ]; then process_dump ./external/mambo/skiboot-$i.dump skiboot-$i.info fi + if [ -f ./skiboot-$i.dump ]; then + process_dump ./skiboot-$i.dump skiboot-$i.info + fi done if [ -z "$LCOV_INFO_FILES" ]; then |