[PATCH xrandr-utils 4/6] Add unit test suite and a basic test of the geometry structs.

Gaetan Nadon memsize at videotron.ca
Thu Dec 22 06:48:28 PST 2011


On 11-12-21 09:47 PM, Bryce Harrington wrote:
> This follows the style of the X server test suite, using autoconf's
> built-in support for make check using asserts.
>
> The first test trivially checks the geometry structures.
>
> Signed-off-by: Bryce Harrington<bryce at canonical.com>
> ---
>   configure.ac     |    1 +
>   test/.gitignore  |    2 +
>   test/Makefile.am |   14 +++++++++
>   test/README      |   14 +++++++++
>   test/geometry.c  |   84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>   5 files changed, 115 insertions(+), 0 deletions(-)
>   create mode 100644 test/.gitignore
>   create mode 100644 test/Makefile.am
>   create mode 100644 test/README
>   create mode 100644 test/geometry.c
>
> diff --git a/configure.ac b/configure.ac
> index 7ebefd8..7d11ec0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -58,5 +58,6 @@ AC_CONFIG_FILES([
>   	examples/Makefile
>   	man/Makefile
>   	src/Makefile
> +	test/Makefile
The toplevel makefile was not updated to navigate down the test subdir 
so distcheck fails.

>   	xrandr-utils.pc])
>   AC_OUTPUT



More information about the xorg-devel mailing list