re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-11 17:03:42 +02:00
parent 33d5a50b37
commit dad41d5eca
2 changed files with 28 additions and 0 deletions

15
tests/runtest.sh Executable file
View File

@ -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

13
tests/tests.yml Normal file
View File

@ -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