diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-12-02 12:51:05 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-12-02 12:51:05 +0000 |
| commit | 27122ef62024152c66e597b5d8a6adebd9102583 (patch) | |
| tree | f7a6b33950de551605d957d171e066f8b58a727f | |
| parent | 13b81515dc94ba52a516bcfe8f9c802d93573a84 (diff) | |
Add test method to test.
| -rwxr-xr-x | cdist | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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: |
