From 97afd424b1a68aa25c08604c00956da882db7477 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 6 May 2012 23:30:37 -0500 Subject: [PATCH] tests: add tests for --define-variable (issue #7) --- tests/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run.sh b/tests/run.sh index 3ab0853..3c1c1e6 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -83,6 +83,10 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --variable=includedir foo" \ # 6) tests for builtins run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --modversion pkg-config" \ '0.26' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --variable=prefix foo" \ + '/usr' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --define-variable=prefix=/test --variable=prefix foo" \ + '/test' if [ ${failed} -gt 0 ]; then echo "${failed} of ${done} tests failed. See output for details." >&2