Skip to content

Commit

Permalink
adding verbose and debug the location of testcase_driver.cc.gcda
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jul 17, 2024
1 parent a05dde0 commit 2cd5fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
4 changes: 3 additions & 1 deletion tools/ci_build/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ def adb_shell(*args, **kwargs):
adb_shell("cd /data/local/tmp && tar -zcf gcda_files.tar.gz *.dir")
adb_pull("/data/local/tmp/gcda_files.tar.gz", cwd)
os.chdir(cwd)
run_subprocess("tar -zxf gcda_files.tar.gz -C CMakeFiles".split(" "))
run_subprocess("tar -zxf gcda_files.tar.gz -C CMakeFiles".split(" "),cwd=cwd)
run_subprocess(f"find {source_dir} -name testcase_driver.cc.gcda",cwd=cwd)
cmd = ["gcovr", "-s", "-r"]
cmd.append(os.path.join(source_dir, "onnxruntime"))
cmd.extend([".", "-o"])
cmd.append(os.path.join(cwd, "coverage_rpt.txt"))
cmd.append("--verbose")
run_subprocess(cmd, cwd=os.path.join(cwd, "CMakeFiles"))


Expand Down
36 changes: 0 additions & 36 deletions tools/ci_build/github/android/run_nnapi_code_coverage.sh

This file was deleted.

0 comments on commit 2cd5fc8

Please sign in to comment.