[cairo-commit] cairo/test .cvsignore, NONE, 1.1 Makefile.am, NONE, 1.1 README, NONE, 1.1 cairo_test.c, NONE, 1.1 cairo_test.h, NONE, 1.1 line_width-ref.png, NONE, 1.1 line_width.c, NONE, 1.1 move_to_show_surface-ref.png, NONE, 1.1 move_to_show_surface.c, NONE, 1.1 read_png.c, NONE, 1.1 read_png.h, NONE, 1.1 write_png.c, NONE, 1.1 write_png.h, NONE, 1.1 xmalloc.c, NONE, 1.1 xmalloc.h, NONE, 1.1

Carl Worth commit at pdx.freedesktop.org
Tue Oct 26 14:38:49 PDT 2004


Committed by: cworth

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv8445/test

Added Files:
	.cvsignore Makefile.am README cairo_test.c cairo_test.h 
	line_width-ref.png line_width.c move_to_show_surface-ref.png 
	move_to_show_surface.c read_png.c read_png.h write_png.c 
	write_png.h xmalloc.c xmalloc.h 
Log Message:

        * test/.cvsignore:
        * test/Makefile.am:
        * test/README:
        * test/cairo_test.c:
        * test/cairo_test.h:
        * test/line_width-ref.png:
        * test/line_width.c:
        * test/move_to_show_surface-ref.png:
        * test/move_to_show_surface.c:
        * test/read_png.c:
        * test/read_png.h:
        * test/write_png.c:
        * test/write_png.h:
        * test/xmalloc.c:
        * test/xmalloc.h: Add initial regression test suite.

        * configure.in: Don't AC_SUBST a dozen different FOO_CFLAGS and
        FOO_LIBS. Instead, incrementally build up just CAIRO_CFLAGS and
        CAIRO_LIBS.

        * cairo.pc.in (Libs): Don't list flags that should get picked up
        via dependency information through Requires.

        * BUGS (font-size): Add description of move_to_show_surface.


--- NEW FILE: .cvsignore ---
.deps
.libs
Makefile
Makefile.in
line_width
move_to_show_surface
*-out.png
*-diff.png



--- NEW FILE: Makefile.am ---
TESTS = 		\
line_width		\
move_to_show_surface

# Known bugs (not regressions). We do need to fix these before the
# next release, but they are expected to fail for now, so they don't
# need to hold up any new code commit.
#
# When new bugs are found in committed code they can be listed
# here. New failures due to local, uncommitted code changes are
# regression bugs that should not be listed here. Instead they should
# be fixed before the code is committed.
XFAIL_TESTS = \
move_to_show_surface

check_PROGRAMS = $(TESTS)

INCLUDES = -I$(srcdir) $(CAIRO_CFLAGS) -I$(srcdir)/../src

AM_LDFLAGS = $(CAIRO_LIBS) -L../src -lcairo

cairo_test_lib = cairo_test.c read_png.c write_png.c xmalloc.c

line_width_SOURCES = line_width.c $(cairo_test_lib)
move_to_show_surface_SOURCES = move_to_show_surface.c $(cairo_test_lib)





--- NEW FILE: README ---
Regression test suite for cairo.

Using this test should be as simple as running:

	make check

assuming that the cairo distribution in the directory above has been
configured and built. The test suite here goes through some effort to
run against the locally compiled library rather than any installed
version.

The test suite needs to be run before any code is committed and before
any release. Here are the rules governing the use of the suite:

Before committing
-----------------

All tests should return a result of PASS or XFAIL. The XFAIL results
indicate known bugs. The final message should be one of the following:

	All XX tests behaved as expected (YY expected failures)
	All XX tests passed

If any tests have a status of FAIL, then the new code has caused a
regression error which should be fixed before the code is committed.

When a new bug is found
-----------------------
A new test case should be added by imitating the style of an existing
test. This means adding the following files:

	new_bug.c
	new_bug-ref.png

Where new_bug.c is a minimal program to demonstrate the bug, following
the style of existing tests. The new_bug-ref.png image should contain
the desired result of new_bug.c if the bug were fixed.

Makefile.am should be edited, adding new_bug.c to both the TESTS and
XFAIL_TESTS lists.

When a bug is fixed
-------------------
The fix shold be verified by running the test suite which should
result in an "unexpected pass" for the test of interest. Rejoice as
appropriate, then remove the relevant file name from the XFAIL_TESTS
variable in Makefile.am.

Before releasing
----------------
All tests should return a result of PASS meaning all known bugs are
fixed, resulting in the happy message:

	All XX tests passed


--- NEW FILE: cairo_test.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: cairo_test.h ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: line_width-ref.png ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: line_width.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: move_to_show_surface-ref.png ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: move_to_show_surface.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: read_png.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: read_png.h ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: write_png.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: write_png.h ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: xmalloc.c ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: xmalloc.h ---
(This appears to be a binary file; contents omitted.)




More information about the cairo-commit mailing list