From dad41d5eca83126e5f0dd35e50c212ca803b7649 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Tue, 11 Jul 2023 17:03:42 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- tests/runtest.sh | 15 +++++++++++++++ tests/tests.yml | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 tests/runtest.sh create mode 100644 tests/tests.yml diff --git a/tests/runtest.sh b/tests/runtest.sh new file mode 100755 index 0000000..d4747ef --- /dev/null +++ b/tests/runtest.sh @@ -0,0 +1,15 @@ +#!/bin/bash -x + +export GIT_SSL_NO_VERIFY=true +git clone https://gitlab.cee.redhat.com/idm/smartcards.git +cd smartcards/gating/opensc +./setup_opensc_gating.sh + +pytest-3 -v --junit-xml=/tmp/artifacts/junit.xml \ + --log-cli-level=INFO \ + --log-cli-format="[%(name)s] %(levelname)s %(message)s" \ + --log-file=/tmp/artifacts/pytest-run.log \ + --log-file-level=DEBUG \ + --log-file-format="%(asctime)s [%(name)s] %(levelname)s %(message)s" \ + --log-file-date-format="%Y-%m-%dT%H:%M:%S%z" \ + test_opensc_sanity.py diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..b7f7a59 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - opensc: + dir: . + run: ./runtest.sh + required_packages: + - git + - python3-pytest + - python3-pexpect