summaryrefslogtreecommitdiff
path: root/docs/design.md
AgeCommit message (Collapse)Author
2015-10-14Remove old timer framework and move to new oneVikram Kanigiri
This patch removes the support of old timer framework and its tests. It moves the existing tests to use the newer timer framework. It reduces `PLAT_SUSPEND_ENTRY_EXIT_TIME` and `PLAT_SUSPEND_ENTRY_TIME` to a meaningful value. It also increases the stack size as the current stack is not sufficient while running the new tests. Change-Id: If4f17dcd6ac8985a0dc55a66eb9d1e9a1c05e082
2015-06-18Clean up the code keeping track of the tests progressSandrine Bailleux
* Introduce test_to_run & test_progress fields in TEST_NVM They replace current_testcase and next_testcase. They provide the same functionality but in a more intuitive way. * Get rid of cur_testsuite & cur_testcase variables They were variables stored in RAM, therefore they were volatile and their values were lost through platform reset. They used to be needed because the TEST_NVM structure kept function pointers to keep track of the progress of the test session. Now we store the testsuite and testcase index directly into NVM. * Remove some functions that are no longer needed: - tftf_get_testcase_index() Was used to get the index of a testcase from its function pointer. No longer needed because we no longer identify tests by their function pointers, instead we use indexes directly. - test_set_passed_and_next() Was used for tests that intended to reset the board. It set the current test case's result as "passed" and set up the next_testcase pointer so that the test session would resume in the 2nd part of the test. This has all changed. Tests that reset the board no longer need to be implemented in 2 functions, instead the same function will be re-entered upon resume from reset. - tftf_testcase_set_result_as_crashed() Now simplified because we use indexes rather than function pointers to identify a test. Therefore, we no longer need a dedicated function for that. - tftf_testcase_update_result() Not needed, can use tftf_testcase_set_result() instead. * Move test progress values out of TEST_RESULT. They now belong to test_progress_t. Change-Id: I6f0917480d96a3194b42ca0c909efc91209a187e
2014-12-05Update documentationSandrine Bailleux
The following modifications have been made to the User Guide: - List `libxml-libxml-perl` as a required package to build the TFTF - Add instructions to build a FIP containing the TFTF image - Add instructions to run the Test Framework - Provide a global overview of the Test Framework's behaviour The following modifications have been made to the Design Document: - Move part of the old documentation to this document - Add a note about the special status of SGI #IRQ_WAKE_SGI - List the main limitations of the test framework Also provide a new document explaining briefly how to develop tests. Change-Id: Iece24d733a29c4b416d3f6cf55b4916d9ee9d2e0
2014-11-04Document the directory layoutSandrine Bailleux
Add a new document: the test framework design document. It only contains information about the source code layout for now. It will be extended in the future. Change-Id: I011ca17780e01d92363c69b06e72a7200b606a97