mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
24 lines
449 B
Bash
Executable File
24 lines
449 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BUILD_DIR=build
|
|
REPORT_DIR=report
|
|
|
|
cd ../
|
|
rm -rf $BUILD_DIR
|
|
mkdir $BUILD_DIR
|
|
cd $BUILD_DIR
|
|
cmake ../
|
|
make -j 16
|
|
|
|
cd tests/
|
|
|
|
lcov -c -i -d ./ -o init.info
|
|
./dde_dock_unit_test
|
|
lcov -c -d ./ -o cover.info
|
|
lcov -a init.info -a cover.info -o total.info
|
|
lcov -r total.info "*/tests/*" "*/usr/include*" "*build/src*" -o final.info
|
|
|
|
rm -rf ../../tests/$REPORT_DIR
|
|
mkdir -p ../../tests/$REPORT_DIR
|
|
genhtml -o ../../tests/$REPORT_DIR final.info
|