f67deacfc3
Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
2.7 KiB
2.7 KiB
README
The following test cases will be considered as a part of ksc
gating.
Installation issues
- Check whether Module.symvers has been installed
- Check whether kabi-stablelists package has been installed
- Python Bugzilla interface has been installed
- Expect error when nm is not found in $PATH.
Valid uses of ksc
List of tests:
- No external symbol required
- Whitelisted symbol use only
- Non-whitelisted symbol use only
- Mixed whitelisted and non-whitelisted symbol use
- Mixed whitelisted and non-whitelisted symbol use with multiple -k arguments
ksc
called on 8139, crc32_generic, xor
Testing will be done as follows:
- If applicable, try and build a kernel module usecase.
- Pass kernel module(s) to ksc, record output.
- Using the kabi-tools ksc parser [1], parse ksc output.
- Using the nm tool, uname -i and kabi-whitelist, indepedently compose the dictionary that ksc parser produces on ksc output.
- Check for match.
Note that this series of tests checks both ksc valid functionality as well as syntax requirements (indeed, should syntax of a ksc report be significantly changed, ksc parser would produce different results).
Submission tests
Partner RHBZ is used for this purpose.
- All of the 'Valid uses of
ksc
' test cases (called w/ -k) will be re-tested here as well to test immediate submission after generating. - Use any ksc-reports.txt to test submission onto partner RHBZ; in particular
test:
- failure on invalid product
- failure on invalid RHBZ credentials (username, password)
- failure on invalid RHBZ API key
- correct submission (using the gating-embedded bugzilla-cli tool to download and check details of bug and attachments).
Further tests include:
- Check whether justification carry-over works within the same ko file.
- Check whether justification carry-over does not happen when different ko file is used.
Invalid uses of ksc
- Expect error when argument arity is not expected (e.g., $ ksc -k, w/o a ko file provided)
- Expect error when passing non-kernel module as a kernel module (-k)
- Expect error when passing a file w/o read permissions (e.g., kernel module, Module.symvers, ...)
- Expect error when passing a non-existent file (e.g., kernel module, ...)
- Expect error when passing a malformed kernel module.
- Expect error when passing a malformed Module.symvers.
- Expect error when passing a ksc-report.txt as a source of justifications.
Compatibility Tests
- Verify that no options were removed from -h/--help.
- Verify that no options were removed from manpage.
Test known bugs
- EOFError when piping through ksc