1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-26 16:51:46 -07:00
emacs/mps/test
Richard Brooksby a2f78d0df6 Catch-up merge from masters.
Copied from Perforce
 Change: 188921
 ServerID: perforce.ravenbrook.com
2016-01-19 16:22:39 +00:00
..
argerr Catch-up merge from masters. 2016-01-19 16:22:39 +00:00
conerr Catch-up merge from masters. 2016-01-19 16:22:39 +00:00
function Catch-up merge from masters. 2016-01-19 16:22:39 +00:00
misc Long delayed maintenance of test suite: 2013-05-25 10:33:30 +01:00
test Catch-up merge from masters. 2016-01-19 16:22:39 +00:00
testsets Catch-up merge from masters. 2016-01-19 16:22:39 +00:00
README Catch-up merge from masters. 2016-01-19 16:22:39 +00:00

$Id$

This is the Memory Management QA test harness. To use it you need
perl 5 (or higher). Go "perl qa help" for help, "perl qa options"
to see what version of the harness you have (or look at the
file "test/version").


Testing on unix
---------------

From the test directory::

    PLATFORM=lii6ll # substitute your platform
    CODE=../code # code directory of the branch you are testing
    make -B -C $CODE -f $PLATFORM.gmk VARIETY=cool $PLATFORM/cool/mps.o
    alias qa="perl test/qa -i $CODE -l $CODE/$PLATFORM/cool/mps.o"
    qa clib
    qa run function/5.c
    qa runset testsets/passing

Each test case is compiled in its turn to the file
``test/obj/$(uname -s)_$(uname -r)_$(uname -p)__unix/tmp_test``
so you can debug it with::

    lldb test/obj/$(uname -s)_$(uname -r)_$(uname -p)__unix/tmp_test

Or ``gdb`` instead of ``lldb``. MMQA sets its own assertion handler,
so you'll probably want to set a breakpoint on mmqa_assert_handler.