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
a000000e
Kaydet (Commit)
a000000e
authored
Eki 15, 2007
tarafından
Ivo Hinkelmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS dmake411 (1.1.2); FILE ADDED
2007/08/08 17:49:08 vq 1.1.2.1: #i69510# Add testcase.
üst
0f63c9c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
0 deletions
+99
-0
macros-10
dmake/tests/macros-10
+99
-0
No files found.
dmake/tests/macros-10
0 → 100755
Dosyayı görüntüle @
a000000e
#!/bin/sh
# 08.08.2007 Volker Quetschke
# Test macro assignment syntax check.
# (issue 69510)
:
${
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( $ -> \$ ).
# Test 1
cat
>
$file1
<<
EOT
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce
AAA:=BBB
\
$(
AAA
)
:= 123
X) := YYY
all :
@echo :\
$(
BBB
)
:\
${
X
)
}
:
EOT
output1
=
`
eval
${
DMAKEPROG
}
-r
-f
$file1
`
result1
=
$?
if
test
"
$output1
"
!=
":123:YYY:"
;
then
echo
"Subtest 1: Wrong result:
$output1
"
result1
=
1
else
echo
"Subtest 1: OK"
fi
# Test 2
cat
>
$file1
<<
EOT
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce
{ := fail
all :
@echo Should fail
EOT
output2
=
`
eval
${
DMAKEPROG
}
-r
-f
$file1
2>&1
`
result2
=
$?
if
test
$result2
!=
0
&&
echo
$output2
|
grep
'Error: -- Syntax error in macro assignment'
>
/dev/null 2>&1
;
then
echo
"Subtest 2: OK"
result2
=
0
else
echo
"Subtest 2: Wrong result:
$output2
"
echo
result2
=
1
fi
# Test 3
cat
>
$file1
<<
EOT
SHELL*:=/bin/sh
SHELLFLAGS*:=-ce
X := :
AA\
$XBB
= 098
all :
@echo Should fail
EOT
output3
=
`
eval
${
DMAKEPROG
}
-r
-f
$file1
2>&1
`
result3
=
$?
if
test
$result3
!=
0
&&
echo
$output3
|
grep
'Error: -- Syntax error in macro assignment'
>
/dev/null 2>&1
;
then
echo
"Subtest 3: OK"
result3
=
0
else
echo
"Subtest 3: Wrong result:
$output3
"
echo
result3
=
1
fi
if
test
$result1
-eq
0
-a
$result2
-eq
0
\
-a
$result3
-eq
0
;
then
echo
"Success - Cleaning up"
&&
rm
-f
${
tmpfiles
}
exit
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