File: test-include.sh

package info (click to toggle)
ctioga2 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 1,524 kB
  • sloc: ruby: 17,592; sh: 720; lisp: 88; makefile: 27
file content (24 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# test-include.sh: setup for the tests
# Copyright 2009 by Vincent Fourmond.
# You can do whatever you want with this file.

ct_add=""
if [ -z "$NOXPDF" ]; then
    ct_add="$ct_add -X"
fi
if [ "$DEBUG" ]; then
    ct_add="$ct_add --debug"
fi

# We can do code coverage
if [ "$COVERAGE" ]; then
    rm -f .cov                  # To reset the number
    coverage_name=$(basename ${0%%.sh})"-%02d"
    ct_add="--coverage $coverage_name $ct_add"
fi

# The way to invoke ctioga2
ct="ctioga2 $ct_add --echo --math $CT_ADD "
if [ "$RUBY" ]; then
    ct="$RUBY ../bin/$ct"
fi