fixeria submitted this change.

View Change

Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
contrib/jenkins.sh: separate JOB_TYPE for card tests

A separate job gives us a possibility to skip tests requiring physical
cards for specific commits that do not touch the core logic. See the
related commits in osmo-ci.git.

Change-Id: If76d812ee43b7eb3b57fdc660c60bf31fbff5b16
Related: osmo-ci.git Ia48d1b468f65d7c2e6b4128eeac36d0f3d03c45e
Related: osmo-ci.git I986d88545f64e13cd571ba9ff56bc924822e39a0
---
M contrib/jenkins.sh
1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index b95e80a..74198d7 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -32,15 +32,21 @@
# Execute automatically discovered unit tests first
python -m unittest discover -v -s tests/unittests

- # Run pySim-prog integration tests (requires physical cards)
- cd tests/pySim-prog_test/
- ./pySim-prog_test.sh
- cd ../../
-
# Run pySim-trace test
tests/pySim-trace_test/pySim-trace_test.sh
+ ;;
+"card-test") # tests requiring physical cards
+ virtualenv -p python3 venv --system-site-packages
+ . venv/bin/activate

- # Run pySim-shell integration tests (requires physical cards)
+ pip install -r requirements.txt
+
+ # Run pySim-prog integration tests
+ cd tests/pySim-prog_test/
+ ./pySim-prog_test.sh
+ cd ../../
+
+ # Run pySim-shell integration tests
python3 -m unittest discover -v -s ./tests/pySim-shell_test/

# Run pySim-smpp2sim test

To view, visit change 42658. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: If76d812ee43b7eb3b57fdc660c60bf31fbff5b16
Gerrit-Change-Number: 42658
Gerrit-PatchSet: 5
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier@sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>