Hi,

Link to CR: http://cr.opensolaris.org/~bhall/bug-2664/
Link to BUG: http://defect.opensolaris.org/bz/show_bug.cgi?id=2664

These are basically just enhancements (some of them from code reviews of 2627)
to the test suite.

- More verbose failure reporting:
        * FAILURE (successes=4, failures=2, errors=1, mismatches=2)

- Merge {api,cli}-complete.py into one file (run.py)
        * This allows for a single baseline file (baseline.txt) instead of two
          separate ones.

- Change run.py to be the main way of running the test harness:
        * All the make targets still work, but they call run.py instead of
          setup.py (you can still run make test, test-verbose, test-generate,
          etc.)
        * This gets rid of the ugly passing arguments through setup.py just
          to have them re-parsed in *-complete.py
        * Gets rid of code duplication in *-complete.py which will continue to
          get worse as we add more stuff.

- Add -o <regex> (--only) option for tests:
        * The -o option takes a regex to determine what tests to run, this
          lets you do things like:
                - python run.py -o cli (runs only cli tests)
                - python run.py -o api (runs only api tests)
                - python run.py -o depot (runs only depot related tests)
                - python run.py -o mytestname (runs single test)
                - .. you get the idea.

- Add the -b option for specifying which baseline file to use (if you have an
  alternate one)

- Baseline results are now sorted (this should help with diffs :))

- Moved memleaks to a separate Makefile target; I can move it back if people
  feel strongly about it but I'm tired of having to scroll up to see if the
  actual test suite failed.  A lot of the time I find myself just wanting to
  run the test cases.. do others agree?  Maybe we can make the 'make test'
  target run the test suite + memleaks, and provide a different target for
  only running the test cases.

- There is one part of bug 2664 that I didn't address; Brock's suggestion of
  displaying the assertion/error after a failed test -- I'll file that in
  another bug since I'm not sure of a good way of doing that yet.

Comments, suggestions?

Thanks,
Brad
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to