aboutsummaryrefslogtreecommitdiff
path: root/tests/rt_generic.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-13 09:58:58 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-18 23:06:09 -0400
commit261c91deb3167bd30ede49ded650b7e659c16111 (patch)
tree6ea85634044919356b3fa90dc45ee32f0f83fb93 /tests/rt_generic.sh
parent8f17199d16bcdb29516d34514f95d1a117f6bd26 (diff)
downloadstasis-261c91deb3167bd30ede49ded650b7e659c16111.tar.gz
Update integration test to utilize the multiprocessing pool
Diffstat (limited to 'tests/rt_generic.sh')
-rw-r--r--tests/rt_generic.sh19
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/rt_generic.sh b/tests/rt_generic.sh
index 6da953d..672a8a0 100644
--- a/tests/rt_generic.sh
+++ b/tests/rt_generic.sh
@@ -6,10 +6,16 @@ if [ -n "$GITHUB_TOKEN" ] && [ -z "$STASIS_GH_TOKEN"]; then
else
export STASIS_GH_TOKEN="anonymous"
fi
+python_versions=(
+ 3.10
+ 3.11
+ 3.12
+)
topdir=$(pwd)
ws="rt_workspace"
+rm -rf "$ws"
mkdir -p "$ws"
ws="$(realpath $ws)"
@@ -28,9 +34,12 @@ popd
pushd "$ws"
type -P stasis
type -P stasis_indexer
+ retcode=0
- stasis --no-docker --no-artifactory --unbuffered -v "$topdir"/generic.ini
- retcode=$?
+ for py_version in "${python_versions[@]}"; do
+ stasis --python "$py_version" --no-docker --no-artifactory --unbuffered -v "$topdir"/generic.ini
+ retcode+=$?
+ done
set +x
@@ -54,7 +63,7 @@ pushd "$ws"
for cond in "${fail_on_main[@]}"; do
if grep --color -H -n "$cond" "$x" >&2; then
echo "ERROR DETECTED IN $x!" >&2
- retcode=2
+ retcode+=1
fi
done
done
@@ -94,6 +103,8 @@ pushd "$ws"
done
popd
-rm -rf "$ws"
+if [ -z "$RT_KEEP_WORKSPACE"]; then
+ rm -rf "$ws"
+fi
exit $retcode \ No newline at end of file