From 7ff7fa44629a03f7e3f7280cac609eadde260cc6 Mon Sep 17 00:00:00 2001 From: Casey Faist Date: Thu, 17 Oct 2019 15:01:32 -0700 Subject: [PATCH] add 3.8 tests --- test/fixtures/python3_8/requirements.txt | 1 + test/fixtures/python3_8/runtime.txt | 1 + test/fixtures/python3_8_fail/requirements.txt | 1 + test/fixtures/python3_8_fail/runtime.txt | 1 + test/run-versions | 19 +++++++++++++++++++ 5 files changed, 23 insertions(+) create mode 100644 test/fixtures/python3_8/requirements.txt create mode 100644 test/fixtures/python3_8/runtime.txt create mode 100644 test/fixtures/python3_8_fail/requirements.txt create mode 100644 test/fixtures/python3_8_fail/runtime.txt diff --git a/test/fixtures/python3_8/requirements.txt b/test/fixtures/python3_8/requirements.txt new file mode 100644 index 0000000..f229360 --- /dev/null +++ b/test/fixtures/python3_8/requirements.txt @@ -0,0 +1 @@ +requests diff --git a/test/fixtures/python3_8/runtime.txt b/test/fixtures/python3_8/runtime.txt new file mode 100644 index 0000000..73b1cf8 --- /dev/null +++ b/test/fixtures/python3_8/runtime.txt @@ -0,0 +1 @@ +python-3.8.0 diff --git a/test/fixtures/python3_8_fail/requirements.txt b/test/fixtures/python3_8_fail/requirements.txt new file mode 100644 index 0000000..7e10602 --- /dev/null +++ b/test/fixtures/python3_8_fail/requirements.txt @@ -0,0 +1 @@ +flask diff --git a/test/fixtures/python3_8_fail/runtime.txt b/test/fixtures/python3_8_fail/runtime.txt new file mode 100644 index 0000000..fbcec36 --- /dev/null +++ b/test/fixtures/python3_8_fail/runtime.txt @@ -0,0 +1 @@ +python-3.8.99 diff --git a/test/run-versions b/test/run-versions index 6feb5e1..15c7e38 100755 --- a/test/run-versions +++ b/test/run-versions @@ -146,6 +146,25 @@ testPython3_7_fail() { assertCapturedError } +testPython3_8() { + updateVersion "python3_8" $LATEST_38 + compile "python3_8" + if [[ $STACK = "cedar-14" ]]; then + assertCapturedError + else + assertNotCaptured "security update" + assertCaptured $LATEST_38 + assertCaptured "Installing SQLite3" + assertCapturedSuccess + fi +} + +testPython3_8_fail() { + compile "python3_8_fail" + assertCaptured "Aborting" + assertCapturedError +} + pushd $(dirname 0) >/dev/null popd >/dev/null