aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2021-07-11 20:00:33 +0000
committerLeo <thinkabit.ukim@gmail.com>2021-07-13 12:18:25 +0000
commita9257ec2790d4efd1155e67f6e90df933ee90942 (patch)
tree8c54a76f3667eb5ea9098ec5182d33774f1bfd28
parent229375d8f413a9e84b291dbb677beed44aa0975e (diff)
downloadaports-a9257ec2790d4efd1155e67f6e90df933ee90942.tar.gz
aports-a9257ec2790d4efd1155e67f6e90df933ee90942.tar.bz2
aports-a9257ec2790d4efd1155e67f6e90df933ee90942.tar.xz
community/rspamd: actually run the tests
-rw-r--r--community/rspamd/APKBUILD21
1 files changed, 18 insertions, 3 deletions
diff --git a/community/rspamd/APKBUILD b/community/rspamd/APKBUILD
index 55d1b9a09b..53de9fb2da 100644
--- a/community/rspamd/APKBUILD
+++ b/community/rspamd/APKBUILD
@@ -6,7 +6,7 @@
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
pkgname=rspamd
pkgver=2.7
-pkgrel=5
+pkgrel=6
pkgdesc="Fast, free and open-source spam filtering system"
url="https://rspamd.com/"
# riscv64 blocked by luajit
@@ -79,11 +79,26 @@ build() {
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
"$CMAKE_CROSSOPTS" .
- make -C build
+ make -C build all rspamd-test
}
check() {
- make -C build rspamd-test
+ cd build/test
+ ln -s ../../lualib/lua_stat.lua ./
+ ln -s ../../lualib/lua_redis.lua ./
+ ln -s ../../lualib/lua_util.lua ./
+ ln -s ../../contrib/lua-fun/fun.lua ./
+ ln -s ../../contrib/lua-lupa/lupa.lua ./
+ ln -s ../../contrib/lua-tableshape/tableshape.lua ./
+ # dns and upstream have dns asserts
+ # shingles and lua_pca have segfaults
+ # lua needs even more linked lua modules
+
+ # needs replacing with rspamd-test-cxx in 2.8
+ # rspamd-test is obsolete https://github.com/rspamd/rspamd/issues/3807
+ ./rspamd-test -s /rspamd/dns -s /rspamd/upstream -s /rspamd/shingles \
+ -s /rspamd/lua -s /rspamd/lua_pcall -s /rspamd/radix \
+ -s /rspamd/cryptobox
}
package() {