check: Test --define-variable corner cases

This commit is contained in:
Dan Nicholson 2012-09-29 09:09:30 -07:00
parent 397d414a6a
commit 31a9f900e1

View file

@ -14,3 +14,12 @@ case ${MACHTYPE} in
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