From 1b98d599a186f1574537a4ff8c108971d022c7bf Mon Sep 17 00:00:00 2001 From: Yaossg Date: Fri, 6 Dec 2024 21:13:33 +0800 Subject: [PATCH] coverage --- .gitignore | 1 + cov.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 cov.sh diff --git a/.gitignore b/.gitignore index 862f14a..e76bce3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build +cov *.out *.o *.s \ No newline at end of file diff --git a/cov.sh b/cov.sh new file mode 100644 index 0000000..ff67644 --- /dev/null +++ b/cov.sh @@ -0,0 +1,5 @@ +mkdir -p cov && cd cov && +rm * +gcc --coverage -g -O0 ../boot.c +./a.out < ../boot.c > /dev/null +gcov a-boot.c