mbed-os
Fork of mbed-os by
features/FEATURE_COMMON_PAL/mbed-client-c/xsl_script.sh@0:f269e3021894, 2016-10-23 (annotated)
- Committer:
- elessair
- Date:
- Sun Oct 23 15:10:02 2016 +0000
- Revision:
- 0:f269e3021894
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | #!/bin/bash |
elessair | 0:f269e3021894 | 2 | |
elessair | 0:f269e3021894 | 3 | # Copyright (c) 2015 ARM Limited. All rights reserved. |
elessair | 0:f269e3021894 | 4 | # SPDX-License-Identifier: Apache-2.0 |
elessair | 0:f269e3021894 | 5 | # Licensed under the Apache License, Version 2.0 (the License); you may |
elessair | 0:f269e3021894 | 6 | # not use this file except in compliance with the License. |
elessair | 0:f269e3021894 | 7 | # You may obtain a copy of the License at |
elessair | 0:f269e3021894 | 8 | # |
elessair | 0:f269e3021894 | 9 | # * http://www.apache.org/licenses/LICENSE-2.0 |
elessair | 0:f269e3021894 | 10 | # |
elessair | 0:f269e3021894 | 11 | # Unless required by applicable law or agreed to in writing, software |
elessair | 0:f269e3021894 | 12 | # distributed under the License is distributed on an AS IS BASIS, WITHOUT |
elessair | 0:f269e3021894 | 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
elessair | 0:f269e3021894 | 14 | # See the License for the specific language governing permissions and |
elessair | 0:f269e3021894 | 15 | # limitations under the License. |
elessair | 0:f269e3021894 | 16 | |
elessair | 0:f269e3021894 | 17 | echo |
elessair | 0:f269e3021894 | 18 | echo "Creating report" |
elessair | 0:f269e3021894 | 19 | echo |
elessair | 0:f269e3021894 | 20 | |
elessair | 0:f269e3021894 | 21 | echo '<?xml version="1.0" encoding="UTF-8" ?> |
elessair | 0:f269e3021894 | 22 | <?xml-stylesheet type="text/xsl" href="junit_xsl.xslt"?> |
elessair | 0:f269e3021894 | 23 | <list>' >> lcov/index.xml |
elessair | 0:f269e3021894 | 24 | |
elessair | 0:f269e3021894 | 25 | for f in lcov/results/*.xml |
elessair | 0:f269e3021894 | 26 | do |
elessair | 0:f269e3021894 | 27 | name=${f##*/} |
elessair | 0:f269e3021894 | 28 | echo '<entry name="results/'"$name"'" />'>> lcov/index.xml |
elessair | 0:f269e3021894 | 29 | done |
elessair | 0:f269e3021894 | 30 | |
elessair | 0:f269e3021894 | 31 | echo '</list>' >> lcov/index.xml |
elessair | 0:f269e3021894 | 32 | |
elessair | 0:f269e3021894 | 33 | echo |
elessair | 0:f269e3021894 | 34 | echo "Report created to lcov/index.xml (outputs html)" |
elessair | 0:f269e3021894 | 35 | echo |