Skip to content

Enabling and disabling tests

Richard R. Drake edited this page Jun 8, 2022 · 1 revision

A test marked as disabled will not be run by vvtest. The simplest form is

#VVT: enable = false

The attributes "testname", "platform", and "options" can be used to conditionally disable the test. For example,

#VVT: enable (platform="not ATS")

would only enable the test if the platform name is not "ATS". The value can be "true" or "false", but "true" is assumed if not specified. Thus, the above is equivalent to

#VVT: enable (platform="not ATS") : true

More examples:

#VVT: enable (testname=foo, platform="Darwin or Linux")
#VVT: enable (platform="not Windows", options="not debug")
#VVT: enable (testname=foo) : false