Skip to content

Commit fb876c9

Browse files
committed
build: Don't run tests in rpm makefile targets.
The RPM build makefile targets are helpful during development and testing, but I personally almost never want the tests to run when I use them. Leave tests on by default in the spec file for when the package is built by distro build systems, but disable it by default in the Makefile targets and update the documentation accordingly. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Lance Richardson <lrichard@redhat.com> Acked-by: Aaron Conole <aconole@redhat.com>
1 parent d2c0927 commit fb876c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Documentation/intro/install/fedora.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,14 @@ can be added:
8787

8888
::
8989

90-
$ make rpm-fedora RPMBUILD_OPT="--with dpdk"
90+
$ make rpm-fedora RPMBUILD_OPT="--with dpdk --without check"
9191

92-
The above commands automatically run the Open vSwitch unit tests, which can
93-
take several minutes. To reduce the build time by disabling the execution of
94-
these tests, the ``--without check`` option can be added:
92+
You can also have the above commands automatically run the Open vSwitch unit
93+
tests. This can take several minutes.
9594

9695
::
9796

98-
$ make rpm-fedora RPMBUILD_OPT="--without check"
97+
$ make rpm-fedora RPMBUILD_OPT="--with check"
9998

10099
Kernel OVS Tree Datapath RPM
101100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

rhel/automake.mk

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ $(srcdir)/rhel/openvswitch-fedora.spec: rhel/openvswitch-fedora.spec.in $(top_bu
5555
$(update_rhel_spec)
5656

5757
RPMBUILD_TOP := $(abs_top_builddir)/rpm/rpmbuild
58+
RPMBUILD_OPT ?= --without check
5859

5960
# Build user-space RPMs
6061
rpm-fedora: dist $(srcdir)/rhel/openvswitch-fedora.spec

0 commit comments

Comments
 (0)