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
a40d0bdf
Kaydet (Commit)
a40d0bdf
authored
Nis 20, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use OFFICEOTRON/ODFVALIDATOR determined by configure
Change-Id: I456669f15a659e144fc6ecad053cd0b929859424
üst
50c43b03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
config_host.mk.in
config_host.mk.in
+2
-0
configure.ac
configure.ac
+4
-2
bootstrapfixture.cxx
test/source/bootstrapfixture.cxx
+12
-3
No files found.
config_host.mk.in
Dosyayı görüntüle @
a40d0bdf
...
...
@@ -429,6 +429,8 @@ export nodep=@nodep@
export OBJDUMP=@OBJDUMP@
export ODFGEN_CFLAGS=$(gb_SPACE)@ODFGEN_CFLAGS@
export ODFGEN_LIBS=$(gb_SPACE)@ODFGEN_LIBS@
export ODFVALIDATOR=@ODFVALIDATOR@
export OFFICEOTRON=@OFFICEOTRON@
export OOOP_FONTS_PACK=@OOOP_FONTS_PACK@
export OOOP_GALLERY_PACK=@OOOP_GALLERY_PACK@
export OOOP_SAMPLES_PACK=@OOOP_SAMPLES_PACK@
...
...
configure.ac
Dosyayı görüntüle @
a40d0bdf
...
...
@@ -2731,12 +2731,14 @@ if test "$with_export_validation" = yes; then
AC_CHECK_PROGS(ODFVALIDATOR, odfvalidator)
if test -z "$ODFVALIDATOR"; then
AC_MSG_ERROR([odfvalidator
is not found in PATH
, but required by --with-export-validation])
AC_MSG_ERROR([odfvalidator
not found
, but required by --with-export-validation])
fi
AC_SUBST(ODFVALIDATOR)
AC_CHECK_PROGS(OFFICEOTRON, officeotron)
if test -z "$OFFICEOTRON"; then
AC_MSG_ERROR([officeotron
is not found in PATH
, but required by --with-export-validation])
AC_MSG_ERROR([officeotron
not found
, but required by --with-export-validation])
fi
AC_SUBST(OFFICEOTRON)
else
AC_MSG_RESULT([no])
fi
...
...
test/source/bootstrapfixture.cxx
Dosyayı görüntüle @
a40d0bdf
...
...
@@ -156,15 +156,24 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
(
void
)
eFormat
;
#if HAVE_EXPORT_VALIDATION
OUString
aValidato
r
;
OUString
va
r
;
if
(
eFormat
==
test
::
OOXML
)
{
aValidator
=
"officeotron
"
;
var
=
"OFFICEOTRON
"
;
}
else
{
aValidator
=
"odfvalidator
"
;
var
=
"ODFVALIDATOR
"
;
}
OUString
aValidator
;
oslProcessError
e
=
osl_getEnvironment
(
var
.
pData
,
&
aValidator
.
pData
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
OUString
(
"cannot get env var "
+
var
).
toUtf8
().
getStr
(),
osl_Process_E_None
,
e
);
CPPUNIT_ASSERT_MESSAGE
(
OUString
(
"empty get env var "
+
var
).
toUtf8
().
getStr
(),
!
aValidator
.
isEmpty
());
aValidator
+=
" "
;
utl
::
TempFile
aOutput
;
aOutput
.
EnableKillingFile
();
...
...
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