Commit 0c2d8977 authored by Ian Lynagh's avatar Ian Lynagh

Add a test that the --help and --version flags behave properly

parent 63731b1e
......@@ -435,3 +435,12 @@ test200:
2566::
if $(TEST_HC) -c foo.bar; then false else true; fi
.PHONY: mode001
mode001:
$(TEST_HC) --interactive --help | head -1
$(TEST_HC) --help --interactive | head -1
$(TEST_HC) --version --help | head -1
$(TEST_HC) --help --version | sed "s/, version.*//"
$(TEST_HC) --interactive --version | sed "s/, version.*//"
$(TEST_HC) --version --interactive | sed "s/, version.*//"
......@@ -196,3 +196,7 @@ test('pragma001', normal, compile, [''])
test('pragma002', normal, compile, [''])
test('2499', normal, compile_fail, [''])
test('mode001', normal, run_command,
['$MAKE -s --no-print-directory mode001'])
Usage:
Usage:
Usage:
The Glorious Glasgow Haskell Compilation System
The Glorious Glasgow Haskell Compilation System
The Glorious Glasgow Haskell Compilation System
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment