Commit bdb559a6 authored by Ben Gamari's avatar Ben Gamari 🐢

testsuite: Introduce makefile_test

parent 172a5933
......@@ -1002,6 +1002,13 @@ def badResult(result):
def run_command( name, way, cmd ):
return simple_run( name, '', override_options(cmd), '' )
def makefile_test( name, way, target=None ):
if target is None:
target = name
cmd = '$MAKE -s --no-print-directory {target}'.format(target=target)
return run_command(name, way, cmd)
# -----------------------------------------------------------------------------
# GHCi tests
......
......@@ -214,4 +214,4 @@ test('T16104',
[extra_files(['T16104-plugin/']),
pre_cmd('$MAKE -s --no-print-directory -C T16104-plugin package.T16104-plugin TOP={top}')
],
run_command, ['$MAKE -s --no-print-directory T16104'])
makefile_test, [])
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