xserver/test
Jeremy Huddleston Sequoia 433f53a1a0 tests: Fix build failure from missing micmap.c
FAILED: test/tests
clang  -o test/tests test/tests.p/.._mi_miinitext.c.o test/tests.p/fixes.c.o test/tests.p/input.c.o test/tests.p/list.c.o test/tests.p/misc.c.o test/tests.p/signal-logging.c.o test/tests.p/string.c.o test/tests.p/test_xkb.c.o test/tests.p/tests-common.c.o test/tests.p/tests.c.o test/tests.p/touch.c.o test/tests.p/xfree86.c.o test/tests.p/xtest.c.o test/tests.p/hashtabletest.c.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -fvisibility=hidden -O0 -g3 -gdwarf-2 -mmacosx-version-min=10.9 -Werror=unguarded-availability-new -Werror=format -Werror=objc-method-access -Werror=incompatible-pointer-types -F/Applications/Utilities/XQuartz.app/Contents/Frameworks -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -arch x86_64 -O0 -g3 -gdwarf-2 -mmacosx-version-min=10.9 -Werror=unguarded-availability-new -Werror=format -Werror=objc-method-access -Werror=incompatible-pointer-types -F/Applications/Utilities/XQuartz.app/Contents/Frameworks -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk -arch x86_64 -Wl,-rpath,/opt/X11/lib mi/liblibxserver_mi.a dix/liblibxserver_dix.a composite/liblibxserver_composite.a damageext/liblibxserver_damageext.a dbe/liblibxserver_dbe.a randr/liblibxserver_randr.a miext/damage/liblibxserver_miext_damage.a render/liblibxserver_render.a present/liblibxserver_present.a Xext/liblibxserver_xext.a miext/sync/liblibxserver_miext_sync.a xfixes/liblibxserver_xfixes.a Xi/liblibxserver_xi.a xkb/liblibxserver_xkb.a record/liblibxserver_record.a os/liblibxserver_os.a os/liblibxlibc.a glx/liblibglxvnd.a hw/xfree86/common/libxorg_common.a hw/xfree86/loader/libxorg_loader.a hw/xfree86/ddc/libxorg_ddc.a hw/xfree86/xkb/libxorg_xkb.a hw/xfree86/i2c/libxorg_i2c.a hw/xfree86/modes/libxorg_modes.a hw/xfree86/os-support/libxorg_os_support.a hw/xfree86/parser/libxorg_parser.a hw/xfree86/ramdac/libxorg_ramdac.a fb/liblibxserver_fb.a Xext/liblibxserver_xext_vidmode.a dix/liblibxserver_main.a config/liblibxserver_config.a /opt/X11/lib/libpixman-1.dylib /opt/X11/lib/libxcvt.dylib /opt/X11/lib/libxkbfile.dylib /opt/X11/lib/libXfont2.dylib /opt/X11/lib/libXdmcp.dylib -lm /opt/X11/lib/libxshmfence.dylib -ldl -lpthread /opt/X11/lib/libXau.dylib /opt/X11/lib/libGL.dylib
Undefined symbols for architecture x86_64:
  "_micmapScrPrivateKeyRec", referenced from:
      _DGAInstallCmap in libxorg_common.a(xf86DGA.c.o)
      _xf86HandleColormaps in libxorg_common.a(xf86cmap.c.o)
      _CMapInstallColormap in libxorg_common.a(xf86cmap.c.o)
      _CMapEnterVT in libxorg_common.a(xf86cmap.c.o)
      _CMapSwitchMode in libxorg_common.a(xf86cmap.c.o)
      _CMapSetDGAMode in libxorg_common.a(xf86cmap.c.o)
      _CMapChangeGamma in libxorg_common.a(xf86cmap.c.o)
      ...
ld: symbol(s) not found for architecture x86_64

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 6645ff5906)
2022-06-26 03:03:26 -07:00
..
bigreq test: Fix build dependency for bigreq test 2017-12-08 11:36:24 -05:00
damage test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
scripts Drop XWayland DDX 2021-09-15 21:49:17 +03:00
sync test: const correctness fix 2017-10-04 11:19:09 -04:00
xi1 test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
xi2 test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
.gitignore tests: Convert test/ to single binary 2017-01-12 15:01:36 -05:00
Makefile.am Drop XWayland DDX 2021-09-15 21:49:17 +03:00
README test: Fix typo and drop documentation references to glib. 2015-09-23 10:48:12 -04:00
fixes.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
hashtabletest.c tests: Convert test/ to single binary 2017-01-12 15:01:36 -05:00
input.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
list.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
meson.build tests: Fix build failure from missing micmap.c 2022-06-26 03:03:26 -07:00
misc.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
signal-logging.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
simple-xinit.c simple-xinit: Introduce an escaped "--" argument. 2019-03-27 09:50:19 -07:00
string.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
test_xkb.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
tests-common.c tests: Convert test/xi1/ to single binary 2017-01-12 15:01:29 -05:00
tests-common.h Use ARRAY_SIZE all over the tree 2017-10-30 13:45:20 -04:00
tests.c tests: Fix guards for ld -wrap 2017-02-23 13:16:07 -05:00
tests.h tests: Convert test/ to single binary 2017-01-12 15:01:36 -05:00
touch.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
xfree86.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00
xtest.c test: #undef NDEBUG so assert is not compiled away 2021-12-10 00:55:35 -05:00

                        X server test suite

This suite contains a set of tests to verify the behaviour of functions used
internally to the server.

= How it works =
Through some automake abuse, we link the test programs with the same static
libraries as the Xorg binary. The test suites can then call various functions
and verify their behaviour - without the need to start the server or connect
clients.

This testing only works for functions that do not rely on a particular state
of the X server. Unless the test suite replicates the expected state, which
may be difficult.

= How to run the tests =
Run "make check" in the test directory. This will compile the tests and execute
them in the order specified in the TESTS variable in test/Makefile.am.

Each set of tests related to a subsystem are available as a binary that can be
executed directly. For example, run "xkb" to perform some xkb-related tests.

== Adding a new test ==
When adding a new test, ensure that you add a short description of what the
test does and what the expected outcome is.