Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Skipping tests (was Re: PATCH: ztrftime: Pass everything ...)



On Jul 10,  2:37pm, Peter Stephenson wrote:
} Subject: Re: PATCH: ztrftime: Pass everything unhandled to the system strf
}
} On Thu, 9 Jul 2015 11:17:56 +0100
} Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
} > 
} > OK, the printing "skipped" trick looks like it should cover all bases.
} > Still, it ought to be possible to make it redundant within the test
} > framework...
} 
} +  # Test skipping early to ensure we run the remainder...
} +  if [[ -n $ZTST_test_skip ]]; then
} +    ZTST_skip="Test system verification for skipping"
} +  else
} +    print "This is standard output"
} +    print "This is standard error" >&2
} +    false
} +  fi
} +1:Test skipping if ZTST_test_skip is set
} +>This is standard output
} +?This is standard error

OK, so the way we actually test THIS is e.g.

    ZTST_test_skip=skip make check TESTNUM=A01

And that seems to correctly print "Test system verification for skipping"
followed by actually running all the other tests in the script.  Great!

Given that we can now skip individual test cases as well as entire test
scripts, should we start counting the individual test cases to report
the number of successful/failed tests, rather than counting only the
number of scripts that ran without any failures?



Messages sorted by: Reverse Date, Date, Thread, Author