Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f8b22fc6
Kaydet (Commit)
f8b22fc6
authored
Mar 05, 2008
tarafından
Kurt Zenker
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS dmake412_DEV300 (1.1.2); FILE ADDED
2008/02/05 22:02:17 vq 1.1.2.1: #i84800# Add testcase.
üst
13b83ba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
targets-30
dmake/tests/targets-30
+64
-0
No files found.
dmake/tests/targets-30
0 → 100755
Dosyayı görüntüle @
f8b22fc6
#!/bin/sh
# 05.02.2008 Volker Quetschke
# Check that OOODMAKEMODE=y does not normalize ./../foo.
# (issue 84800)
:
${
DMAKEPROG
:
=dmake
}
file1
=
"mfile1.mk"
tmpfiles
=
"
$file1
"
trap
'{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }'
1 2 3 15
# Remove files from prior failed run
rm
-rf
$tmpfiles
# Remember to quote variables in generated makefiles( $ -> \$ ).
cat
>
$file1
<<
EOT
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce
OOODMAKEMODE:=y
# See if OOODMAKEMODE keeps ./../all
./../all :
@echo X\
$@
Y
EOT
output1
=
`
eval
${
DMAKEPROG
}
-rf
$file1
2>&1
`
result1
=
$?
if
test
$result1
-ne
0
-o
"
$output1
"
!=
"X./../allY"
;
then
echo
"Test 1: Wrong result:
$output1
"
result1
=
1
fi
# Remember to quote variables in generated makefiles( $ -> \$ ).
cat
>
$file1
<<
EOT
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce
OOODMAKEMODE:=
# See if OOODMAKEMODE= removes the leading .
./../all :
@echo X\
$@
Y
EOT
output2
=
`
eval
${
DMAKEPROG
}
-rf
$file1
2>&1
`
result2
=
$?
if
test
$result2
-ne
0
-o
"
$output2
"
!=
"X../allY"
;
then
echo
"Test 2: Wrong result:
$output2
"
result2
=
1
fi
if
test
$result1
-eq
0
-a
$result2
-eq
0
;
then
echo
"Success - Cleaning up"
rm
-rf
$tmpfiles
exit
0
else
echo
"Failure!"
exit
1
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment