pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39135?usp=email )
Change subject: remsim: bankd: Install vsmartcard-vpcd ...................................................................... remsim: bankd: Install vsmartcard-vpcd This is needed for test RemsimBankd_Tests.TC_createMapping_exchangeTPDU to work. Add require_vsmartcard_vpcd.sh to give a meaningful error message when running without --podman, if the user doesn't have it installed. Co-authored-by: Oliver Smith <[email protected]> Change-Id: Ib5ba5075eff4955354fa25d1c605f277e8a6962a --- M _testenv/data/podman/Dockerfile A _testenv/data/scripts/require_vsmartcard_vpcd.sh M remsim/testenv_bankd.cfg 3 files changed, 13 insertions(+), 0 deletions(-) Approvals: pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/_testenv/data/podman/Dockerfile b/_testenv/data/podman/Dockerfile index 5321bfe..3b0afb1 100644 --- a/_testenv/data/podman/Dockerfile +++ b/_testenv/data/podman/Dockerfile @@ -85,6 +85,7 @@ sudo \ tcpdump \ vim \ + vsmartcard-vpcd \ wget \ wireshark-common \ && \ diff --git a/_testenv/data/scripts/require_vsmartcard_vpcd.sh b/_testenv/data/scripts/require_vsmartcard_vpcd.sh new file mode 100755 index 0000000..11a6530 --- /dev/null +++ b/_testenv/data/scripts/require_vsmartcard_vpcd.sh @@ -0,0 +1,11 @@ +#!/bin/sh +SO="/usr/lib/pcsc/drivers/serial/libifdvpcd.so" + +if ! [ -e "$SO" ]; then + echo + echo "ERROR: $SO not found!" + echo + echo "This testsuite requires vsmartcard-vpcd." + echo + exit 1 +fi diff --git a/remsim/testenv_bankd.cfg b/remsim/testenv_bankd.cfg index 62ac07b..484203c 100644 --- a/remsim/testenv_bankd.cfg +++ b/remsim/testenv_bankd.cfg @@ -3,6 +3,7 @@ config=bankd/REMSIM_Tests.cfg [pcscd] +prepare=require_vsmartcard_vpcd.sh program=pcscd -f -d make=no package=pcscd -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39135?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib5ba5075eff4955354fa25d1c605f277e8a6962a Gerrit-Change-Number: 39135 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <[email protected]> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <[email protected]> Gerrit-Reviewer: osmith <[email protected]> Gerrit-Reviewer: pespin <[email protected]>
