summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-12-02 12:51:05 +0000
committerCarl Hetherington <cth@carlh.net>2013-12-02 12:51:05 +0000
commit27122ef62024152c66e597b5d8a6adebd9102583 (patch)
treef7a6b33950de551605d957d171e066f8b58a727f
parent13b81515dc94ba52a516bcfe8f9c802d93573a84 (diff)
Add test method to test.
-rwxr-xr-xcdist8
1 files changed, 7 insertions, 1 deletions
diff --git a/cdist b/cdist
index 0b6eba9..ce4ae07 100755
--- a/cdist
+++ b/cdist
@@ -242,6 +242,12 @@ class Target(object):
project.cscript['build'](self)
return project.cscript['package'](self, project.version)
+ def test(self, project):
+ project.checkout(self)
+ self.build_dependencies(project)
+ project.cscript['build'](self)
+ project.cscript['test'](self)
+
def set(self, a, b):
self.variables[a] = b
@@ -772,7 +778,7 @@ elif args.command == 'test':
target = target_factory(args.target, args.debug, args.work)
project.read_cscript('cscript')
- target.build(project)
+ target.test(project)
elif args.command == 'shell':
if args.target is None: