Add support for simpler test case list syntax
authorPyry Haulos <phaulos@google.com>
Fri, 31 Oct 2014 00:45:41 +0000 (17:45 -0700)
committerPyry Haulos <phaulos@google.com>
Tue, 11 Nov 2014 16:55:52 +0000 (16:55 +0000)
commit89659d2685195bf9e34ff7a2e321e6ce471c8462
treed5a64594830ef620e3ee9d78334e074d7631a22d
parentfbf0fd6745ec32da44b118433b795b7e8896660e
Add support for simpler test case list syntax

This change adds support for mustpass-style (full test case path per
line) test case format. All existing test case list command line options
(--deqp-caselist, --deqp-stdin-caselist, --deqp-caselist-file) now
accept both trie- and list-style inputs.

Format is detected by looking at the first character; trie always starts
with '{', list-style format is assumed otherwise.

de::CommandLine default value behavior has been changed. Options that
take values (i.e. not --flags) don't have value set, unless default
value is provided when registering options. Calling getOption() on
command line option whose value is not provided is now an error.
hasOption() should be used first to check if a value was provided at
all.

Test case list parsing is now covered by tests in the internal module.

Bug: 18329517
Bug: 17958588
Change-Id: If6063165ff59cbd8e538d6f829c583541e104fd1
(cherry picked from commit ee2e173d445e87e1f98245f4377f66b081cc320d)
executor/tools/xeCommandLineExecutor.cpp
framework/common/tcuCommandLine.cpp
framework/common/tcuTestCase.cpp
framework/common/tcuTestCase.hpp
framework/delibs/decpp/deCommandLine.cpp
framework/delibs/decpp/deCommandLine.hpp
framework/egl/egluGLContextFactory.cpp
modules/egl/teglTestPackage.cpp
modules/internal/ditFrameworkTests.cpp