From 2d9f754d0c914df81ccd6710dba59217aac5a265 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Wed, 16 Aug 2023 16:57:55 +0400 Subject: [PATCH] Use shell scripts --- tests/enmeshed-runtime.sh | 7 +++++++ tests/enmeshed-runtime.yml | 2 +- tests/python-example-auth.sh | 7 +++++++ tests/python-example-auth.yml | 2 +- tests/python-example.sh | 7 +++++++ tests/python-example.yml | 2 +- 6 files changed, 24 insertions(+), 3 deletions(-) create mode 100755 tests/enmeshed-runtime.sh create mode 100755 tests/python-example-auth.sh create mode 100755 tests/python-example.sh diff --git a/tests/enmeshed-runtime.sh b/tests/enmeshed-runtime.sh new file mode 100755 index 000000000..89ee945f1 --- /dev/null +++ b/tests/enmeshed-runtime.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -ex + +npm i + +env CONNECTION_STRING=mongodb://localhost:27017 npx jest -i diff --git a/tests/enmeshed-runtime.yml b/tests/enmeshed-runtime.yml index 6f76ab6b6..bdc0b3af4 100644 --- a/tests/enmeshed-runtime.yml +++ b/tests/enmeshed-runtime.yml @@ -1,6 +1,6 @@ --- runner: command -args: ["sh", "-c", "npm i && CONNECTION_STRING=mongodb://localhost:27017 npx jest -i"] +args: ../enmeshed-runtime.sh results: common: diff --git a/tests/python-example-auth.sh b/tests/python-example-auth.sh new file mode 100755 index 000000000..b78eff407 --- /dev/null +++ b/tests/python-example-auth.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -ex + +pip3 install pymongo + +python3 pymongo_test.py mongodb://user:password@localhost:27017/?authMechanism=PLAIN diff --git a/tests/python-example-auth.yml b/tests/python-example-auth.yml index a4a41dcf4..0855fbe58 100644 --- a/tests/python-example-auth.yml +++ b/tests/python-example-auth.yml @@ -1,7 +1,7 @@ --- runner: command dir: python-example -args: ["sh", "-c", "pip3 install pymongo && python3 pymongo_test.py mongodb://user:password@localhost:27017/?authMechanism=PLAIN"] +args: ../python-example-auth.sh results: ferretdb: diff --git a/tests/python-example.sh b/tests/python-example.sh new file mode 100755 index 000000000..8c22f9c08 --- /dev/null +++ b/tests/python-example.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -ex + +pip3 install pymongo + +python3 pymongo_test.py mongodb://localhost:27017/ diff --git a/tests/python-example.yml b/tests/python-example.yml index 7bfcad218..46a4f3711 100644 --- a/tests/python-example.yml +++ b/tests/python-example.yml @@ -1,7 +1,7 @@ --- runner: command dir: python-example -args: ["sh", "-c", "pip3 install pymongo && python3 pymongo_test.py mongodb://localhost:27017/"] +args: ../python-example.sh results: common: