Debian Codegraph @

src/tests/test-recoverage.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
4 #
5 # SPDX-License-Identifier: GPL-3.0-only
6
7 BUILD_DIR=build
8 REPORT_DIR=report
9
10 cd ../../
11
12 rmscip-shell system . . rm. -rf $BUILD_DIR
13 mkdirscip-shell system . . mkdir. $BUILD_DIR
14
15 cd $BUILD_DIR
16
17 qmake ../
18 makescip-shell system . . make.
19
20 cd ../src/tests/
21 rmscip-shell system . . rm. -rf $BUILD_DIR
22 mkdirscip-shell system . . mkdir. $BUILD_DIR
23 cd $BUILD_DIR
24
25 qmake CONFIG+=debug ../
26
27 TESTARGS="--gtest_output=xml:deepin_test_report_boot_maker.xml" makescip-shell system . . make. check -j$(nprocscip-shell system . . nproc.)
28
29 mvscip-shell system . . mv. asan_loader.log* asan_dde-boot-maker.log
30
31 [scip-shell system . . `[`. -e asan_loader.log* ] && mvscip-shell system . . mv. asan_loader.log* asan_dde-boot-maker.log || touchscip-shell system . . touch. asan_dde-boot-maker.log
32
33 lcov -d ./ -c -o coverage_all.info
34
35 lcov --remove coverage_all.info "*/tests/*" "*/usr/include*" --output-file coverage.info
36 cd ..
37 genhtml -o $REPORT_DIR $BUILD_DIR/coverage.info
38 #rm -rf $BUILD_DIR
39
40 exit 0