Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: build: enable ut per default
......................................................................

packaging: build: enable ut per default

spec: disable when quick or minimal build are selected.

Change-Id: Ib334c4c297dc093a5fe6d62d6f05937d9d0db72d
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M Makefile
M ovirt-engine.spec.in
2 files changed, 12 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/24/19724/1

diff --git a/Makefile b/Makefile
index e8c936f..eba5b89 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@
 BUILD_GWT_WEBADMIN=1
 BUILD_LOCALES=0
 BUILD_DEV=0
-BUILD_UT=0
+BUILD_UT=1
 EXTRA_BUILD_FLAGS=
 DEV_REBUILD=1
 DEV_BUILD_GWT_DRAFT=0
diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in
index f8f9862..2f49c76 100644
--- a/ovirt-engine.spec.in
+++ b/ovirt-engine.spec.in
@@ -3,14 +3,24 @@
 # CUSTOMIZATION-BEGIN
 #
 # ovirt_build_extra_flags
+# ovirt_build_ut
 %if 0%{?ovirt_build_quick}
+%global _ovirt_build_ut 0
 %global ovirt_build_gwt 0
 %global ovirt_build_locales 0
 %global __jar_repack 0
 %endif
 %if 0%{?ovirt_build_minimal}
+%global _ovirt_build_ut 0
 %global ovirt_build_locales 0
 %global _ovirt_build_extra_flags -D gwt.userAgent=gecko1_8
+%endif
+%if 0%{!?ovirt_build_ut:1}
+%if 0%{?_ovirt_build_ut:1}
+%global ovirt_build_ut %{_ovirt_build_ut}
+%else
+%global ovirt_build_ut 1
+%endif
 %endif
 %if 0%{!?ovirt_build_gwt:1}
 %global ovirt_build_gwt 1
@@ -97,6 +107,7 @@
        -j1 \\\
        BUILD_GWT=%{ovirt_build_gwt} \\\
        BUILD_LOCALES=%{ovirt_build_locales} \\\
+       BUILD_UT=%{ovirt_build_ut} \\\
        PACKAGE_NAME=%{name} \\\
        RPM_VERSION=%{version} \\\
        RPM_RELEASE=%{release} \\\


-- 
To view, visit http://gerrit.ovirt.org/19724
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib334c4c297dc093a5fe6d62d6f05937d9d0db72d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to