Add TEST() to various ports (#1832)

* app-crypt/rhash: disable on x86_gcc2, also fixed secondary arch

* dev-lang/tcc: make tcc actually works

  - update patches: define custom haiku definitions, use haiku
    start/end objects

  - make tcc uses haiku custom paths

  - add secondary arch support
  - add x86_64

* dev-lang/tcc: disable on all architectures

  - Haiku's BeBuild.h depends on __GNUC__ macro to select ABI, which
    unfortunately we can't risk to define, so disabling for now

* dev-python/pyqt: use correct name for sip

* dev-lang/spidermonkey: fix build

  - add x86 to snd arch

  - update config.sub and config.guess

  - add missing cmd:js_config
  - add missing cmd:zip

* dev-python/pyqt: clean up the spaces left by previous contributor

* add TEST() for the following ports:
  - sys-devel/flex
  - app-crypt/rhash
  - app-text/podofo
  - app-crypt/qca
  - app-editors/retext
  - app-i18n/mozc
  - dev-lang/tcc
  - dev-lang/yasm
  - dev-lang/spidermonkey
  - dev-libs/glib
  - dev-libs/jsoncpp
  - dev-libs/libtommath
  - dev-libs/libxslt
  - dev-libs/libyajl
  - dev-libs/zziplib
This commit is contained in:
alaviss
2017-12-10 19:49:50 +07:00
committed by fbrosson
parent e608f7d42c
commit a0fdf8cf1f
18 changed files with 413 additions and 44 deletions

View File

@@ -67,6 +67,7 @@ REQUIRES_devel="
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcppunit$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
@@ -92,6 +93,13 @@ PATCH()
freetypeDir=$portPackageLinksDir/devel~libfreetype$secondaryArchSuffix/develop/headers$headersDir/freetype2
sed -i -e s:/usr/include/freetype2:$freetypeDir: cmake/modules/FindFREETYPE.cmake
# Taken from Gentoo
# Test name: EncodingTest::testDifferencesEncoding
# equality assertion failed
# - Expected: 1
# - Actual : 0
sed -e 's:CPPUNIT_TEST( testDifferencesEncoding ://\0:' \
-i test/unit/EncodingTest.h
}
BUILD()
@@ -99,6 +107,7 @@ BUILD()
mkdir -p build; cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix \
-DPODOFO_BUILD_SHARED=1 \
-DPODOFO_HAVE_CPPUNIT=1 \
..
make $jobArgs
}
@@ -127,3 +136,9 @@ INSTALL()
packageEntries devel \
$developDir
}
TEST()
{
cd build/test/unit
./podofo-test --selftest
}