[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] URL for regression changes
From: |
Stéphane Nicolet |
Subject: |
[gnugo-devel] URL for regression changes |
Date: |
Thu, 7 Aug 2003 00:06:13 +0200 |
Hi all,
This patch for regress.awk adds a url display for
each unexpected fails and passes, which can be
used to quickly see what the problem is.
The default value for the url is at Trevor's site.
Is there a better default value?
It is possible to override this default value by
defining the url variable when invoking awk :
awk -f $srcdir/regress.awk tst=$tstfile url=my_other_url
It is also possible to prevent any url display by
setting url to an empty variable (this gives the
current behaviour; we might actualy want to do
that in eval.sh or regress.sh):
awk -f $srcdir/regress.awk tst=$tstfile url=
Stephane.
*************************
--- ./gnugo-3.5.1-cvs/regression/regress.awk Thu Jun 20 19:05:46 2002
+++ ./gnugo-3.5.1/regression/regress.awk Wed Aug 6 23:47:53 2003
@@ -12,6 +12,7 @@
unexpected_pass = 0;
unexpected_fail = 0;
failures = 0;
+ url = "http://www.public32.com/regress/?";
}
/^[=?][0-9]+ /{
@@ -89,6 +90,8 @@
print num " PASSED";
else
print num " unexpected PASS!";
+ if (url)
+ print " "url""tst":"num;
} else {
if (verbose) {
print num " passed";
@@ -102,6 +105,8 @@
print num " FAILED: Correct '" correct_prn "', got '"
result "'";
else
print num " unexpected FAIL: Correct '" correct_prn "', got
'" result "'";
+ if (url)
+ print " "url""tst":"num;
} else {
if (verbose) {
print num " failed: Correct '" correct_prn "', got '"
result "'";
... /// ... \\\ ...
- [gnugo-devel] URL for regression changes,
Stéphane Nicolet <=