The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
311 B
19 lines
311 B
project('run command', 'c') |
|
|
|
c = run_command('echo', 'hello') |
|
correct = 'hello' |
|
|
|
if c.returncode() != 0 |
|
error('Executing echo failed.') |
|
endif |
|
|
|
result = c.stdout() |
|
result = result.strip() |
|
|
|
if result != correct |
|
error('Getting stdout failed.') |
|
endif |
|
|
|
if c.stderr() != '' |
|
error('Extra text in stderr.') |
|
endif
|
|
|