mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 04:20:04 +01:00
25 lines
634 B
Bash
Executable file
25 lines
634 B
Bash
Executable file
#! /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
|