Build benchmarks/tsung with erlang25

Includes a fix for https://github.com/processone/tsung/issues/385

By Volker Schlecht openbsd-ports AT schlecht DOT dev
This commit is contained in:
gnezdo 2023-01-08 05:45:18 +00:00
parent f146869f61
commit 5af817a8d1
2 changed files with 16 additions and 2 deletions

View File

@ -2,7 +2,7 @@ COMMENT= multi-protocol distributed load testing tool
V= 1.7.0
DISTNAME= tsung-$V
REVISION= 3
REVISION= 4
CATEGORIES= benchmarks net
@ -15,7 +15,7 @@ MASTER_SITES= http://tsung.erlang-projects.org/dist/
MODULES= lang/erlang \
lang/python
MODERL_VERSION= 21
MODERL_VERSION= 25
MODPY_BUILDDEP= No
RUN_DEPENDS= graphics/py-matplotlib${MODPY_FLAVOR} \

View File

@ -0,0 +1,14 @@
Pull in an upstream fix for a failing testcase with erlang >= 21
https://github.com/processone/tsung/commit/e53a59d16df5a2d3781ef9d4f0171ad0ca5bc931
Index: src/test/ts_test_utils.erl
--- src/test/ts_test_utils.erl.orig
+++ src/test/ts_test_utils.erl
@@ -48,7 +48,7 @@ mkey1search_string_test()->
?assertEqual(["bar","caps"],ts_utils:mkey1search(Data,"foo")).
datestr_test()->
- ?assertEqual(["2013","10","17",45,"19","41"],ts_utils:datestr({{2013,10,17},{19,41,29}})).
+ ?assertEqual("20131017-1941",lists:flatten(ts_utils:datestr({{2013,10,17},{19,41,29}}))).
export_text_test()->
?assertEqual("foo",ts_utils:export_text("foo")).