History log of /external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bbdb9f78378c7e038f463efa39d2470e1c51ad54 16-Mar-2016 Cyril Hrubis <chrubis@suse.cz> lib: Add new test library API

The main features are:

o The cleanup callback is not passed directly to various library functions but
is set once globally in the structure that describes a test

- this makes the test API easier to use

- also fixes a few common mistakes such as passing cleanup callback
to functions executed from a cleanup

o Most of the boilerplate code is moved to library

- no more copying standard looping code around :)

o Various resources are initialized and freed automatically when requested

- this means much less race conditions and ordering problems in cleanups

o The result reporting functions now use shared memory to propagate
test results from child processes

- writing tests in child processes is now easier than ever

+ The test-writing-guidelines.txt were updated

Many thanks to Jan who reviewed numerous respins of this patches and
provided valuable suggestions and also to Alexey who pointed out some
stupid mistakes of mine.

Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
d1e794d62b1bf619df8390535e4c2a58899b1145 30-Jul-2015 Cyril Hrubis <chrubis@suse.cz> lib: Get rid of unused tst_require_root() callback

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
605fa3362fd7cef0baa2131be32cf44661783d3e 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Get rid of TEST_CLEANUP

Special thanks to Coccinelle for making this easy job.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
7cc39577eb1c54b6eaec6a4da11da296a78accb1 26-Jan-2015 Ken Dreyer <kdreyer@redhat.com> device-drivers/cpufreq: use safe format string arg

Prior to this commit, the cpufreq_boost test failed to build if
-Werror=format-security was used. The compiler could not examine the
contents of the cdrv array.

Adjust the SAFE_FILE_PRINTF call so that the format string is a string
literal.

Fedora recently enabled this compiler option in their RPM builds, so
this fixes the build on Fedora 21.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
8bfd7c194d56e2f2ff8bfc14b2824964d3a0e3ef 03-Dec-2014 Li Wang <liwang@redhat.com> test cleanup should not use SAFE_FILE_*

Add FILE_PRINTF() and FILE_SCANF() equivalents to SAFE_FILE_PRINTF() and
SAFE_FILE_SCANF(). The difference is that the newly added functions does
not exit the test execution and only prints a warning and therefore can
be used from the test cleanup().

Make use of them in the testcases.

Signed-off-by: Li Wang <liwang@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
b926efb1fbc5160d7a2040bf413ab701cf20b666 04-Dec-2014 Alexey Kodanev <alexey.kodanev@oracle.com> device-drivers/cpufreq: add intel_pstate driver to boost test

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c
b70c257a86f3b9ac350917a1c08a4cc981cf0fc9 04-Dec-2014 Alexey Kodanev <alexey.kodanev@oracle.com> device-drivers/ltp_acpi_cpufreq: move it to cpufreq/cpufreq_boost

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
/external/ltp/testcases/kernel/device-drivers/cpufreq/cpufreq_boost.c