Natools

Check-in [577fa9c3d6]
Login
Overview
Comment:coverage.sh: add more configuration variables for better flexibility
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 577fa9c3d68b97191f493be2bde3e9ca9d75c939
User & Date: nat on 2014-03-11 19:33:20
Other Links: manifest | tags
Context
2014-03-12
21:26
s_expression-interpreters: new package providing a S-expression interpreter which dispatch to client-provided commands check-in: 6e4b5836c5 user: nat tags: trunk
2014-03-11
19:33
coverage.sh: add more configuration variables for better flexibility check-in: 577fa9c3d6 user: nat tags: trunk
2014-03-10
19:54
s_expressions-lockable-tests: extended lockable interface test to reach full coverage of both implementations check-in: d1c2d9f36c user: nat tags: trunk
Changes

Modified coverage.sh from [e3519e56b4] to [4e0df98a36].

1
2
3



4
5
6
7
8
9
10
#!/bin/sh

: ${GNATPATH:=/usr/local/gcc-aux/bin}




${GNATPATH}/gnatmake -p -Ptests -XMODE=Coverage || exit $?
lcov --directory coverage/obj --zerocounters
coverage/bin/test_all >coverage.log
tail -n 4 coverage.log
lcov --gcov-tool ${GNATPATH}/gcov --directory coverage/obj --output coverage/test-info.dat --capture || exit $?
genhtml --output-dir coverage coverage/test-info.dat



>
>
>



|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

: ${GNATPATH:=/usr/local/gcc-aux/bin}
: ${LCOV_DATA:=coverage/test-info.dat}
: ${LCOV_HTML_DIR:=coverage}
: ${TEST_LOG:=coverage.log}

${GNATPATH}/gnatmake -p -Ptests -XMODE=Coverage || exit $?
lcov --directory coverage/obj --zerocounters
coverage/bin/test_all > "${TEST_LOG}"
tail -n 4  "${TEST_LOG}"
lcov --gcov-tool ${GNATPATH}/gcov --directory coverage/obj --output "${LCOV_DATA}" --capture || exit $?
genhtml --output-dir "${LCOV_HTML_DIR}" "${LCOV_DATA}"