Commit Graph

6 Commits (a368e809a33e70e74a2c657a4059fb27c4267a12)

Author SHA1 Message Date
Mike Gerwitz a368e809a3
Support binary comparisons by `expect'
* src/spec.sh
  (__spec_result): Remove variable.
  (__spec_outfile): Add variable.
  (expect): Write stdout to temporary file rather than storing in variable,
    which strips trailing whitespace and does not handle null bytes.
  (shspec::__handle-to): Use `$__spec_outpath'.
  Update copyright years.

* test/test-spec: Add tests for trailing whitespace and binary comparison.
2017-04-19 01:57:42 -04:00
Mike Gerwitz e87d2ff210
Corrected copyright in file headers
Apparently I cannot spell my last name.
2014-06-17 01:35:24 -04:00
Mike Gerwitz 961ebf0255 {_sstack-=>shspec::stack::_} 2014-06-13 21:34:42 -04:00
Mike Gerwitz aa9044cc97 Began move to shspec::* function naming
This is motivated by Google's shell coding standards and will reduce the
odds of a naming conflict with other functions (which, of course, would
cause terribly odd and difficult-to-find bugs, in both our system and
others').

If this seems like it creates long, overly-verbose function names with no
relief in sight---you're right. I'll have a solution for that in a bit, as a
separate project. ...as a part of my never-ending, growing heap of projects.
2014-06-13 21:34:42 -04:00
Mike Gerwitz 7597677086 Added env var value expectation 2014-06-13 21:29:34 -04:00
Mike Gerwitz 61cedf54f0
.sh extension for included files
Motivated by Google's shell coding standards. This makes sense for
non-executable files.
2014-06-13 21:29:24 -04:00