[PATCH xorg-gtest v2 0/9] Switch from a precompiled library to a source distribution

Gaetan Nadon memsize at videotron.ca
Tue Mar 13 17:53:11 PDT 2012


On 12-03-13 02:47 PM, Chase Douglas wrote:
> The major change in this round is to patch 8. Instead of instructing users to
> include an automake snippet installed on the system, the README now says to copy
> the snippet into the project. The snippet needs to be available before
> autoreconf is run. It would be possible to copy the snippet into place in
> autogen.sh, but that would be a very non-standard solution to the problem and
> would require the user to have xorg-gtest installed.
>
> The xorg-gtest.m4 macro now sets BASE_CXXFLAGS and STRICT_CXXFLAGS properly.
>
> The other change is the addition of patch 9. It allows for the Xorg binary to be
> set through a compilation flag. This should make it possible to use xorg-gtest's
> main() with an Xorg server built in the xserver project.
>
> All XORG_MACROS_VERSION calls have been updated to require 1.17 for
> XORG_ENABLE_INTEGRATION_TESTS.
>
> -- Chase
>

Some quick testing:

Applying: Ship xorg-gtest.m4 and Makefile-xorg-gtest.am
/home/nadon/xorg/src/test/xorg-gtest/.git/rebase-apply/patch:45:
trailing whitespace.
Moreover, a custom main() function that takes care of setting up the
/home/nadon/xorg/src/test/xorg-gtest/.git/rebase-apply/patch:47:
trailing whitespace.
replacement for libgtest_main.a
warning: 2 lines add whitespace errors.

-----------------------------------------------------------------------------

$ make distcheck:
make[3]: Entering directory
`/home/nadon/xorg/src/test/xorg-gtest/xorg-gtest-0.1.1/_build/examples'
  CXX    libgtest_a-gtest-all.o
  CXX    libxorg_gtest_a-xorg-gtest-all.o
  CXX    libxorg_gtest_main_a-xorg-gtest_main.o
  CXX    xorg-gtest-example.o
In file included from ../../src/device.cpp:28:0,
                 from ../../src/xorg-gtest-all.cpp:28:
../../include/xorg/gtest/evemu/device.h:36:19: fatal error: evemu.h: No
such file or directory
compilation terminated.
make[3]: *** [libxorg_gtest_a-xorg-gtest-all.o] Error 1

-----------------------------------------------------------------------------

    *** Update comment as well with 1.17  *** We've all done this :-)
# Require X.Org macros 1.16 or later for XORG_TESTSET_CFLAG
m4_ifndef([XORG_MACROS_VERSION],
      [m4_fatal([must install xorg-macros 1.16 or later before running
autoconf/autogen])])
XORG_MACROS_VERSION(1.17)

-----------------------------------------------------------------------------
Running "make all" or "make clean" does not produce anything, no targets
to build or clean. This is strange as distcheck does find something to
compile. Sorry, I did not have time to investigate, maybe it is just a
local problem.

I have libgtest-dev installed but not libutouch-evemu-dev.








More information about the xorg-devel mailing list