From f5a9169c0af28f1be3e878d12c7905562e513c1b Mon Sep 17 00:00:00 2001 From: cgeoffroy Date: Mon, 7 Mar 2016 18:31:58 +0100 Subject: [PATCH] Creating the test scripts used during CI --- .gitignore | 3 +++ utils/ci/build_01_unit_tests.sh | 13 +++++++++++++ utils/ci/build_02_integration_tests.sh | 4 ++++ utils/ci/junit-xml/.gitkeep | 0 4 files changed, 20 insertions(+) create mode 100755 utils/ci/build_01_unit_tests.sh create mode 100755 utils/ci/build_02_integration_tests.sh create mode 100644 utils/ci/junit-xml/.gitkeep 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 -- 2.25.1