Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogOracle: initial implementation #302

Merged
merged 8 commits into from
Jan 9, 2024
Merged

LogOracle: initial implementation #302

merged 8 commits into from
Jan 9, 2024

Conversation

stsnel
Copy link
Collaborator

@stsnel stsnel commented Apr 29, 2022

An "almost for free" Oracle for detecting suspicious messages in log files and/or standard output of commands.

- TESTAR internal flow executes two times getVerdict between actions.
We need to maintain a list of log errors in the LogOracle class because the first getVerdict execution reads and empties the log verdict information.
- Add an example of usage with PrintLogFile SUT + desktop_generic_log_oracle protocol
- Add settings structure
@ferpasri
Copy link
Member

ferpasri commented Dec 20, 2022

To make this feature more generic, we need to prepare some small improvements:

  • Remove part of the console system output prints
  • Currently, the user can indicate all log files that TESTAR reads to apply log oracles. We want to improve the log reading feature to read if a new log exists in a system directory because the name of the log can be automatically generated in runtime.
  • Prepare a FileHandling classification “suspicious_log”

- Add Copyright to LogOracle classes
- Remove specific "desktop_generic_log_oracle" to avoid the increase of protocols
- Create "sequences_suspicious_log" folder when LogOracle detected
- Add TestLogOracles
- Move some trace prints to the log file
- Initialize the logOracle in preSequencePreparations
Copy link
Member

@ferpasri ferpasri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial LogOracle implementation that allows detecting suspicious titles in log files and system command outputs

@ferpasri ferpasri merged commit a672965 into master Jan 9, 2024
5 checks passed
New test oracles for TESTAR automation moved this from TODO to Done Jan 9, 2024
@ferpasri ferpasri deleted the sietse-logoracle branch February 26, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Generic oracle: crash dumps check with dynamic files
4 participants