diff options
author | Thomas F Herbert <therbert@redhat.com> | 2016-07-21 08:35:18 -0400 |
---|---|---|
committer | Thomas F Herbert <therbert@redhat.com> | 2016-07-21 11:29:21 -0400 |
commit | 55ef39e7796633029e5a3e061532e0984c2be798 (patch) | |
tree | af6c3785cff457ed6422d2cde146ffc244cb0ad4 /build/BuildAndTestOVS.sh | |
parent | 28de4fbd016fe9dd0f393ba9d530551825b94f1a (diff) |
Add build of OVS and OVS kmod with interim (EXPERIMENTAL) NSH patches
Install prerequisites.
Change-Id: I41fa20db9763df05cbdb35dc1e9aa6f518982848
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
Diffstat (limited to 'build/BuildAndTestOVS.sh')
-rwxr-xr-x | build/BuildAndTestOVS.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/build/BuildAndTestOVS.sh b/build/BuildAndTestOVS.sh index f12ab3e..0a5f357 100755 --- a/build/BuildAndTestOVS.sh +++ b/build/BuildAndTestOVS.sh @@ -171,5 +171,37 @@ echo "===============================" echo copy rpms to release dir echo cp $RPMDIR/RPMS/x86_64/* $TMP_RELEASE_DIR +rm $RPMDIR/RPMS/x86_64/* +# +# Build OVS without DPDK, apply patches and build kmod. +# +setkmod="-k" +OVS_PATCH="yes" +setdpdk= + +echo "===================================================" +echo build OVS without DPDK, apply patches and build kmod. +echo + ./build_ovs_rpm.sh $setnocheck -g $TAG $setdpdk $setkmod -p $OVS_PATCH -u $OVS_REPO_URL +# +# Test rpm +# +if [ ! -z $TESTRPM ]; then + ./test_ovs_rpm.sh $setdpdk $setkmod +fi + +# +# If tests pass, copy rpms to release dir +# +echo "===============================" +echo copy rpms to release dir and add experimental tag +echo +cd $RPMDIR/RPMS/x86_64 +for i in `ls openvswitch*.rpm` +do + echo copying $i to $TMP_RELEASE_DIR/EXPERIMENTAL-$i + cp $i $TMP_RELEASE_DIR/EXPERIMENTAL-$i + echo +done exit 0 |