Try to fix test run via cdist.
[libcxml.git] / cscript
1 def build(target, options):
2     cmd = './waf configure --prefix=%s' % target.directory
3     if target.platform == 'linux':
4         cmd += ' --static --disable-tests'
5     elif target.platform == 'windows':
6         cmd += ' --target-windows'
7     target.command(cmd)
8     target.command('./waf build install')
9
10 def test(target):
11     if target.platform != 'windows':
12         target.set('LC_ALL', 'C')
13         target.command('./run-tests.sh')