From 7cdaa69f199b04fc30bbb3a8a46791a541169e72 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 14:09:04 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 9 +++++++++ tests/driver/runtest.sh | 12 ++++++++++++ tests/tests.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100755 tests/driver/runtest.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 8e9a098..bd93c27 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,10 @@ +/v1.1.0.tar.gz +/python-gssapi-1.1.1.tar.gz +/python-gssapi-1.1.2.tar.gz +/python-gssapi-1.1.3.tar.gz +/python-gssapi-1.1.4.tar.gz +/python-gssapi-1.2.0.tar.gz +/python-gssapi-1.3.0.tar.gz +/python-gssapi-1.4.1.tar.gz +/python-gssapi-1.5.0.tar.gz /python-gssapi-1.5.1.tar.gz diff --git a/tests/driver/runtest.sh b/tests/driver/runtest.sh new file mode 100755 index 0000000..5b144d0 --- /dev/null +++ b/tests/driver/runtest.sh @@ -0,0 +1,12 @@ +#!/bin/bash -ex + +# Fake a build +rm -rf gssapi +cp -r /usr/lib64/python3.6/site-packages/gssapi gssapi +cd gssapi + +# Do something awful +pip3 install nose{,-parameterized} shouldbe k5test + +# And run the tests +exec python3 -c 'import nose; exit(nose.main())' diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..3c1aff3 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,30 @@ +--- +- hosts: localhost + tags: classic + tasks: + - name: Brew a warm one + shell: dnf config-manager --add-repo 'http://download.eng.bos.redhat.com/brewroot/repos/rhel-8.1.0-build/latest/x86_64/' + args: + warn: false + +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + required_packages: + - git + - role: standard-test-basic + tags: + - atomic + - classic + required_packages: + - krb5-server + - krb5-workstation + - krb5-devel + - python3-gssapi + - python3-devel + - rpm-build + - gcc + tests: + - driver