File: gen.sh

package info (click to toggle)
0ad 0.0.23.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 78,292 kB
  • sloc: cpp: 245,166; ansic: 200,249; python: 13,754; sh: 6,104; perl: 4,620; makefile: 977; xml: 810; java: 533; ruby: 229; erlang: 46; pascal: 30; sql: 21; tcl: 4
file content (33 lines) | stat: -rwxr-xr-x 999 bytes parent folder | download | duplicates (3)
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
30
31
32
33
#!/bin/sh

# Run "update-workspaces.sh --coverage" (in the appropriate directory) then
# do "make test Collada config=debug", before running this script.
# Also make sure you don't build via ccache. Also you might need a patch like
# http://ltp.cvs.sourceforge.net/viewvc/ltp/utils/analysis/lcov/bin/lcov?r1=1.33&r2=1.34

rm -f app.info

for APPDIR in ../workspaces/gcc/obj/*; do
  lcov -d "$APPDIR" --zerocounters
  lcov -d "$APPDIR" -b ../workspaces/gcc --capture --initial -o temp.info
  if [ -e app.info ]; then
    lcov -a app.info -a temp.info -o app.info
  else
    mv temp.info app.info
  fi
done

(cd ../../binaries/system/; ./test_dbg)

for APPDIR in ../workspaces/gcc/obj/*; do
  lcov -d "$APPDIR" -b ../workspaces/gcc --capture -o temp.info &&
    lcov -a app.info -a temp.info -o app.info
done

lcov -r app.info '/usr/*' -o app.info
lcov -r app.info '*/libraries/*' -o app.info
lcov -r app.info '*/third_party/*' -o app.info

rm -rf output
mkdir output
(cd output; genhtml ../app.info)