~mpu/qbe

Print total number of tests run to get a better view of how much is broken. v1 PROPOSED

Tobias Heider: 2
 Print total number of tests run to get a better view of how much is broken.
 Print total number of tests run to get a better view of how much is broken.

 2 files changed, 6 insertions(+), 2 deletions(-)
Eh, why not? I merged a slightly modified version in master.

Cheers.
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mpu/qbe/patches/48816/mbox | git am -3
Learn more about email & git

[PATCH] Print total number of tests run to get a better view of how much is broken. Export this patch

---
This seems to be quite helpful when working on a new backend.

Before: 14 test(s) failed!
After: 14 test(s) of 51 failed!
 tools/test.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/test.sh b/tools/test.sh
index fa782c3..b57a024 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -196,15 +196,17 @@ fi
case "$1" in
"all")
	fail=0
	count=0
	for t in $dir/../test/[!_]*.ssa
	do
		once $t
		fail=`expr $fail + $?`
		count=`expr $count + 1`
	done
	if test $fail -ge 1
	then
		echo
		echo "$fail test(s) failed!"
		echo "$fail test(s) of $count failed!"
	else
		echo
		echo "All is fine!"
-- 
2.43.0

[PATCH] Print total number of tests run to get a better view of how much is broken. Export this patch

---
 tools/test.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/test.sh b/tools/test.sh
index fa782c3..8c3802a 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -196,15 +196,17 @@ fi
case "$1" in
"all")
	fail=0
	count=0
	for t in $dir/../test/[!_]*.ssa
	do
		once $t
		fail=`expr $fail + $?`
		count=`expr $count + 1`
	done
	if test $fail -ge 1
	then
		echo
		echo "$fail test(s) failed!"
		echo "$fail of $count test(s) failed!"
	else
		echo
		echo "All is fine!"
-- 
2.43.0
Eh, why not? I merged a slightly modified version in master.

Cheers.