summaryrefslogtreecommitdiff
path: root/tests/weston-test-runner.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-15tests: Update boilerplate from MIT X11 license to MIT Expat licenseBryce Harrington1-16/+19
2014-11-28tests: Cleanup superfluous headersBryce Harrington1-1/+0
Mostly remove headers that aren't actually needed for anything. Add stdint.h to permit dropping xf86drm.h, which is otherwise unneeded. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Acked-by: Marek Chalupa <mchqwerty@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-28tests: Include "config.h" as first headerBryce Harrington1-0/+2
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
2014-11-24tests: Allow tests to use customized command line parametersDerek Foreman1-0/+8
Tests will now return the extra command line parameters they need when run with --params Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-02-18tests: Properly report skipped testsEmilio Pozuelo Monfort1-11/+30
We were calling exit(0) when tests were skipped, which counted them as passed instead of skipped. Fix this by properly exiting with 77 (which is what automake expects for skipped tests) from the tests themselves, then returning 77 again from weston-test-runner if all the tests were skipped. Finally the weston-test.so module catches weston-test-runner's exit code and uses it as an exit code, which is what automake will see and use. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
2013-09-13Add support for table-driven testing.Sam Spilsbury1-47/+76
The new TEST_P macro takes a function name and a "data" argument to point to an arbitrary array of known size of test data. This allows multiple tests to be run with different datasets. The array is stored as a void * but advanced by a known size on each iteration. The data for each invocation of the test is provided as a "data" argument, it is the responsibility of the test to cast it to something sensible. Also fixed single-test running to only run the tests specified
2013-09-11tests: list available tests if an invalid test name is givenPeter Hutterer1-0/+1
2013-09-11tests: support -h/--help for the testsPeter Hutterer1-0/+18
Including listing the tests available in that binary
2013-09-11tests: include config.h in weston-test-runnerPeter Hutterer1-0/+1
2013-01-24tests: make signal other than ABRT a hard failurePekka Paalanen1-1/+5
We handle FAIL_TEST tests by simply inverting the success flag. The problem with this is, that if a FAIL_TEST fails by a SIGSEGV, it will be interpreted as passed. However, no code should ever cause a SEGV, or any other signal than ABRT. And even ABRT only in the case of an assert() that is meant to fail. We would probably need more sophistication for the FAIL_TEST cases. For now, just interpret any other signal than ABRT as a hard failure, regardless whether it is a TEST or FAIL_TEST. At least segfaults do not cause false passes anymore. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-12-11tests: Convert keyboard-test to new test extensionU. Artie Eoff1-0/+114
This adds a weston-test-runner for the weston test extension and some weston test client helper methods. Converted keyboard-test to use the new test interface, runner, and helper methods. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56822 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>