test: improve lazy-pages testing

Submitted by Mike Rapoport on May 29, 2017, 4:11 p.m.


Reviewer None
Submitted May 29, 2017, 4:11 p.m.
Last Updated May 31, 2017, 8:57 p.m.
Revision 2

Cover Letter


A while ago I've noticed that zdtm/static/uffd-events passes in travis that
runs kernel that does not support these events. After some digging I've
realized, that zdtm waits for lazy-pages daemon to finish before signaling
to the test process. Tests that verify memory contents after test_waitsig()
actually do not use lazy-pages in such setting, as all the memory already
in place by the time lazy-pages daemon exits.

These patches aim to improve the testing coverage.

v2: exclude also file_read as it implicilty calls munmap()

Mike Rapoport (4):
  travis-test: select tests skipped by lazy-pages pass more carefully
  zdtm: check lazy-pages and page-server exit status after test is gone
  zdtm: introduce 'noremotelazy' flag
  zdtm: enable fork tests with --lazy-pages

 scripts/travis/travis-tests     | 12 +++++++++++-
 test/zdtm.py                    | 35 +++++++++++++++++++----------------
 test/zdtm/transition/fork.desc  |  2 +-
 test/zdtm/transition/fork2.desc |  2 +-
 4 files changed, 32 insertions(+), 19 deletions(-)