From 20235907c307225324616687b921d3282d30e183 Mon Sep 17 00:00:00 2001 From: Elisey Zanko Date: Fri, 24 Mar 2023 12:38:14 +0500 Subject: [PATCH] Add tox --- library/tox | 7 +++++++ test/config.sh | 3 +++ test/tests/tox-basics/run.sh | 15 +++++++++++++++ test/tests/tox-basics/test.py | 6 ++++++ test/tests/tox-basics/tox.ini | 11 +++++++++++ test/tests/tox-derivative/run.sh | 23 +++++++++++++++++++++++ test/tests/tox-derivative/test.py | 6 ++++++ test/tests/tox-derivative/tox.ini | 11 +++++++++++ 8 files changed, 82 insertions(+) create mode 100644 library/tox create mode 100755 test/tests/tox-basics/run.sh create mode 100644 test/tests/tox-basics/test.py create mode 100644 test/tests/tox-basics/tox.ini create mode 100755 test/tests/tox-derivative/run.sh create mode 100644 test/tests/tox-derivative/test.py create mode 100644 test/tests/tox-derivative/tox.ini diff --git a/library/tox b/library/tox new file mode 100644 index 0000000000000..c9b4a6d944a8e --- /dev/null +++ b/library/tox @@ -0,0 +1,7 @@ +Maintainers: Elisey Zanko (@31z4) +GitRepo: https://github.com/31z4/tox-docker.git +GitFetch: refs/heads/main +Architectures: amd64, arm64v8, ppc64le, s390x + +Tags: 4-3, 4-3.0, 4-3.0.1, 4, 4.4-3, 4.4-3.0, 4.4-3.0.1, 4.4, 4.4.7-3, 4.4.7-3.0, 4.4.7-3.0.1, 4.4.7, latest +GitCommit: 881e2f195d431ca14d1da7e2e5044c3e0ff932b7 diff --git a/test/config.sh b/test/config.sh index fcdeb8cc7959e..814f2c35537dc 100644 --- a/test/config.sh +++ b/test/config.sh @@ -265,6 +265,9 @@ imageTests+=( [tomcat]=' tomcat-hello-world ' + [tox]=' + tox-basics + ' [varnish]=' varnish ' diff --git a/test/tests/tox-basics/run.sh b/test/tests/tox-basics/run.sh new file mode 100755 index 0000000000000..a4e57e2fc97a9 --- /dev/null +++ b/test/tests/tox-basics/run.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -eo pipefail + +dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" + +image="$1" + +newImage="$("$dir/../image-name.sh" librarytest/tox-basics "$image")" +"$dir/../docker-build.sh" "$dir" "$newImage" <