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.

34 lines
591 B

12 years ago
project('comparison', 'c')
var1 = 'foo'
var2 = 'bar'
if var1 == var2
12 years ago
exe1 = executable('broken', 'broken.c')
else
exe1 = executable('prog1', 'prog.c')
endif
if var1 == var1
12 years ago
exe2 = executable('prog2', 'prog.c')
else
exe2 = executable('broken', 'broken.c')
endif
if var1 != var2
12 years ago
exe3 = executable('prog3', 'prog.c')
else
exe3 = executable('broken', 'broken.c')
endif
if var1 != var1
12 years ago
exe4 = executable('broken', 'broken.c')
else
exe4 = executable('prog4', 'prog.c')
endif
test('equalfalse', exe1)
test('equaltrue', exe2)
test('nequaltrue', exe3)
test('nequalfalse', exe4)