mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-11-07 09:20:29 +00:00
effcd5b9ff
Signed-off-by: Elijah Newren <newren@gmail.com>
29 lines
484 B
Bash
Executable File
29 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
|
|
orig_dir=$(cd $(dirname $0) && pwd -P)
|
|
tmpdir=$(mktemp -d)
|
|
|
|
cat <<EOF >$tmpdir/.coveragerc
|
|
[run]
|
|
parallel=true
|
|
data_file=$tmpdir/.coverage
|
|
EOF
|
|
|
|
cat <<EOF >$tmpdir/sitecustomize.py
|
|
import coverage
|
|
coverage.process_startup()
|
|
EOF
|
|
|
|
export COVERAGE_PROCESS_START=$tmpdir/.coveragerc
|
|
export PYTHONPATH=$tmpdir:
|
|
|
|
|
|
ls t939*.sh | xargs -n 1 bash
|
|
|
|
cd $tmpdir
|
|
python3-coverage combine
|
|
python3-coverage html -d $orig_dir/report
|
|
python3-coverage report -m
|
|
cd $orig_dir
|
|
rm -rf $tmpdir
|