summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions')
-rw-r--r--t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/control3
-rw-r--r--t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/test-113
-rw-r--r--t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/fill-values4
-rw-r--r--t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/desc2
-rw-r--r--t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/hints4
5 files changed, 26 insertions, 0 deletions
diff --git a/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/control b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/control
new file mode 100644
index 0000000..c831b63
--- /dev/null
+++ b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: test-1
+Depends:
+ python3-all:any
diff --git a/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/test-1 b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/test-1
new file mode 100644
index 0000000..a7aaf84
--- /dev/null
+++ b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/debian/tests/test-1
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Good
+echo $(py3versions -s)
+echo $(py3versions -vs)
+echo $(py3versions -sv)
+echo $(py3versions -v)
+
+# Bad
+echo $(py3versions -i)
+echo $(py3versions -vi)
+echo $(py3versions --installed)
+echo $(py3versions --verbose --installed)
diff --git a/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/fill-values b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/fill-values
new file mode 100644
index 0000000..209cf4f
--- /dev/null
+++ b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: runtime-test-file-uses-installed-python-versions
+Description: Tests for py3versions -i
+Extra-Build-Depends: python3-all
diff --git a/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/desc b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/desc
new file mode 100644
index 0000000..cbb5a5a
--- /dev/null
+++ b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/desc
@@ -0,0 +1,2 @@
+Testname: runtime-test-file-uses-installed-python-versions
+Check: testsuite
diff --git a/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/hints b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/hints
new file mode 100644
index 0000000..b493a59
--- /dev/null
+++ b/t/recipes/checks/testsuite/runtime-test-file-uses-installed-python-versions/eval/hints
@@ -0,0 +1,4 @@
+runtime-test-file-uses-installed-python-versions (source): runtime-test-file-uses-installed-python-versions py3versions -vi [debian/tests/test-1:11]
+runtime-test-file-uses-installed-python-versions (source): runtime-test-file-uses-installed-python-versions py3versions -i [debian/tests/test-1:10]
+runtime-test-file-uses-installed-python-versions (source): runtime-test-file-uses-installed-python-versions py3versions --verbose --installed [debian/tests/test-1:13]
+runtime-test-file-uses-installed-python-versions (source): runtime-test-file-uses-installed-python-versions py3versions --installed [debian/tests/test-1:12]