Skip to content

Commit

Permalink
Skip ibmmq when not running x86
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcialRosales committed Jun 19, 2024
1 parent 037d799 commit b98e7e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
22 changes: 11 additions & 11 deletions deps/amqp10_client/test/system_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ suite() ->

all() ->
[
{group, rabbitmq},
{group, rabbitmq_strict},
{group, activemq},
{group, ibmmq},
{group, activemq_no_anon},
{group, mock}
% {group, rabbitmq},
% {group, rabbitmq_strict},
% {group, activemq},
{group, ibmmq}
% {group, activemq_no_anon},
% {group, mock}
].

groups() ->
Expand Down Expand Up @@ -132,11 +132,11 @@ init_per_group(activemq, Config0) ->
rabbit_ct_helpers:run_steps(Config,
activemq_ct_helpers:setup_steps("activemq.xml"));

init_per_group(ibmmq, Config) ->
ct:log("running arch ~p", [erlang:system_info(system_architecture)]),
case string:find(erlang:system_info(system_architecture), "ARM") of
nomatch -> rabbit_ct_helpers:run_steps(Config, ibmmq_ct_helpers:setup_steps());
_ -> {skip, no_arm64_docker_image_for_ibmmq}
init_per_group(ibmmq, Config) ->
ct:log("Found arch: ~p", [erlang:system_info(system_architecture)]),
case string:find(erlang:system_info(system_architecture), "x86") of
nomatch -> {skip, no_arm64_docker_image_for_ibmmq};
_ -> rabbit_ct_helpers:run_steps(Config, ibmmq_ct_helpers:setup_steps())
end;

init_per_group(activemq_no_anon, Config0) ->
Expand Down
1 change: 1 addition & 0 deletions deps/amqp10_client/test/system_SUITE_data/ibmmq_runner
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ invoke_start(){
--env MQ_QMGR_NAME=QM1 \
--env MQ_APP_PASSWORD=passw0rd \
--env MQ_ADMIN_PASSWORD=passw0rd \
--env LICENSE=accept \
--publish 1414:1414 \
--publish 9443:9443 \
--publish 5672:5672 \
Expand Down

0 comments on commit b98e7e1

Please sign in to comment.