mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
www/davix: Update 0.6.8 -> 0.6.9
Add the 'test' target.
This commit is contained in:
parent
c94b9734eb
commit
7afd521fa4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=481121
@ -1,8 +1,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= davix
|
||||
DISTVERSIONPREFIX= R_
|
||||
DISTVERSION= 0_6_8
|
||||
DISTVERSION= 0.6.9
|
||||
MASTER_SITES= http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/davix/${DISTVERSION}/
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
@ -13,11 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
|
||||
|
||||
PORTSCOUT= limit:^.*\.[0-9]+$$
|
||||
|
||||
USES= cmake compiler:c++11-lang localbase ssl
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= cern-it-sdc-id
|
||||
USES= cmake:outsource compiler:c++11-lang gnome localbase:ldflags python:build shebangfix ssl
|
||||
SHEBANG_GLOB= *.py
|
||||
USE_GNOME= libxml2
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
@ -26,4 +23,10 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
|
||||
post-install:
|
||||
@${RM} -r ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
do-test: # tests are known to fail: https://github.com/cern-fts/davix/issues/33
|
||||
@cd ${BUILD_WRKSRC} && \
|
||||
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DUNIT_TESTS=ON FUNCTIONAL_TESTS=ON BENCH_TESTS=ON ${CMAKE_SOURCE_PATH} && \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1531096792
|
||||
SHA256 (cern-it-sdc-id-davix-R_0_6_8_GH0.tar.gz) = 722f522f5d6cad15cb6b840967417f870d465fc1a98b04295718a72e5018a0b6
|
||||
SIZE (cern-it-sdc-id-davix-R_0_6_8_GH0.tar.gz) = 3033447
|
||||
TIMESTAMP = 1538501544
|
||||
SHA256 (davix-0.6.9.tar.gz) = fbd97eb5fdf82ca48770d06bf8e2805b35f23255478aa381a9d25a49eb98e348
|
||||
SIZE (davix-0.6.9.tar.gz) = 4333197
|
||||
|
11
www/davix/files/patch-test_bench_CMakeLists.txt
Normal file
11
www/davix/files/patch-test_bench_CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
--- test/bench/CMakeLists.txt.orig 2018-10-02 17:06:04 UTC
|
||||
+++ test/bench/CMakeLists.txt
|
||||
@@ -7,7 +7,7 @@ LIST(APPEND src_davix_bench "davix_bench
|
||||
#include_directories(/usr/include/davix)
|
||||
|
||||
add_executable(davix-bench ${src_davix_bench})
|
||||
-target_link_libraries(davix-bench libdavix ${CMAKE_THREAD_LIBS_INIT})
|
||||
+target_link_libraries(davix-bench libdavix ${CMAKE_THREAD_LIBS_INIT} uuid)
|
||||
|
||||
function(test_read url opt input)
|
||||
add_test(test_bench_read_${url} davix-bench ${opt} ${url} ${input})
|
11
www/davix/files/patch-test_functional_CMakeLists.txt
Normal file
11
www/davix/files/patch-test_functional_CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
--- test/functional/CMakeLists.txt.orig 2018-10-02 17:09:41 UTC
|
||||
+++ test/functional/CMakeLists.txt
|
||||
@@ -83,7 +83,7 @@ add_library(test_davix_functional_lib ST
|
||||
#target_link_libraries(test_mv libdavix test_davix_functional_lib)
|
||||
|
||||
add_executable(tester ${src_tester})
|
||||
-target_link_libraries(tester libdavix test_davix_functional_lib)
|
||||
+target_link_libraries(tester libdavix test_davix_functional_lib uuid)
|
||||
|
||||
function(assert_not_empty var)
|
||||
if("${var}" STREQUAL "")
|
11
www/davix/files/patch-test_unit_CMakeLists.txt
Normal file
11
www/davix/files/patch-test_unit_CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
--- test/unit/CMakeLists.txt.orig 2018-10-02 17:02:58 UTC
|
||||
+++ test/unit/CMakeLists.txt
|
||||
@@ -33,7 +33,7 @@ add_executable(g_test_unit_davix_exe ${s
|
||||
${src_httprequest} ${src_datetime} ${src_neon} ${src_parser} ${src_auth} ${src_utils} ${src_parser} ${SRC_BASE64}
|
||||
${SRC_HMACSHA1} ${src_files} ${src_alibxx})
|
||||
|
||||
-target_link_libraries(g_test_unit_davix_exe alibxx_core davix_tool_lib libdavix gtest gtest_main ${CMAKE_THREAD_LIBS_INIT} ${LIBSSL_PKG_LIBRARIES})
|
||||
+target_link_libraries(g_test_unit_davix_exe alibxx_core davix_tool_lib libdavix gtest gtest_main ${CMAKE_THREAD_LIBS_INIT} ${LIBSSL_PKG_LIBRARIES} uuid)
|
||||
add_dependencies(g_test_unit_davix_exe libdavix)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user