diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-01-18 08:41:29 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-01-18 08:41:29 +0000 |
commit | b8494f7a040b64a3c31f6af0b0a30a4d70fdff65 (patch) | |
tree | 5420f387c29c6041dfb1e999d2ecadf767168ffc /dmake/tests | |
parent | ce6470ef2634d745bc891edcabab2a37714c4841 (diff) |
INTEGRATION: CWS dmake47 (1.1.2); FILE ADDED
2006/11/21 11:50:42 hjs 1.1.2.3: small cleanup
2006/11/21 01:32:17 vq 1.1.2.2: #i71777# Fix testcase - Only test the directory cache for case
insensitivity if the FS is also case insensitive.
2006/09/29 18:50:24 vq 1.1.2.1: #i69814# Add/fix option to make directory cache case insensitive. (Make
this the default for Windows and Mac OS X.) Added testcase.
Diffstat (limited to 'dmake/tests')
-rwxr-xr-x | dmake/tests/misc-13 | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dmake/tests/misc-13 b/dmake/tests/misc-13 new file mode 100755 index 000000000000..a2381a8c00cc --- /dev/null +++ b/dmake/tests/misc-13 @@ -0,0 +1,51 @@ +#!/bin/sh + +# 29.09.2006 Volker Quetschke +# Check if the directory cache can be made case insensitive +# (issue 69814) + +: ${DMAKEPROG:=dmake} +file1="mfile1.mk" +file2="TeSt.target" +tmpfiles="$file1 $file2" + +trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 + +# Remove files from prior failed run +rm -rf $tmpfiles + +echo "Something" > $file2 + +# Remember to quote variables in generated makefiles ( $ -> \$ ). +# Also quote line continuations ( \<nl> -> \\<nl> ). +cat > $file1 <<EOT +SHELL*:=/bin/sh +SHELLFLAGS*:=-ce + +.DIRCACHE=yes + +# Only test the directory cache for case insensitivity if the FS is also +# case insensitive. +.IF "\$(.DIRCACHERESPCASE)"!="y" +test.target : + @echo "Building \$@" + +.ELSE +TeSt.target : + @echo "Building \$@" + +.ENDIF + +EOT + +output=`eval ${DMAKEPROG} -r -f $file1` +result=$? + +if echo "$output" | grep -v ".target' is up to date" > /dev/null 2>&1 ; then + echo "Wrong result: ${output}" + result=1 +fi + +test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles} +test $result -ne 0 && echo "Failure!" +exit $result |