summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-13Include both option name & argument in invalid argument errorsAlan Coopersmith
Found by gcc 14.1: x11perf.c: In function ‘invalid_arg’: x11perf.c:339:21: warning: too many arguments for format [-Wformat-extra-args] 339 | fprintf(stderr, "Error: invalid argument to %s\n", arg, option); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: e7a6545 ("When users give invalid arguments, tell them what they did wrong") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/11>
2024-04-18When users give invalid arguments, tell them what they did wrongAlan Coopersmith
Don't just dump a usage message and leave them to figure it out Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Add -help [options|tests|all] and remove tests from default usage messageAlan Coopersmith
Previously, the error message when giving a bad option was over 350 lines long. This moves the list of tests out into the `-help tests` option and makes the usage error message a much more reasonable 32 lines long. (Also accepts but does not document --help.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Mark tests introduced in version 1.6 as version 1.6 & laterAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Mark tests introduced since version 1.6 as version 1.7Alan Coopersmith
Also bumps package version to 1.6.99.0 to prepare for 1.7 release. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Add -version optionAlan Coopersmith
(Also accepts but does not document --version) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Add -v1.6 & -v1.7 to recognized version flagsAlan Coopersmith
Also adds missing -v1.4 & -v1.5 to the man page. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-13x11perf.man: Add missing tests inherited from XFree86 4.3Alan Coopersmith
Fixes: ee11b04 ("XFree86 4.3.0.1") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13x11perf.man: Add missing tests inherited from X11R6.6Alan Coopersmith
Fixes: d7d99c8 ("R6.6 is the Xorg base-line") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13x11perf.man: Add tests for anti-aliased trapezoidsAlan Coopersmith
Fixes: 9f86498 ("Add RenderAddTraps. Rewrite trapezoid rendering code.") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13x11perf.man: Add tests for ShmGetImageAlan Coopersmith
Fixes: 7f46d58 ("Add tests for ShmGetImage") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13x11perf.man: Add tiled text testAlan Coopersmith
Fixes: 0fcb26e ("Add tiled text test") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13x11perf.man: Add xybitmap putimage testsAlan Coopersmith
Fixes: bd6b810 ("Add xybitmap putimage tests") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13man pages: use .BR markup for references to other man pagesAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13configure: use @-style substitutions for man pages instead of __-styleAlan Coopersmith
Moves substitution of variables from Makefile.am to configure.ac in preparation for allowing meson.build to do the same. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/9>
2024-04-13Move x11perfcomp scripts into datadirMike A. Harris
These don't need to be in libdir, they're not arch-sensitive. Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/2>
2024-04-13Fix core AA text tests which now fail due to change in fontconfigKeith Packard
Xft can no longer support 'render' in font names due to a change in fontconfig. Work around this by removing that from the font names and apply it to the pattern manually whenever the 'bfont' name is not NULL. Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Validate fonts used in Xft testsKeith Packard
This compares the font family from the loaded font with the requested family and skips tests where the requested family wasn't available. It's not perfect, as someone could have a mis-configured font family, but should catch most incorrect font usages. I've also switched from Charter to DejaVu Sans as that is more widely installed. Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Don't try to make XOR 'look good'. Best to make it visible.Keith Packard
Attempts to pick 'good' pixel values to make XOR rendering look decent instead make it invisible on modern TrueColor visuals. Just use the defined fg/bg pixel values, which at least make it appear. Adapt to this change by drawing the lines for the blt tests in copy mode so they appear on the screen. Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Add xybitmap putimage testsKeith Packard
Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Make put image tests work with planemasksKeith Packard
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Add tiled text testKeith Packard
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Eliminate overlaps in rects and trapsKeith Packard
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Ensure that 100x100 rectangle outlines do not overlapKeith Packard
Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Ensure that 100x100 rectangles do not overlapKeith Packard
This avoids the obvious optimization which catch overlapping rectangles to avoid re-rendering the same pixels. Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Set position of the status window based on perf window posKeith Packard
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Ensure that vertical/horizontal segments do not overlapKeith Packard
Some drivers manage to optimize the solid block of segments into a single square fill operation, which is a nifty optimization, but doesn't really measure what we're interested here. Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Strip trailing whitespace from source filesAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-28x11perf 1.6.2x11perf-1.6.2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-22tests: Skip trapezoids for unsupported XRender formatsAaron Plattner
xserver commit 436fd7e8b4966c305ea9c43f3c14c2ca04c35539 removed support for PictStandardA4. x11perf assumes this format always exists, so trying to run the -aa4trap* tests causes a segmentation fault when `XRenderFindStandardFormat (xp->d, PictStandardA4)` returns NULL. Since the server change was intentional, skip the tests if XRenderFindStandardFormat() returns NULL. See also: https://gitlab.freedesktop.org/xorg/xserver/-/commit/436fd7e8b4966c305ea9c43f3c14c2ca04c35539
2022-10-15Stop casting return value of malloc() and calloc()Alan Coopersmith
Not needed in C89 and later, and may hide errors Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-15Variable scope reductions as recommended by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-21gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-21Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-16x11perf 1.6.1x11perf-1.6.1Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-09Update minpixwin info in man page to match implemenationAlan Coopersmith
Scales to 50x50 window since commit 920b070987c00b369bd6c77c6283f68dffbc7b83 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-07-19Make NameFromFormat() const.Thomas Klausner
Fixes a const-discard warning. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-07-15tests: Fix thinko in minpixwin50Adam Jackson
The other minpixwin tests draw to a window 50% the size of the pixmap, it's clear this one was meant to too. Signed-off-by: Adam Jackson <ajax@redhat.com>
2015-04-24Add new options from 1.6.0 release to man pageNiveditha Rau
-pause, -compwinwin*, -comppixwin*, -magpixwin*, -minpixwin* Signed-off-by: Niveditha Rau <niveditha.rau@oracle.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-04-16x11perf 1.6.0x11perf-1.6.0Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-13remove srand(1) call as nothing calls any rand like functions in x11perfMatthieu Herrb
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Thomas Klausner <wiz@NetBSD.org>
2014-10-25Combine help_message array into a single stringAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-10-25Mark bitmap data as constAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-07-07Fix name collision in -rgb*textPeter Harris
Prepend a c to the test names of the "core" versions, to match the -aa*text and -caa*text tests. Signed-off-by: Peter Harris <pharris@opentext.com>