blob: 1394f41c75f2ad9ee5eb3e9885a40884e796a150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#! /bin/sh
set -e
. ${srcdir}/common
RESULT="-I/includedir/"
case ${MACHTYPE} in
*-msys)
# Make sure path doesn't get mangled on MSYS
run_test --define-variable=includedir=\\/includedir/ --cflags simple
;;
*)
run_test --define-variable=includedir=/includedir/ --cflags simple
;;
esac
# Spaces before/after the variable name and value should be stripped
RESULT="bar"
run_test --define-variable=' foo = bar ' --variable=foo simple
# Should fail when no value set
EXPECT_RETURN=1
RESULT="--define-variable argument does not have a value for the variable"
run_test --define-variable=foo= --variable=foo simple
|