Creating the test scripts used during CI
authorcgeoffroy <geoffroy.chollon@thalesgroup.com>
Mon, 7 Mar 2016 17:31:58 +0000 (18:31 +0100)
committercgeoffroy <geoffroy.chollon@thalesgroup.com>
Mon, 7 Mar 2016 18:06:28 +0000 (19:06 +0100)
.gitignore
utils/ci/build_01_unit_tests.sh [new file with mode: 0755]
utils/ci/build_02_integration_tests.sh [new file with mode: 0755]
utils/ci/junit-xml/.gitkeep [new file with mode: 0644]

index 6b050ca..fc2456c 100755 (executable)
@@ -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 (executable)
index 0000000..ab6ece3
--- /dev/null
@@ -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 (executable)
index 0000000..af027e6
--- /dev/null
@@ -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 (file)
index 0000000..e69de29