Age | Commit message (Collapse) | Author | Files | Lines |
|
If two xorg-gtest binaries are executed one after another, the second
one may attempt to start its X server before the first one's X server
has fully shut down. This leads to the second X server not starting.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
The X.org server uses the first server layout, and provides one if none
are found. If a layout is specified in /usr/share/X11/xorg.conf.d, the
dummy video device configuration may not be used.
This change ensures that the dummy video device is used by providing a
full server layout in the main configuration file.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
This only takes effect if the program links in the provided main()
function. If you provide your own main() you must handle signals
yourself.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
When a test creates a test trackpad device, an already running X server
will likely grab the event node. This causes the dummy X server to fail
to instantiate the device, and ends in test failure.
This will ensure that the normal X server does not attempt to grab the
test device.
Signed-off-by: Thomas Voß <thomas.voss@canonical.com>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
See README for instructions on how to use them.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
Usually, xorg-gtest requires the dummy video driver. It also requires an
X server at least version 1.12, or to be run as root when testing with a
previous X server. Print this information when the server fails to
start, and point the user to the log file for further details.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
This can be accomplished by compiling xorg-gtest with
-DDEFAULT_XORG_SERVER=path/to/Xorg.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
This mimics the Google Test distribution mechanism. See:
http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
Google Test does not recommend using precompiled gtest libraries. See:
http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog
This change modifies the build system so the examples build the gtest
and xorg-gtest libraries and link against the locally built libraries
instead of any other precompiled libraries on the system. It uses the
same compiler flags to compile everything so the C++ One-Definition Rule
is not broken.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
This will make compiling the project each time it is used much easier.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
This matches the library name and will help with understanding what the
includes since we are now shipping the source code.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
The header merely includes all the other headers. It will make building
xorg-gtest into each project easier.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
Google Test suggests that source code be built into each test rather
than use a pre-compiled library. This change follows their lead and
installs the xorg-gtest source code.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
This makes the source file match the built executable.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
|
|
Typically all modules have a single statement unless some output files
are conditionally generated.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
The variable is not used in any makefile. Configure.ac does not participate
in the determination of the conf path. The final value of datadir is not
known at config time, only at make time.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
This replaces current code attempting to perform similar function.
In configure.ac, the code is gcc specific.
The src/Makefile.am has $(WARNING_FLAGS) rather than $(WARNING_CPPFLAGS)
http://cgit.freedesktop.org/xorg/util/macros/tree/xorg-macros.m4.in
Looking at the xorg-gtest module --help text:
--enable-strict-compilation
Enable all warnings from compiler and make them
errors (default: disabled)
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
X.Org has a requirement to support 1.10 or later.
The silent rules are handled by XORG_DEFAULT_OPTIONS
We do not write the version number, but refer to the wiki:
http://www.x.org/wiki/ModularDevelopersGuide#GNU_Build_System
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Already included in XORG_DEFAULT_OPTIONS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Device uses utouch-evemu for input device recording playback through the
Linux kernel.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Stephen Webb <stephen.webb@canonical.com>
|
|
Now that the xorg-gtest data build has been separated from the src
build, the location definition is broken and results in xorg-gtest
looking for /dummy.conf instead of ${datadir}/xorg/gtest/dummy.conf.
This change fixes the location
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Otherwise, AM_CPPFLAGS could not be overridden in Makefile.am.
Also, move AM_CXXFLAGS to the top of src/Makefile.am to match.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
The X.org macros package version 1.16.2 is the first to define
BASE_CXXFLAGS; however, we don't need to require version 1.16.2. If it's
available, then great. If not, $(BASE_CXXFLAGS) will be empty and
nothing terrible will happen.
Included in this commit is a fix for an error, now that we are using
BASE_CXXFLAGS, for shadowing variables from parent contexts.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
This will simplify things when we add more features to xorg-gtest.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Copied from http://www.x.org/releases/X11R7.6/doc/xorg-docs/License.html
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
|
AC_PROG_LIBTOOL initializes libtool, contrary to what the name may suggest.
It has been renamed to LT_INIT in libtool v2. However X.Org has a requirement
to support libtool v1.5.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
This is done when autoconf runs aclocal.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
xorg-server flags are not needed. Including them also causes
-fvisibility=hidden to be used, which breaks the build output.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Gaeton Nadon <memsize@videotron.ca>
|
|
Use the util-macros implementation to generate the ChangeLog
and the INSTALL file.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
The $(top_srcdir) path is needed to locate the source as it is not
in the same dir as the generated files.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
This reverts commit 839257c03d033f4352243ac70be9f78c5a8dfdd0.
This module has different requirements for autogen.sh.
The upcoming version with the variable NOCONFIGURE
would probably be satisfactory.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Need XSERVER_CFLAGS to locate Xlib.h
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Need XSERVER_CFLAGS to locate Xlib.h
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
The one here does not work the same way. It is very confusing when
these don't work the same way for all xorg modules.
It can be proposed as a new version version for all xorg modules
if it can be deemed to be more desirable.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
This fixes build failures if one only links against libxorg-gtest_main
but does not use any other xorg-gtest symbols.
Reported-by: Stephen Webb <stephen.webb@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
It would be nice to explicitly list each class method, but there's no
documentation on how to do it, and everything I try fails. At least this
ensures we don't ship visible symbols that are really part of GTest.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Stephen Webb <stephen.webb@canonical.com>
|
|
Instead of shoving all parameters in the constructor.
Signed-off-by: Daniel d'Andrada <daniel.dandrada@canonical.com>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
This ensures the header is shipped in the dist tarball.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|
|
The project could not be built from scratch due to erroneous
Autofoo setup. This commit makes it work.
Signed-off-by: Jussi Pakkanen <jussi.pakkanen@canonical.com>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
|