- rename csit-vpp-functional-hw-tb2 job to csit-vpp-perf-hw (as testing performance) with unified trigger for performance testing
- parameterized job for future extension
Change-Id: I72d1562fad8ad188930f39374f3ebfe8ebb984aa
Signed-off-by: pmikus <pmikus@cisco.com>
description: 'Run VPP functional tests on VIRL.'
jobs:
description: 'Run VPP functional tests on VIRL.'
jobs:
- - 'csit-vpp-functional-hw-tb2'
+ - 'csit-vpp-perf-hw-{type}'
- 'csit-vpp-functional-virl'
- 'csit-vpp-functional-nodepool'
- 'csit-vpp-master-verify-weekly'
project: 'csit'
branch: 'master'
- 'csit-vpp-functional-virl'
- 'csit-vpp-functional-nodepool'
- 'csit-vpp-master-verify-weekly'
project: 'csit'
branch: 'master'
- job-template:
name: 'csit-vpp-functional-virl'
- job-template:
name: 'csit-vpp-functional-virl'
output-path: ''
- job-template:
output-path: ''
- job-template:
- name: 'csit-vpp-functional-hw-tb2'
+ name: 'csit-vpp-perf-hw-{type}'
project-type: freestyle
node: verify
project-type: freestyle
node: verify
project: '{project}'
- gerrit-parameter:
branch: '{branch}'
project: '{project}'
- gerrit-parameter:
branch: '{branch}'
+ - type-parameter:
+ type: '{type}'
scm:
- gerrit-trigger-scm:
scm:
- gerrit-trigger-scm:
- gerrit-trigger-manually-triggered:
name: '{project}'
branch: '{branch}'
- gerrit-trigger-manually-triggered:
name: '{project}'
branch: '{branch}'
- comment-trigger-value: 'hw-perf-check'
+ comment-trigger-value: 'verify-perf-{type}'
- !include-raw-escape jjb/csit/include-raw-csit-vpp-functional-hw-tb2.sh
+ !include-raw-escape jjb/csit/include-raw-csit-vpp-perf-hw.sh
publishers:
- archive-artifacts:
publishers:
- archive-artifacts:
message: "Verified CSIT version for VPP testing"
create-tag: true
update-tag: true
message: "Verified CSIT version for VPP testing"
create-tag: true
update-tag: true
+
+- parameter:
+ name: test-type-parameter
+
+ parameters:
+ - string:
+ name: TYPE
+ default: '{type}'
+ description: "Test TYPE parameter if not given by trigger"
+++ /dev/null
-#!/bin/bash
-
-# execute csit bootstrap script if it exists
-if [ -e bootstrap-hw-tb2.sh ]
-then
- # make sure that bootstrap.sh is executable
- chmod +x bootstrap-hw-tb2.sh
- # run the script
- ./bootstrap-hw-tb2.sh
-else
- echo 'ERROR: No bootstrap-hw-tb2.sh found'
- exit 1
-fi
-
-# vim: ts=4 ts=4 sts=4 et :
--- /dev/null
+#!/bin/bash
+
+export TEST_TAG="PERFTEST_${TYPE^^}"
+
+# execute csit bootstrap script if it exists
+if [ ! -e bootstrap-hw-tb2.sh ]
+then
+ echo 'ERROR: No bootstrap-hw-tb2.sh found'
+ exit 1
+fi
+
+# make sure that bootstrap-verify-perf.sh is executable
+chmod +x bootstrap-hw-tb2.sh
+# run the script
+./bootstrap-hw-tb2.sh
+
+# vim: ts=4 ts=4 sts=4 et :