diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-14 21:14:44 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-14 21:14:44 -0700 |
commit | 58bd34e6c3662ef06e9ef0dd78d69f003df42bdc (patch) | |
tree | 1369366f132fb58bb419fd6519ac4a3e5947aa9c /tests | |
parent | 8522c314da7537169996476fe5ba411f720a09fe (diff) |
Convert testcase from bug 28045 into automake "make check" test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/28045/foo.cpp | 2 | ||||
-rwxr-xr-x | tests/28045/makedep.sh | 28 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/28045/foo.cpp b/tests/28045/foo.cpp new file mode 100644 index 0000000..95d2129 --- /dev/null +++ b/tests/28045/foo.cpp @@ -0,0 +1,2 @@ + +#include <one> diff --git a/tests/28045/makedep.sh b/tests/28045/makedep.sh new file mode 100755 index 0000000..322e8a0 --- /dev/null +++ b/tests/28045/makedep.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Test case from https://bugs.freedesktop.org/show_bug.cgi?id=28045 +# modified to work with automake test framework + +set -e + +if [ "x$MAKEDEPEND" == "x" ]; then + MAKEDEPEND=makedepend +fi + +mkdir -p ${test_builddir}/28045 +cd ${test_builddir}/28045 + +# Create test conditions: +# - directory named "one" +# - directory named "two" containing empty file named "one" +mkdir one two +touch two/one + +# Happens to work before fix for 28045 +$MAKEDEPEND -f- -- -Itwo -Ione -I. -- ${test_srcdir}/28045/foo.cpp > /dev/null + +# Happens to fail before fix for 28045 +$MAKEDEPEND -f- -- -I. -Ione -Itwo -- ${test_srcdir}/28045/foo.cpp > /dev/null + +# Clean up +rm -rf one two |