Skip to content

Commit

Permalink
Use shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Aug 16, 2023
1 parent 90faf64 commit 2d9f754
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 3 deletions.
7 changes: 7 additions & 0 deletions tests/enmeshed-runtime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -ex

npm i

env CONNECTION_STRING=mongodb://localhost:27017 npx jest -i
2 changes: 1 addition & 1 deletion tests/enmeshed-runtime.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 7 additions & 0 deletions tests/python-example-auth.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -ex

pip3 install pymongo

python3 pymongo_test.py mongodb://user:password@localhost:27017/?authMechanism=PLAIN
2 changes: 1 addition & 1 deletion tests/python-example-auth.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 7 additions & 0 deletions tests/python-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -ex

pip3 install pymongo

python3 pymongo_test.py mongodb://localhost:27017/
2 changes: 1 addition & 1 deletion tests/python-example.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 2d9f754

Please sign in to comment.