[liblouis-liblouisxml] [liblouis/liblouis] 553bdb: tests/harness/runHarness.py: deduplicate error rep...

  • From: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 13 Oct 2014 01:59:07 -0700

  Branch: refs/heads/master
  Home:   https://github.com/liblouis/liblouis
  Commit: 553bdb51b339386e7ac7a267565eea6aa43766d1
      
https://github.com/liblouis/liblouis/commit/553bdb51b339386e7ac7a267565eea6aa43766d1
  Author: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  Date:   2014-09-06 (Sat, 06 Sep 2014)

  Changed paths:
    M tests/harness/runHarness.py

  Log Message:
  -----------
  tests/harness/runHarness.py: deduplicate error reporting code.

Also seems to have a performance improvement.
This is due to not needing to building up error message strings for tests that 
pass.

assert a == b, foo()

Make use of that foo is being called lazily.

$ python -m cProfile  runHarness.py en-ueb-g2-dictionary_harness.txt
...

Ran 99299 tests (99.26% success), with 735 failures and 0 errors.
Before refactor:
16618186 function calls (16616268 primitive calls) in 22.915 seconds
After refactor:
16127571 function calls (16125653 primitive calls) in 21.783 seconds


  Commit: 96befd9354fdbf7770fdacea0c71475be6d85551
      
https://github.com/liblouis/liblouis/commit/96befd9354fdbf7770fdacea0c71475be6d85551
  Author: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  Date:   2014-09-06 (Sat, 06 Sep 2014)

  Changed paths:
    M tests/harness/runHarness.py

  Log Message:
  -----------
  tests/harness/runHarness.py: variable renaming for readibility.


  Commit: 1a28cd0cf5add8885036e734da5ca7caa8d0475c
      
https://github.com/liblouis/liblouis/commit/1a28cd0cf5add8885036e734da5ca7caa8d0475c
  Author: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  Date:   2014-09-06 (Sat, 06 Sep 2014)

  Changed paths:
    M tests/harness/runHarness.py

  Log Message:
  -----------
  tests/harness/runHarness.py: Provide compact form of test failures.

See: 
http://liblouis.org/todo/runharness_should_provide_option_for_Condensed_output/


  Commit: 765f5ab2ae79787dcbbbcb29a247b94cab2621d5
      
https://github.com/liblouis/liblouis/commit/765f5ab2ae79787dcbbbcb29a247b94cab2621d5
  Author: Bert Frees <bertfrees@xxxxxxxxx>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M tests/harness/Makefile.am

  Log Message:
  -----------
  runHarness: enable --compact_output in Makefile


  Commit: 8e2be7602160133e109eb448488d0ebd1ff32a60
      
https://github.com/liblouis/liblouis/commit/8e2be7602160133e109eb448488d0ebd1ff32a60
  Author: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M HACKING
    M NEWS
    M configure.ac
    M contrib/braille-input.el
    M contrib/liblouis.el
    M python/examples/dtbook2brldtbook.xsl
    M python/examples/liblouisxslt.py
    M tables/Makefile.am
    M tables/bengali.cti
    R tables/braille-patternsin.cti
    R tables/chardefsin.cti
    M tables/devanagari.cti
    M tables/digits6Dots.uti
    M tables/digits6DotsPlusDot6.uti
    M tables/digits8Dots.uti
    M tables/en-in-g1.ctb
    M tables/gujarati.cti
    M tables/gurumuki.cti
    M tables/kannada.cti
    M tables/latinLetterDef6Dots.uti
    M tables/latinLetterDef8Dots.uti
    R tables/latinLetterDef8Dotsin.uti
    M tables/litdigits6Dots.uti
    R tables/litdigits6Dotsin.uti
    M tables/loweredDigits6Dots.uti
    R tables/loweredDigits6Dotsin.uti
    M tables/loweredDigits8Dots.uti
    M tables/maketablelist.sh
    M tables/malayalam.cti
    M tables/oriya.cti
    M tables/telugu.cti
    M tests/backtranslate.c
    M tests/check_all_tables.pl
    M tests/check_doctests.py
    M tests/check_endless_loop.pl
    M tests/hash_collision.c
    M tests/inpos.c
    M tests/inpos_match_replace.c
    M tests/lastworditalafter.c
    M tests/logging.c
    M tests/pass0_typebuf.c
    M tests/pass1Only.c
    M tests/pass2.c
    M tests/pass2_inpos.c
    M tests/resolve_table.c
    M tests/resolve_table.h.in
    M tests/squash_space.c
    M tests/typeform.c
    M tests/uplow_with_unicode.c

  Log Message:
  -----------
  Merge branch 'master' into mhameed_runharness_compact_output


  Commit: d000f1827a9b93b23a5c3c96aa0b353fb2490baf
      
https://github.com/liblouis/liblouis/commit/d000f1827a9b93b23a5c3c96aa0b353fb2490baf
  Author: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M NEWS

  Log Message:
  -----------
  add news entry.


  Commit: 0e7cf70e40dbd4b0d259b49819c1437d13b83741
      
https://github.com/liblouis/liblouis/commit/0e7cf70e40dbd4b0d259b49819c1437d13b83741
  Author: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M NEWS
    M tests/harness/Makefile.am
    M tests/harness/runHarness.py

  Log Message:
  -----------
  Merge branch 'mhameed_runharness_compact_output'

* mhameed_runharness_compact_output:
  add news entry.
  runHarness: enable --compact_output in Makefile
  tests/harness/runHarness.py: Provide compact form of test failures.
  tests/harness/runHarness.py: variable renaming for readibility.
  tests/harness/runHarness.py: deduplicate error reporting code.

Fix for todo item: Runharness should provide option for Condensed output


Compare: 
https://github.com/liblouis/liblouis/compare/3191e675bb48...0e7cf70e40db

Other related posts: