WORKS

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Committer:
cyberjoey
Date:
Sat Oct 22 01:31:58 2016 +0000
Revision:
9:6bb35cef007d
Parent:
1:55a6170b404f
WORKING

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nexpaq 1:55a6170b404f 1 #!/bin/bash
nexpaq 1:55a6170b404f 2 echo
nexpaq 1:55a6170b404f 3 echo Build M2M API unit tests
nexpaq 1:55a6170b404f 4 echo
nexpaq 1:55a6170b404f 5
nexpaq 1:55a6170b404f 6 # Remember to add new test folder to Makefile
nexpaq 1:55a6170b404f 7 make clean
nexpaq 1:55a6170b404f 8 make all
nexpaq 1:55a6170b404f 9
nexpaq 1:55a6170b404f 10 echo
nexpaq 1:55a6170b404f 11 echo Create results
nexpaq 1:55a6170b404f 12 echo
nexpaq 1:55a6170b404f 13 mkdir results
nexpaq 1:55a6170b404f 14
nexpaq 1:55a6170b404f 15 find ./ -name '*.xml' | xargs cp -t ./results/
nexpaq 1:55a6170b404f 16
nexpaq 1:55a6170b404f 17 echo
nexpaq 1:55a6170b404f 18 echo Create coverage document
nexpaq 1:55a6170b404f 19 echo
nexpaq 1:55a6170b404f 20 mkdir coverages
nexpaq 1:55a6170b404f 21 cd coverages
nexpaq 1:55a6170b404f 22
nexpaq 1:55a6170b404f 23 #copy the .gcda & .gcno for all test projects (no need to modify
nexpaq 1:55a6170b404f 24 #cp ../../../source/*.gc* .
nexpaq 1:55a6170b404f 25 #find ../ -name '*.gcda' | xargs cp -t .
nexpaq 1:55a6170b404f 26 #find ../ -name '*.gcno' | xargs cp -t .
nexpaq 1:55a6170b404f 27 #find . -name "test*" -type f -delete
nexpaq 1:55a6170b404f 28 #find . -name "*test*" -type f -delete
nexpaq 1:55a6170b404f 29 #find . -name "*stub*" -type f -delete
nexpaq 1:55a6170b404f 30 #rm -rf main.*
nexpaq 1:55a6170b404f 31
nexpaq 1:55a6170b404f 32 lcov -q -d ../. -c -o app.info
nexpaq 1:55a6170b404f 33 lcov -q -r app.info "/test*" -o app.info
nexpaq 1:55a6170b404f 34 lcov -q -r app.info "/usr*" -o app.info
nexpaq 1:55a6170b404f 35 genhtml --no-branch-coverage app.info
nexpaq 1:55a6170b404f 36 cd ..
nexpaq 1:55a6170b404f 37 echo
nexpaq 1:55a6170b404f 38 echo
nexpaq 1:55a6170b404f 39 echo
nexpaq 1:55a6170b404f 40 echo Have a nice bug hunt!
nexpaq 1:55a6170b404f 41 echo
nexpaq 1:55a6170b404f 42 echo
nexpaq 1:55a6170b404f 43 echo