File: test_makefile.sh

package info (click to toggle)
scotch 7.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,084 kB
  • sloc: ansic: 90,286; makefile: 4,735; fortran: 2,536; yacc: 642; sh: 269; lex: 259
file content (22 lines) | stat: -rwxr-xr-x 637 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
#!/bin/bash

fatal() {
    echo "$0: error occurred, exit"
    exit 1
}

source ci/env_makefile.sh
cd src
make check${JOBCHECK} || fatal
make ptcheck${JOBCHECK} || fatal
make escheck || fatal
find . -print0 | xargs -0 touch
cp libscotch/parser_ll.c libscotch/lex.yy.c
cp libscotch/parser_yy.c libscotch/y.tab.c
cat check/test_scotch_graph_dump.c /tmp/m16x16_b1.c > check/test_scotch_graph_dump2.c
cd ..
gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o ${JOBNAME}.cov --root . || fatal
#if [[ $CI_PIPELINE_SOURCE == "schedule" ]]
#then
#  lcov --capture --directory . --output-file scotch-${JOBNAME}.lcov || fatal
#fi