diff --git a/.gitignore b/.gitignore index ada49ac..e62678d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,14 @@ -SOURCES/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg -SOURCES/pcsc-lite-1.9.5.tar.bz2 -/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg -/pcsc-lite-1.9.5.tar.bz2 +/pcsc-lite-*.tar.bz2 +/pcsc-lite-1.8.11.tar.bz2.asc +/pcsc-lite-1.8.12.tar.bz2.asc +/pcsc-lite-1.8.13.tar.bz2.asc +/pcsc-lite-1.8.14.tar.bz2.asc +/pcsc-lite-1.8.15.tar.bz2.asc +/pcsc-lite-1.8.16.tar.bz2.asc +/pcsc-lite-1.8.17.tar.bz2.asc +/pcsc-lite-1.8.18.tar.bz2.asc +/pcsc-lite-1.8.19.tar.bz2.asc +/pcsc-lite-1.8.20.tar.bz2.asc +/pcsc-lite-1.8.22.tar.bz2.asc +/pcsc-lite-1.8.23.tar.bz2.asc +/pcsc-lite-1.9.5.tar.bz2.asc diff --git a/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg b/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg new file mode 100644 index 0000000..d3cd631 Binary files /dev/null and b/gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg differ diff --git a/pcsc-lite-1.9.5.tar.bz2.asc b/pcsc-lite-1.9.5.tar.bz2.asc deleted file mode 100644 index 8bac82e..0000000 --- a/pcsc-lite-1.9.5.tar.bz2.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCAAdFiEE9eEbn/6REUb0HZU9eKG03+j5xX4FAmGrX3QACgkQeKG03+j5 -xX6OYhAAlPiKTLWkHUq0edTZqptfYvjflQ3oBRSz5aGl1v95RyuklhGSK7H6fVez -eYTG8bVKJDaHQBE+b1LukvIrhVlRGSHzTChTjc4k8qGjvSIqTp3t5Zhi0TDBIBov -agLr2YP6Bi07nJZ+UzE5ssx0zk8Ca4xJDoSpBuD6ZcdTzSJ1VW8DZwD0bpco4a1u -l8/b/DgzLPtzsSeBDoIGRlZsx6VYoxH83vaUp0FUNcdbLnA7teeWgnkSFJws8YAe -TXd10bv3OYYqC/vCcQUv96tZaN2aekhYH9CeefAb6EC+kVWEXvV7d0BN29ToWuDm -AQqkXpSYVihhkmQjTOmX6sKYbXpIkL13Rvmsz++Sf1tKQNuFcudtD2D4BZy4cglk -DwX0dlJeHcQadeeyvC61G5BzreykhD6891PaxTs+BeGLKHe/VXmLhPcbA1r0oOKB -A1G6lie02u2lCeohVFOvrIg7Pgx/msEqvGlqqYAYIz7s3bH0y88dw/QQW0le94Vr -HefVx/dAqN1n90DTwKR5s10OgMAVGj4g9FkxNV/rVqKK6PwpM8wu1RuUeJhbeioN -FVwJXzSsVoLkUn+GEQHXFtx/uOpQcJ63CPybULSXHp9xh4XecEBbJ695TZkzikP0 -Y+eAurhL7mKFpWwVIxTqYy+JU6B2r/p7pY0i15i8nGa2xkda/M8= -=nBYh ------END PGP SIGNATURE----- diff --git a/sources b/sources index 2cc1648..d3ed4d4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg) = f1c13be517b44ee22544b0554518e43f06828f4eca0b03fd438a0d772a5550bef6b9e5bc074ac65801bb13d68aac32a6757b47c9186a305c11998b6f424ca302 SHA512 (pcsc-lite-1.9.5.tar.bz2) = 0315c2cf97cc9da0f5faf115f24e523b5a1746cea250a4fe6c4d5d7b2fbfc7c3ea0f068611072ca84866c672eb679e8067101437573148ccd1ac5ad26b18cd78 +SHA512 (pcsc-lite-1.9.5.tar.bz2.asc) = 5e678c784dd3a860956c1e8ccc40e801a2f676faf46ca3137a309f002a44a65a87a98da0d130da57c6551a80dded9a60259b8c0fb06d3586e2020babf0de18ed 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