Commit Graph
6 Commits
Author SHA1 Message Date
Matthew MartinandDaniel Shahaf d99aa58aaa test harness: Run each test as a single subshell.
That allows tests to be completely independent of each other, so tests that
change global state — such as modify environment variables, define functions or
aliases, or hash commands — will not affect other tests, without needing an
explicit cleanup step.

This enables testing path-tilde-home with and without $HOME set, which is part
of issue #216.

While at it, convert the test harness to TAP.  This fixes issue #180 by adding
support for "not ok 42 # TODO" output.

This commit assumes that 'grep' supports POSIX-compliant -q and -v flags.

Patch-by: Matthew Martin <phy1729@gmail.com>
2015-10-23 03:31:00 +00:00
Matthew MartinandDaniel Shahaf 72b1abd17d Makefile: declare PHONY targets 2015-10-20 00:26:43 +00:00
Matthew Martin 94191f0731 Makefile: Add default for INSTALL 2015-10-19 01:45:15 -05:00
Matthew Martin 2883c9582d Makefile: exit non-zero for a failed test 2015-10-19 01:45:15 -05:00
Matthew Martin 83c3f96109 Makefile: Add test target 2015-10-19 01:45:15 -05:00
Matthew Martin 7aeadfe01b Add Makefile 2015-10-19 01:45:15 -05:00