From: cgeoffroy Date: Mon, 7 Mar 2016 17:31:58 +0000 (+0100) Subject: Creating the test scripts used during CI X-Git-Tag: v3.1~167^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=f5a9169c0af28f1be3e878d12c7905562e513c1b;p=osm%2Fvim-emu.git Creating the test scripts used during CI --- diff --git a/.gitignore b/.gitignore index 6b050ca..fc2456c 100755 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,6 @@ target/ #Pytest .pytest.restart + +# JUnit xml +utils/ci/junit-xml/*.xml \ No newline at end of file diff --git a/utils/ci/build_01_unit_tests.sh b/utils/ci/build_01_unit_tests.sh new file mode 100755 index 0000000..ab6ece3 --- /dev/null +++ b/utils/ci/build_01_unit_tests.sh @@ -0,0 +1,13 @@ +#! /bin/bash -e +set -x + +# Go to the 'root' directory +SCRIPT_DIR=$(dirname $(readlink -f $0)) +BASE_DIR=$(readlink -f "${SCRIPT_DIR}/../..") +cd ${BASE_DIR} + +# Remove old test output +rm -rf utils/ci/junit-xml/* + +# Launch the unit testing on emuvim +py.test -v --junit-xml=utils/ci/junit-xml/pytest_emuvim.xml src/emuvim diff --git a/utils/ci/build_02_integration_tests.sh b/utils/ci/build_02_integration_tests.sh new file mode 100755 index 0000000..af027e6 --- /dev/null +++ b/utils/ci/build_02_integration_tests.sh @@ -0,0 +1,4 @@ +#! /bin/bash -e +set -x + +son-emu-cli | grep 'Usage' diff --git a/utils/ci/junit-xml/.gitkeep b/utils/ci/junit-xml/.gitkeep new file mode 100644 index 0000000..e69de29