Skip to content

Commit

Permalink
Add in a Custom TestFile type, which we can use for specifying a cust…
Browse files Browse the repository at this point in the history
…om run command for tests which don't fit an existing mold but aren't hard to invoke
  • Loading branch information
Whiteknight committed Mar 28, 2011
1 parent aa72c54 commit ec6dfcd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/tap_harness/testfile/Custom.winxed
@@ -0,0 +1,24 @@
namespace Rosella { namespace Harness { namespace TestFile
{
class Custom : Rosella.Harness.TestFile
{
var cmd_fmt;

function BUILD(string cmd)
{
self.cmd_fmt = cmd;
}

function compile_test()
{
// TODO: Is there a way we can add this?
using Rosella.Error.invalid;
invalid("Harness.TestFile.Custom", "Cannot be used for inline testing");
}

function get_spawn_command()
{
return sprintf(self.cmd_fmt, [self.filename]);
}
}
}}}

0 comments on commit ec6dfcd

Please sign in to comment.