| 1 |
project('clash', 'c') |
| 2 |
|
| 3 |
# This setup causes a namespace clash when two Meson targets would |
| 4 |
# produce a Ninja targets with the same name. It only works on |
| 5 |
# unix, because on Windows the target has a '.exe' suffix. |
| 6 |
# |
| 7 |
# This test might fail to work on different backends or when |
| 8 |
# output location is redirected. |
| 9 |
|
| 10 |
if host_machine.system() == 'windows' or host_machine.system() == 'cygwin' |
| 11 |
error('MESON_SKIP_TEST test only works on platforms where executables have no suffix.') |
| 12 |
endif |
| 13 |
|
| 14 |
executable('clash', 'clash.c') |
| 15 |
run_target('clash', command: ['echo', 'clash 1']) |