Commit Graph

13 Commits (eb3e09b404ab05a6a38f69575e27b9f6ecaf4e7d)

Author SHA1 Message Date
Mike Gerwitz eb3e09b404 Added `silent' expectation handler 2014-05-13 01:18:46 -04:00
Mike Gerwitz bfc9971020 Added `be' support as an expectation handler
E.g. "to be silent".
2014-05-13 01:18:46 -04:00
Mike Gerwitz 8957aad72d Added aok utility function
The name is not intended to sound cute: it means "array okay".

Note that this also demonstrates the need for a silent check: `aok foo' will
fail, but will output an error.
2014-05-13 01:18:46 -04:00
Mike Gerwitz a8d39919d7 `output' expectation handler now supports stdout
This requires a little bit of file descriptor wizardry, but works; I will
need to abstract it for other handlers that will need to do the same thing.
2014-05-13 01:18:46 -04:00
Mike Gerwitz 2b5411d67a
Alright, let's get serious about this!
Added license information and boilerplate for build process; no
documentation yet (aside from test cases); it will be added after a bit more
development in standard Texinfo format.
2014-05-13 01:12:32 -04:00
Mike Gerwitz 89a38a5dc2
Adjusted existing handlers and tests to honor shift argument
This will also ensure that the test cases do not break when new arguments
are added, since the existing conventions will remain unchanged.
2014-05-10 00:42:58 -04:00
Mike Gerwitz b3b3a9fcef
Added shift argument to expectation handlers
This allows the implementation to vary in the number of arguments provided
to the expectation handlers without breaking BC so long as the meanings of
the shifted arguments do not change.
2014-05-10 00:34:01 -04:00
Mike Gerwitz c1d1b66fa9
Added `match' expectation 2014-05-09 23:31:47 -04:00
Mike Gerwitz d2e8d21ac5
Initial `and' declaration support 2014-05-09 21:48:09 -04:00
Mike Gerwitz 61ecb6ad82
Added output expectation handler 2014-05-09 02:04:09 -04:00
Mike Gerwitz b4572d420b
Expectation premise output now piped to expectation handler 2014-05-09 01:59:21 -04:00
Mike Gerwitz 6dbf996f3b
Exit code now passed to expectation handlers 2014-05-09 01:13:26 -04:00
Mike Gerwitz 3d1f9d22a7
Initial concept and working tests for shspec
My original prototype was more feature-rich than this, but this formalizes
it and provides self-tests.

It is indeed odd seeing shell code that does not look like shell.
2014-05-09 00:58:06 -04:00