Mercurial > hg > release > icedtea-web-1.3
changeset 163:79839fc3d5a1
Make output of PAC function tests more jtreg-like to help the buildbot
The buildbot already has support for parsing the results of jtreg tests; this
changeset makes the output of PAC function tests more like jtreg's output.
2011-03-10 Omair Majid <omajid@redhat.com>
* tests/netx/pac/pac-funcs-test.js
(main): Make test summary output more jtreg-like.
(runTests): Change test output format to be more jtreg-like.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Thu, 10 Mar 2011 11:10:37 -0500 |
parents | d91d02e798ff |
children | dfebbb0b44f3 |
files | ChangeLog tests/netx/pac/pac-funcs-test.js |
diffstat | 2 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Mar 09 13:51:48 2011 -0500 +++ b/ChangeLog Thu Mar 10 11:10:37 2011 -0500 @@ -1,3 +1,9 @@ +2011-03-10 Omair Majid <omajid@redhat.com> + + * tests/netx/pac/pac-funcs-test.js + (main): Make test summary output more jtreg-like. + (runTests): Change test output format to be more jtreg-like. + 2011-03-09 Denis Lila <dlila@redhat.com> * netx/net/sourceforge/jnlp/Parser.java
--- a/tests/netx/pac/pac-funcs-test.js Wed Mar 09 13:51:48 2011 -0500 +++ b/tests/netx/pac/pac-funcs-test.js Thu Mar 10 11:10:37 2011 -0500 @@ -25,17 +25,15 @@ testDateRange(); testTimeRange(); - java.lang.System.out.println(testsFailed + " of " + (testsFailed + testsPassed) + " tests failed"); + java.lang.System.out.println("Test results: passed: " + testsPassed + "; failed: " + testsFailed + ";"); } function runTests(name, tests) { - java.lang.System.out.println("Testing: " + name.name); var undefined_var; for ( var i = 0; i < tests.length; i++) { - java.lang.System.out.print("Test " + (i + 1) + ": "); var expectedVal = tests[i][0]; var args = tests[i].slice(1); var returnVal; @@ -45,12 +43,11 @@ returnVal = e; } if (returnVal === expectedVal) { - java.lang.System.out.println("Passed."); + java.lang.System.out.println("Passed: " + name.name + "(" + args.join(", ") + ")"); testsPassed++; } else { - java.lang.System.out.println("FAILED."); - java.lang.System.out.println(name.name + "(" + args.join(", ") + ")"); - java.lang.System.out.println("Expected '" + expectedVal + "' but got '" + returnVal + "'"); + java.lang.System.out.println("FAILED: " + name.name + "(" + args.join(", ") + ")"); + java.lang.System.out.println(" Expected '" + expectedVal + "' but got '" + returnVal + "'"); testsFailed++; } }