commit 78b0d98544d1b540319775ba393ba3a1b1a42dda
parent a006c880a502973a7f6759d14da62dc8f10dd006
Author: Kyle Milz <kyle@0x30.net>
Date: Sun, 14 Aug 2016 22:36:56 -0600
src: stop printing number of log files
Diffstat:
16 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/src/check.in b/src/check.in
@@ -9,7 +9,7 @@ function err {
dir=`pwd`
if [ $# -eq 1 ]; then
- [[ ${1} = -* ]] && err "usage: citrun-check [dir]"
+ [[ ${1} = -* ]] && err "Usage: citrun-check [dir]"
dir="${1}"
fi
[ -d $dir ] || err "citrun-check: $dir: no such directory"
@@ -83,10 +83,9 @@ done
[ -t 1 ] && echo done
[ -t 1 ] && echo
-echo Summary:
-printf "%10i %s\n" $log_files "Log files found"
-[ $log_files -eq 0 ] && exit 0
+[ $log_files -eq 0 ] && err "No log files found."
+echo Summary:
let i=0
while [ $i -lt $desc_len ]; do
if [ ${COUNT[$i]} -eq 0 ]; then
diff --git a/t/check_empty.t b/t/check_empty.t
@@ -8,8 +8,7 @@ echo 1..2
$TEST_TOOLS/citrun-check > check.out
cat <<EOF > check.good
-Summary:
- 0 Log files found
+No log files found.
EOF
diff -u check.good check.out && echo ok
diff --git a/t/inst_binop.t b/t/inst_binop.t
@@ -47,7 +47,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_correct.t b/t/inst_correct.t
@@ -30,7 +30,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Application link commands
diff --git a/t/inst_dowhile.t b/t/inst_dowhile.t
@@ -25,7 +25,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_for.t b/t/inst_for.t
@@ -25,7 +25,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_funcdef.t b/t/inst_funcdef.t
@@ -29,7 +29,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_if.t b/t/inst_if.t
@@ -35,7 +35,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_link_multiple.t b/t/inst_link_multiple.t
@@ -38,7 +38,6 @@ $TEST_TOOLS/citrun-check > check.out && echo ok
cat <<EOF > check.good
Summary:
- 1 Log files found
4 Calls to the rewrite tool
3 Source files used as input
1 Application link commands
diff --git a/t/inst_macro.t b/t/inst_macro.t
@@ -26,7 +26,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_return.t b/t/inst_return.t
@@ -35,7 +35,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_src_ext.t b/t/inst_src_ext.t
@@ -15,7 +15,6 @@ $TEST_TOOLS/citrun-wrap cc -c main.C
cat <<EOF > check.good
Summary:
- 1 Log files found
5 Calls to the rewrite tool
4 Source files used as input
4 Rewrite successes
diff --git a/t/inst_stdout.t b/t/inst_stdout.t
@@ -16,7 +16,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Application link commands
diff --git a/t/inst_switch.t b/t/inst_switch.t
@@ -37,7 +37,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes
diff --git a/t/inst_two_src.t b/t/inst_two_src.t
@@ -20,7 +20,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
2 Source files used as input
1 Application link commands
diff --git a/t/inst_while.t b/t/inst_while.t
@@ -27,7 +27,6 @@ EOF
cat <<EOF > check.good
Summary:
- 1 Log files found
1 Calls to the rewrite tool
1 Source files used as input
1 Rewrite successes