to test framework
ok 2 2f simple test, no need for verify
ok 3 3f simple test, no need for setup or teardown (or verify)
$
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
file AddingTestCases.txt
clarification of what is expected/allowed in setup/teardown
file exampl
Ignore .pyc files, "python compiled" files, that get created
when a python script is run. They should never be committed.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc_helper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/tc-testing/tdc_helper.py
b/tools/testing/selftests/tc-testing/tdc_helper.py
index c3254f
environment for testing the test framework and/or
the core tests.
Also it makes it harder for any custom config to be
submitted back to the kernel tdc.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc_config.py | 14 +
.../tc-t
-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 23 ++-
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/tools/testing/selftests/tc-testing/tdc.py
b/tools/testing/selftests/tc-testing/tdc.py
index 550873
-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc_helper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/tc-testing/tdc_helper.py
b/tools/testing/selftests/tc-testing/tdc_helper.py
index c3254f861fb2..b4fbb0ce0cbe
e test can be displayed with
one command.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py| 7 ---
tools/testing/selftests/tc-testing/tdc_helper.py | 12 +++-
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git
The docstring says the function returns a "set" but it returns
a "list". These are both python data types, so we should refer to
the right one that is being returned.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
This patch was formerly sent as part of a 15-
Fixes: 31c2611b66e0 ("selftests: Introduce a new test case to tc testsuite")
Fixes: 76b903ee198d ("selftests: Introduce tc testsuite")
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
We want to run the command inside the container, not in the host.
tools/te
unctionality out of the tdc.py script and
place it in plugins.
To use the plugins, place the implementation in the plugins directory
and run tdc.py. It will notice the plugins and use them.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/TdcPlugin
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/README | 173 +---
tools/testing/selftests/tc-testing/TODO.txt | 25 +++-
2 files changed, 179 insertions(+), 19 deletions(-)
diff --git a/tools/testing/selftests/tc-t
Split the test_runner function into the loop part (test_runner)
and the contents (run_one_test) for maintainability.
It makes it a little easier to catch exceptions
in an individual test, and keep going (and flush a bunch
of tap results for the skipped tests).
Signed-off-by: Brenda J. Butler &l
Run the command under test under valgrind. Produce an extra set of
tap output for the memory check on each test.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
.../tc-testing/plugin-lib/valgrindPlugin.py| 142 +
1 file changed, 142 insertions(+)
creat
being constrained to
run all tests in one collection or just one test.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
.../creating-testcases/AddingTestCases.txt | 35 +++-
tools/testing/selftests/tc-testing/tdc.py | 209 +
tools/testing/se
To make tdc.py more general, we are introducing a plugin architecture.
This patch set first organizes the command line parameters, then
introduces the plugin architecture and some example plugins.
Brenda J. Butler (7):
tools: tc-testing: Command line parms
tools: tc-testing: Refactor test
Move the functionality that checks for root permissions into a plugin.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
.../selftests/tc-testing/plugin-lib/rootPlugin.py | 19 +++
tools/testing/selftests/tc-testing/tdc.py | 4
2 files chang
Move the functionality of creating a namespace before the test suite
and destroying it afterwards to a plugin.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
.../selftests/tc-testing/plugin-lib/nsPlugin.py| 141 +
tools/testing/selftests/tc-testing/
Do a better job with error handling - in pre- and post-suite,
in pre- and post-case. Show a traceback for errors.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 84 +--
1 file changed, 70 insertions(
This patch set contains a bit of cleanup and better error reporting,
esp. in pre- and post-suite, and pre- and post-case commands.
Brenda J. Butler (2):
tools: tc-testing: Fix indentation
tools: tc-testing: better error reporting
tools/testing/selftests/tc-testing/tdc.py | 88
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/tc-testing/tdc.py
b/tools/testing/selftests/tc-testing/tdc.py
index b3754b9aa302..ab28373dccd7
This patch set contains a bit of cleanup and better error reporting,
esp. in pre- and post-suite, and pre- and post-case commands.
Brenda J. Butler (2):
tools: tc-testing: whitespace and .gitignore
tools: tc-testing: better error reporting
tools/testing/selftests/tc-testing/.gitignore | 1
Fix indentation and add editor backup files to .gitignore
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/.gitignore | 1 +
tools/testing/selftests/tc-testing/tdc.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a
Do a better job with error handling - in pre- and post-suite,
in pre- and post-case. Show a traceback for errors.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 84 +--
1 file changed, 70 insertions(
Add a command line arg to suppress tap output. Handy in case
all the tap output is being supplied by the plugins.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
v2: Drop the first patch that changes the format
of the tap output. The second "notap" patch is
r
When all the test results are being supplied by plugins, we may
not want to see any test results for the command under test. So
make a "no-tap" option, to suppress test result output for
the command under test.
Brenda J. Butler (2):
tools: tc-testing: Better tap output
tools: tc-te
Make it easier for automated test platforms to parse the test results.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/plugin-lib/valgrindPlugin.py | 2 +-
tools/testing/selftests/tc-testing/tdc.py | 6 +++---
2 files chan
Add a command line arg to suppress tap output. Handy in case
all the tap output is being supplied by the plugins.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 36 +--
1 file changed, 25 insertions(
With option -P, the test script will pause just before
the post_suite functions are called. This allows the tester to
inspect the system before it is torn down.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 9 +
1 file chan
in the test case:
"cmdUnderTest": "some test command | tee -a $TESTID.out"
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 6 ++
1 file changed, 6 insertions(+)
diff --git a/tools/testing/selftests/tc-testing/tdc.py
b/
At debug level 5 or above, the test script will pause just before
the post_suite functions are called. This allows the tester to
inspect the system before it is torn down.
Signed-off-by: Brenda J. Butler <b...@mojatatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 7 +++
. For example, the testid can be given as a command
line argument.
As an example, if we wish to save the test output to a file
named for the test case, we can write in the test case:
"cmdUnderTest": "some test command | tee -a $TESTID.out"
Signed-off-by: Brenda J. Butle
31 matches
Mail list logo