mirror of
https://github.com/iustin/mt-st.git
synced 2025-12-23 05:45:13 +00:00
The embedding of tests in the Makefile works only for that is there today - a few `--version` and `stinit -p` calls. For expanding the test coverage, as much as it can be done for `mt`, let's use a proper shell test runner. `shelltestrunner` is available in Debian/Ubuntu, so it's likely to be available in other distributions too, and as such should not be a big barrier to contribution.
22 lines
238 B
Plaintext
22 lines
238 B
Plaintext
# Check --version works
|
|
./mt --version
|
|
>>> /VERSION/
|
|
>>>= 0
|
|
|
|
./mt -v
|
|
>>> /VERSION/
|
|
>>>= 0
|
|
|
|
./stinit --version
|
|
>>> /VERSION/
|
|
>>>= 0
|
|
|
|
# Check -h works
|
|
./mt -h
|
|
>>>2 /commands: weof, wset, eof/
|
|
>>>= 0
|
|
|
|
./stinit -h
|
|
>>>2 /Usage: stinit/
|
|
>>>= 0
|