summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjjb/apex/apex-unit-test.sh17
-rw-r--r--jjb/apex/apex.yml8
2 files changed, 25 insertions, 0 deletions
diff --git a/jjb/apex/apex-unit-test.sh b/jjb/apex/apex-unit-test.sh
new file mode 100755
index 000000000..5c4341741
--- /dev/null
+++ b/jjb/apex/apex-unit-test.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+set -o errexit
+set -o nounset
+set -o pipefail
+# log info to console
+echo "Starting unit tests for Apex..."
+echo "---------------------------------------------------------------------------------------"
+echo
+
+
+pushd ci/ > /dev/null
+sudo CONFIG="${WORKSPACE}/build" LIB="${WORKSPACE}/lib" ./clean.sh
+./test.sh
+popd
+
+echo "--------------------------------------------------------"
+echo "Unit Tests Done!"
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index efd8a4757..6c14a8107 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -127,6 +127,7 @@
- 'apex-verify-{stream2}'
builders:
+ - 'apex-unit-test'
- 'apex-build'
- trigger-builds:
- project: 'apex-deploy-virtual-os-odl_l2-nofeature-ha-{stream2}'
@@ -227,6 +228,7 @@
max-total: 10
builders:
+ - 'apex-unit-test'
- 'apex-build'
- trigger-builds:
- project: 'apex-deploy-virtual-os-nosdn-nofeature-ha-{stream1}'
@@ -787,6 +789,12 @@
# builder macros
########################
- builder:
+ name: 'apex-unit-test'
+ builders:
+ - shell:
+ !include-raw: ./apex-unit-test.sh
+
+- builder:
name: 'apex-build'
builders:
- shell: