2013-07-09 02:06:24 +04:00
|
|
|
TESTS = $(shared_tests) $(module_tests) $(weston_tests)
|
|
|
|
|
|
|
|
shared_tests = \
|
|
|
|
config-parser.test
|
2012-12-08 01:50:32 +04:00
|
|
|
|
2012-12-08 01:50:34 +04:00
|
|
|
module_tests = \
|
|
|
|
surface-test.la \
|
|
|
|
surface-global-test.la
|
2012-12-08 01:50:32 +04:00
|
|
|
|
|
|
|
weston_tests = \
|
2013-07-08 17:33:25 +04:00
|
|
|
keyboard.weston \
|
|
|
|
event.weston \
|
|
|
|
button.weston \
|
|
|
|
text.weston \
|
|
|
|
subsurface.weston \
|
2013-02-08 16:57:00 +04:00
|
|
|
$(xwayland_test)
|
tests: add matrix-test
Add a new directory tests/ for unit test applications. This directory
will be built only if --enable-tests is given to ./configure.
Add matrix-test application. It excercises especially the
weston_matrix_invert() and weston_matrix_inverse_transform() functions.
It has one test for correctness and precision, and other tests for
measuring the speed of various matrix operations.
For the record, the correctness test prints:
a random matrix:
1.112418e-02 2.628150e+00 8.205844e+02 -1.147526e-04
4.943677e-04 -1.117819e-04 -9.158849e-06 3.678122e-02
7.915063e-03 -3.093254e-04 -4.376583e+02 3.424706e-02
-2.504038e+02 2.481788e+03 -7.545445e+01 1.752909e-03
The matrix multiplied by its inverse, error:
0.000000e+00 -0.000000e+00 -0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-0.000000e+00 -0.000000e+00 0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
max abs error: 0, original determinant 11595.2
Running a test loop for 10 seconds...
test fail, det: -0.00464805, error sup: inf
test fail, det: -0.0424053, error sup: 1.30787e-06
test fail, det: 5.15191, error sup: 1.15956e-06
tests: 6791767 ok, 1 not invertible but ok, 3 failed.
Total: 6791771 iterations.
These results are expected with the current precision thresholds in
src/matrix.c and tests/matrix-test.c. The random number generator is
seeded with a constant, so the random numbers should be the same on
every run. Machine speed and scheduling affect how many iterations are
run.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-16 17:04:28 +04:00
|
|
|
|
2013-02-22 00:01:23 +04:00
|
|
|
AM_TESTS_ENVIRONMENT = \
|
|
|
|
abs_builddir='$(abs_builddir)'; export abs_builddir;
|
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
TEST_EXTENSIONS = .la .weston
|
|
|
|
LA_LOG_COMPILER = $(srcdir)/weston-tests-env
|
|
|
|
WESTON_LOG_COMPILER = $(srcdir)/weston-tests-env
|
tests: add matrix-test
Add a new directory tests/ for unit test applications. This directory
will be built only if --enable-tests is given to ./configure.
Add matrix-test application. It excercises especially the
weston_matrix_invert() and weston_matrix_inverse_transform() functions.
It has one test for correctness and precision, and other tests for
measuring the speed of various matrix operations.
For the record, the correctness test prints:
a random matrix:
1.112418e-02 2.628150e+00 8.205844e+02 -1.147526e-04
4.943677e-04 -1.117819e-04 -9.158849e-06 3.678122e-02
7.915063e-03 -3.093254e-04 -4.376583e+02 3.424706e-02
-2.504038e+02 2.481788e+03 -7.545445e+01 1.752909e-03
The matrix multiplied by its inverse, error:
0.000000e+00 -0.000000e+00 -0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-0.000000e+00 -0.000000e+00 0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
max abs error: 0, original determinant 11595.2
Running a test loop for 10 seconds...
test fail, det: -0.00464805, error sup: inf
test fail, det: -0.0424053, error sup: 1.30787e-06
test fail, det: 5.15191, error sup: 1.15956e-06
tests: 6791767 ok, 1 not invertible but ok, 3 failed.
Total: 6791771 iterations.
These results are expected with the current precision thresholds in
src/matrix.c and tests/matrix-test.c. The random number generator is
seeded with a constant, so the random numbers should be the same on
every run. Machine speed and scheduling affect how many iterations are
run.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-16 17:04:28 +04:00
|
|
|
|
2012-12-13 12:01:25 +04:00
|
|
|
clean-local:
|
|
|
|
-rm -rf logs
|
|
|
|
|
2013-02-22 00:01:23 +04:00
|
|
|
# To remove when automake 1.11 support is dropped
|
2012-04-12 20:54:14 +04:00
|
|
|
export abs_builddir
|
tests: add matrix-test
Add a new directory tests/ for unit test applications. This directory
will be built only if --enable-tests is given to ./configure.
Add matrix-test application. It excercises especially the
weston_matrix_invert() and weston_matrix_inverse_transform() functions.
It has one test for correctness and precision, and other tests for
measuring the speed of various matrix operations.
For the record, the correctness test prints:
a random matrix:
1.112418e-02 2.628150e+00 8.205844e+02 -1.147526e-04
4.943677e-04 -1.117819e-04 -9.158849e-06 3.678122e-02
7.915063e-03 -3.093254e-04 -4.376583e+02 3.424706e-02
-2.504038e+02 2.481788e+03 -7.545445e+01 1.752909e-03
The matrix multiplied by its inverse, error:
0.000000e+00 -0.000000e+00 -0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-0.000000e+00 -0.000000e+00 0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
max abs error: 0, original determinant 11595.2
Running a test loop for 10 seconds...
test fail, det: -0.00464805, error sup: inf
test fail, det: -0.0424053, error sup: 1.30787e-06
test fail, det: 5.15191, error sup: 1.15956e-06
tests: 6791767 ok, 1 not invertible but ok, 3 failed.
Total: 6791771 iterations.
These results are expected with the current precision thresholds in
src/matrix.c and tests/matrix-test.c. The random number generator is
seeded with a constant, so the random numbers should be the same on
every run. Machine speed and scheduling affect how many iterations are
run.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-16 17:04:28 +04:00
|
|
|
|
2012-12-08 01:50:29 +04:00
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
$(weston_test)
|
tests: add matrix-test
Add a new directory tests/ for unit test applications. This directory
will be built only if --enable-tests is given to ./configure.
Add matrix-test application. It excercises especially the
weston_matrix_invert() and weston_matrix_inverse_transform() functions.
It has one test for correctness and precision, and other tests for
measuring the speed of various matrix operations.
For the record, the correctness test prints:
a random matrix:
1.112418e-02 2.628150e+00 8.205844e+02 -1.147526e-04
4.943677e-04 -1.117819e-04 -9.158849e-06 3.678122e-02
7.915063e-03 -3.093254e-04 -4.376583e+02 3.424706e-02
-2.504038e+02 2.481788e+03 -7.545445e+01 1.752909e-03
The matrix multiplied by its inverse, error:
0.000000e+00 -0.000000e+00 -0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-0.000000e+00 -0.000000e+00 0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
max abs error: 0, original determinant 11595.2
Running a test loop for 10 seconds...
test fail, det: -0.00464805, error sup: inf
test fail, det: -0.0424053, error sup: 1.30787e-06
test fail, det: 5.15191, error sup: 1.15956e-06
tests: 6791767 ok, 1 not invertible but ok, 3 failed.
Total: 6791771 iterations.
These results are expected with the current precision thresholds in
src/matrix.c and tests/matrix-test.c. The random number generator is
seeded with a constant, so the random numbers should be the same on
every run. Machine speed and scheduling affect how many iterations are
run.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-16 17:04:28 +04:00
|
|
|
|
2012-12-08 01:50:29 +04:00
|
|
|
noinst_PROGRAMS = \
|
|
|
|
$(setbacklight) \
|
|
|
|
matrix-test
|
2012-04-12 20:54:14 +04:00
|
|
|
|
2012-12-08 01:50:29 +04:00
|
|
|
check_LTLIBRARIES = \
|
2012-12-08 01:50:32 +04:00
|
|
|
$(module_tests)
|
2012-04-12 20:54:14 +04:00
|
|
|
|
2012-12-08 01:50:29 +04:00
|
|
|
check_PROGRAMS = \
|
2013-07-09 02:06:24 +04:00
|
|
|
$(shared_tests) \
|
2012-12-08 01:50:32 +04:00
|
|
|
$(weston_tests)
|
2012-12-08 01:50:29 +04:00
|
|
|
|
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
2013-02-16 05:53:20 +04:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_srcdir)/shared \
|
2013-02-20 23:47:43 +04:00
|
|
|
-I$(top_builddir)/src \
|
2013-02-16 05:53:20 +04:00
|
|
|
-DUNIT_TEST \
|
|
|
|
$(COMPOSITOR_CFLAGS)
|
2012-04-12 20:54:14 +04:00
|
|
|
AM_LDFLAGS = -module -avoid-version -rpath $(libdir)
|
|
|
|
|
2013-07-09 02:06:24 +04:00
|
|
|
config_parser_test_LDADD = \
|
|
|
|
../shared/libshared.la \
|
|
|
|
$(COMPOSITOR_LIBS)
|
|
|
|
config_parser_test_SOURCES = \
|
|
|
|
config-parser-test.c
|
|
|
|
|
2012-12-12 08:22:16 +04:00
|
|
|
surface_global_test_la_SOURCES = surface-global-test.c
|
|
|
|
surface_test_la_SOURCES = surface-test.c
|
2012-04-12 20:54:14 +04:00
|
|
|
|
2012-12-08 01:50:29 +04:00
|
|
|
weston_test = weston-test.la
|
|
|
|
weston_test_la_LIBADD = $(COMPOSITOR_LIBS) \
|
|
|
|
../shared/libshared.la
|
|
|
|
weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
weston_test_la_SOURCES = \
|
|
|
|
weston-test.c \
|
|
|
|
wayland-test-protocol.c \
|
|
|
|
wayland-test-server-protocol.h
|
2012-04-12 20:54:14 +04:00
|
|
|
|
2012-12-08 01:50:32 +04:00
|
|
|
weston_test_runner_src = \
|
|
|
|
weston-test-runner.c \
|
|
|
|
weston-test-runner.h
|
|
|
|
weston_test_client_src = \
|
|
|
|
weston-test-client-helper.c \
|
|
|
|
weston-test-client-helper.h \
|
|
|
|
wayland-test-protocol.c \
|
|
|
|
wayland-test-client-protocol.h \
|
protocol: add sub-surfaces
Add protocol for sub-surfaces, wl_subcompositor as the global interface,
and wl_subsurface as the per-surface interface extension.
This patch is meant to be reverted, once sub-surfaces are moved into
Wayland core.
Changes in v2:
- Rewrite wl_subcompositor.get_subsurface description, and move mapping
and commit details into wl_subsurface description. Check the wording
in wl_subsurface.set_position description.
- Add wl_subsurface.set_commit_mode request, and document it, with the
commit_mode enum. Add bad_value error code for wl_subsurface.
- Moved the protocol into Weston repository so we can land it upstream
sooner for public exposure. It is to be moved into Wayland core later.
- Add destroy requests to both wl_subcompositor and wl_subsurface, and
document them. Experience has showed, that interfaces should always
have a destructor unless there is a good and future-proof reason to not
have it.
Changes in v3:
- Specify, that wl_subsurface will become inert, if the corresponding
wl_surface is destroyed, instead of requiring a certain destruction
order.
- Replaced wl_subsurface.set_commit_mode with wl_subsurface.set_sync and
wl_subsurface.set_desync. Parent-cached commit mode is now called
synchronized, and independent mode is desynchronized. Removed
commit_mode enum, and bad_value error.
- Added support for nested sub-surfaces.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2013-04-25 14:57:41 +04:00
|
|
|
subsurface-protocol.c \
|
|
|
|
subsurface-client-protocol.h \
|
2012-12-08 01:50:32 +04:00
|
|
|
$(weston_test_runner_src)
|
|
|
|
weston_test_client_libs = \
|
|
|
|
$(SIMPLE_CLIENT_LIBS) \
|
|
|
|
../shared/libshared.la
|
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
keyboard_weston_SOURCES = keyboard-test.c $(weston_test_client_src)
|
|
|
|
keyboard_weston_LDADD = $(weston_test_client_libs)
|
2012-12-08 01:50:32 +04:00
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
event_weston_SOURCES = event-test.c $(weston_test_client_src)
|
|
|
|
event_weston_LDADD = $(weston_test_client_libs)
|
2012-12-08 01:50:33 +04:00
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
button_weston_SOURCES = button-test.c $(weston_test_client_src)
|
|
|
|
button_weston_LDADD = $(weston_test_client_libs)
|
2012-12-08 01:50:34 +04:00
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
text_weston_SOURCES = \
|
2012-12-12 08:03:56 +04:00
|
|
|
text-test.c \
|
|
|
|
../clients/text-protocol.c \
|
|
|
|
$(weston_test_client_src)
|
2013-07-08 17:33:25 +04:00
|
|
|
text_weston_LDADD = $(weston_test_client_libs)
|
2012-12-12 08:03:56 +04:00
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
subsurface_weston_SOURCES = subsurface-test.c $(weston_test_client_src)
|
|
|
|
subsurface_weston_LDADD = $(weston_test_client_libs)
|
2013-02-08 16:57:00 +04:00
|
|
|
|
2013-07-08 17:33:25 +04:00
|
|
|
xwayland_weston_SOURCES = xwayland-test.c $(weston_test_client_src)
|
|
|
|
|
|
|
|
xwayland_weston_LDADD = $(weston_test_client_libs) $(XWAYLAND_TEST_LIBS)
|
2013-02-08 16:57:00 +04:00
|
|
|
|
|
|
|
if ENABLE_XWAYLAND_TEST
|
2013-07-08 17:33:25 +04:00
|
|
|
xwayland_test = xwayland.weston
|
2013-02-08 16:57:00 +04:00
|
|
|
endif
|
|
|
|
|
tests: add matrix-test
Add a new directory tests/ for unit test applications. This directory
will be built only if --enable-tests is given to ./configure.
Add matrix-test application. It excercises especially the
weston_matrix_invert() and weston_matrix_inverse_transform() functions.
It has one test for correctness and precision, and other tests for
measuring the speed of various matrix operations.
For the record, the correctness test prints:
a random matrix:
1.112418e-02 2.628150e+00 8.205844e+02 -1.147526e-04
4.943677e-04 -1.117819e-04 -9.158849e-06 3.678122e-02
7.915063e-03 -3.093254e-04 -4.376583e+02 3.424706e-02
-2.504038e+02 2.481788e+03 -7.545445e+01 1.752909e-03
The matrix multiplied by its inverse, error:
0.000000e+00 -0.000000e+00 -0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-0.000000e+00 -0.000000e+00 0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
max abs error: 0, original determinant 11595.2
Running a test loop for 10 seconds...
test fail, det: -0.00464805, error sup: inf
test fail, det: -0.0424053, error sup: 1.30787e-06
test fail, det: 5.15191, error sup: 1.15956e-06
tests: 6791767 ok, 1 not invertible but ok, 3 failed.
Total: 6791771 iterations.
These results are expected with the current precision thresholds in
src/matrix.c and tests/matrix-test.c. The random number generator is
seeded with a constant, so the random numbers should be the same on
every run. Machine speed and scheduling affect how many iterations are
run.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-16 17:04:28 +04:00
|
|
|
matrix_test_SOURCES = \
|
|
|
|
matrix-test.c \
|
2012-12-03 23:44:14 +04:00
|
|
|
$(top_srcdir)/shared/matrix.c \
|
|
|
|
$(top_srcdir)/shared/matrix.h
|
tests: add matrix-test
Add a new directory tests/ for unit test applications. This directory
will be built only if --enable-tests is given to ./configure.
Add matrix-test application. It excercises especially the
weston_matrix_invert() and weston_matrix_inverse_transform() functions.
It has one test for correctness and precision, and other tests for
measuring the speed of various matrix operations.
For the record, the correctness test prints:
a random matrix:
1.112418e-02 2.628150e+00 8.205844e+02 -1.147526e-04
4.943677e-04 -1.117819e-04 -9.158849e-06 3.678122e-02
7.915063e-03 -3.093254e-04 -4.376583e+02 3.424706e-02
-2.504038e+02 2.481788e+03 -7.545445e+01 1.752909e-03
The matrix multiplied by its inverse, error:
0.000000e+00 -0.000000e+00 -0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-0.000000e+00 -0.000000e+00 0.000000e+00 -0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
max abs error: 0, original determinant 11595.2
Running a test loop for 10 seconds...
test fail, det: -0.00464805, error sup: inf
test fail, det: -0.0424053, error sup: 1.30787e-06
test fail, det: 5.15191, error sup: 1.15956e-06
tests: 6791767 ok, 1 not invertible but ok, 3 failed.
Total: 6791771 iterations.
These results are expected with the current precision thresholds in
src/matrix.c and tests/matrix-test.c. The random number generator is
seeded with a constant, so the random numbers should be the same on
every run. Machine speed and scheduling affect how many iterations are
run.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-01-16 17:04:28 +04:00
|
|
|
matrix_test_LDADD = -lm -lrt
|
2012-03-13 02:40:08 +04:00
|
|
|
|
|
|
|
setbacklight_SOURCES = \
|
|
|
|
setbacklight.c \
|
|
|
|
$(top_srcdir)/src/libbacklight.c \
|
|
|
|
$(top_srcdir)/src/libbacklight.h
|
|
|
|
|
2012-07-25 17:51:09 +04:00
|
|
|
setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
|
|
|
|
setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
|
2012-06-26 01:50:22 +04:00
|
|
|
|
2012-08-03 15:39:16 +04:00
|
|
|
if BUILD_SETBACKLIGHT
|
|
|
|
setbacklight = setbacklight
|
|
|
|
endif
|
|
|
|
|
2012-12-08 01:50:30 +04:00
|
|
|
EXTRA_DIST = weston-tests-env
|
2012-12-08 01:50:29 +04:00
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
protocol: add sub-surfaces
Add protocol for sub-surfaces, wl_subcompositor as the global interface,
and wl_subsurface as the per-surface interface extension.
This patch is meant to be reverted, once sub-surfaces are moved into
Wayland core.
Changes in v2:
- Rewrite wl_subcompositor.get_subsurface description, and move mapping
and commit details into wl_subsurface description. Check the wording
in wl_subsurface.set_position description.
- Add wl_subsurface.set_commit_mode request, and document it, with the
commit_mode enum. Add bad_value error code for wl_subsurface.
- Moved the protocol into Weston repository so we can land it upstream
sooner for public exposure. It is to be moved into Wayland core later.
- Add destroy requests to both wl_subcompositor and wl_subsurface, and
document them. Experience has showed, that interfaces should always
have a destructor unless there is a good and future-proof reason to not
have it.
Changes in v3:
- Specify, that wl_subsurface will become inert, if the corresponding
wl_surface is destroyed, instead of requiring a certain destruction
order.
- Replaced wl_subsurface.set_commit_mode with wl_subsurface.set_sync and
wl_subsurface.set_desync. Parent-cached commit mode is now called
synchronized, and independent mode is desynchronized. Removed
commit_mode enum, and bad_value error.
- Added support for nested sub-surfaces.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2013-04-25 14:57:41 +04:00
|
|
|
subsurface-protocol.c \
|
|
|
|
subsurface-client-protocol.h \
|
2012-12-08 01:50:29 +04:00
|
|
|
wayland-test-protocol.c \
|
|
|
|
wayland-test-server-protocol.h \
|
|
|
|
wayland-test-client-protocol.h
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
@wayland_scanner_rules@
|