Commit a62020b1 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-07-17 12:21:03 by simonmar]

Quick hack: add a generic_command class of tests, so that we can
integrate arbitrary commands as tests in the test framework.
parent 0b759f21
......@@ -343,6 +343,18 @@ def framework_fail( name ):
t.n_framework_failures = t.n_framework_failures + 1
t.framework_failures.append(name)
# -----------------------------------------------------------------------------
# Generic command tests
# A generic command test is expected to run and exit successfully.
def generic_command( name, way, cmd, args ):
result = runCmd( cmd + ' ' + join(args,' ') );
if result == 0:
return 'pass'
else:
return 'fail'
# -----------------------------------------------------------------------------
# Compile-only tests
......
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