From d990e237ed827ec392076b2b8447fce32d58ef3d Mon Sep 17 00:00:00 2001 From: Casey Faist <caseylfaist@gmail.com> Date: Thu, 6 Sep 2018 11:14:25 -0400 Subject: [PATCH] update tests to know about more pythons --- .../{python3 => python3_4}/requirements.txt | 0 test/fixtures/python3_4/runtime.txt | 1 + test/fixtures/python3_5/requirements.txt | 1 + test/fixtures/python3_5/runtime.txt | 1 + test/fixtures/python3_6/requirements.txt | 1 + test/fixtures/python3_7/requirements.txt | 1 + test/fixtures/python3_7/runtime.txt | 1 + test/run | 22 +++++++++++++++++-- 8 files changed, 26 insertions(+), 2 deletions(-) rename test/fixtures/{python3 => python3_4}/requirements.txt (100%) create mode 100644 test/fixtures/python3_4/runtime.txt create mode 100644 test/fixtures/python3_5/requirements.txt create mode 100644 test/fixtures/python3_5/runtime.txt create mode 100644 test/fixtures/python3_6/requirements.txt create mode 100644 test/fixtures/python3_7/requirements.txt create mode 100644 test/fixtures/python3_7/runtime.txt diff --git a/test/fixtures/python3/requirements.txt b/test/fixtures/python3_4/requirements.txt similarity index 100% rename from test/fixtures/python3/requirements.txt rename to test/fixtures/python3_4/requirements.txt diff --git a/test/fixtures/python3_4/runtime.txt b/test/fixtures/python3_4/runtime.txt new file mode 100644 index 00000000..cc8325f7 --- /dev/null +++ b/test/fixtures/python3_4/runtime.txt @@ -0,0 +1 @@ +python-3.4.9 diff --git a/test/fixtures/python3_5/requirements.txt b/test/fixtures/python3_5/requirements.txt new file mode 100644 index 00000000..663bd1f6 --- /dev/null +++ b/test/fixtures/python3_5/requirements.txt @@ -0,0 +1 @@ +requests \ No newline at end of file diff --git a/test/fixtures/python3_5/runtime.txt b/test/fixtures/python3_5/runtime.txt new file mode 100644 index 00000000..e6391f4a --- /dev/null +++ b/test/fixtures/python3_5/runtime.txt @@ -0,0 +1 @@ +python-3.5.6 diff --git a/test/fixtures/python3_6/requirements.txt b/test/fixtures/python3_6/requirements.txt new file mode 100644 index 00000000..663bd1f6 --- /dev/null +++ b/test/fixtures/python3_6/requirements.txt @@ -0,0 +1 @@ +requests \ No newline at end of file diff --git a/test/fixtures/python3_7/requirements.txt b/test/fixtures/python3_7/requirements.txt new file mode 100644 index 00000000..663bd1f6 --- /dev/null +++ b/test/fixtures/python3_7/requirements.txt @@ -0,0 +1 @@ +requests \ No newline at end of file diff --git a/test/fixtures/python3_7/runtime.txt b/test/fixtures/python3_7/runtime.txt new file mode 100644 index 00000000..881a2db1 --- /dev/null +++ b/test/fixtures/python3_7/runtime.txt @@ -0,0 +1 @@ +python-3.7.0 diff --git a/test/run b/test/run index 5277176b..471c6b4e 100755 --- a/test/run +++ b/test/run @@ -86,12 +86,30 @@ testPython2() { assertCapturedSuccess } -testPython3() { - compile "python3" +testPython3_4() { + compile "python3_4" + assertCaptured "python-3.4.9" + assertCapturedSuccess +} + +testPython3_5() { + compile "python3_5" + assertCaptured "python-3.5.6" + assertCapturedSuccess +} + +testPython3_6() { + compile "python3_6" assertCaptured "python-3.6.6" assertCapturedSuccess } +testPython3_7() { + compile "python3_7" + assertCaptured "python-3.7.0" + assertCapturedSuccess +} + testGitEgg() { compile "git-egg" assertCaptured "requests" -- GitLab