Avocado Documentation Release 89.0
Total Page:16
File Type:pdf, Size:1020Kb
avocado Documentation Release 89.0 Avocado Development Team Jun 21, 2021 Quick Start 1 How does it work? 3 2 Why should I use it? 5 2.1 Multiple result formats..........................................5 2.2 Sysinfo data collector..........................................5 2.3 Job Replay and Job Diff.........................................6 2.4 Extensible by plugins..........................................7 2.5 Utility libraries..............................................7 3 Avocado Python API 9 4 How to install 11 5 Documentation 13 6 Bugs/Requests 15 7 Changelog 17 8 License 19 9 Build and Quality Status 21 9.1 Welcome to Avocado........................................... 21 9.1.1 How does it work?....................................... 21 9.1.2 Why should I use it?...................................... 22 9.1.3 Avocado Python API...................................... 24 9.1.4 How to install.......................................... 24 9.1.5 Documentation......................................... 25 9.1.6 Bugs/Requests......................................... 25 9.1.7 Changelog............................................ 25 9.1.8 License............................................. 25 9.1.9 Build and Quality Status.................................... 25 9.2 Avocado User’s Guide.......................................... 25 9.2.1 About Avocado......................................... 25 9.2.2 Installing............................................ 26 9.2.3 Introduction........................................... 28 9.2.4 Basic Concepts......................................... 38 9.2.5 Basic Operations........................................ 42 i 9.2.6 Results Specification...................................... 48 9.2.7 Filtering tests by tags...................................... 51 9.2.8 Configuring........................................... 54 9.2.9 Managing Requirements.................................... 57 9.2.10 Managing Assets........................................ 59 9.2.11 Avocado Data Directories.................................... 60 9.2.12 Avocado logging system.................................... 61 9.2.13 Understanding the plugin system................................ 62 9.2.14 Understanding the test discovery (Avocado Loaders)..................... 67 9.2.15 Advanced usage......................................... 70 9.2.16 What’s next?.......................................... 71 9.3 Avocado Test Writer’s Guide....................................... 71 9.3.1 Writing a Simple Test...................................... 71 9.3.2 Writing Avocado Tests with Python.............................. 72 9.3.3 Advanced logging capabilities................................. 99 9.3.4 Test parameters......................................... 101 9.3.5 Utility Libraries......................................... 105 9.3.6 Subclassing Avocado...................................... 109 9.4 Avocado Contributor’s Guide...................................... 111 9.4.1 Brief introduction........................................ 111 9.4.2 How can I contribute?...................................... 112 9.4.3 Development environment................................... 116 9.4.4 Style guides........................................... 117 9.4.5 Writing an Avocado plugin................................... 118 9.4.6 The “nrunner” and “runner” test runner............................ 126 9.4.7 Implementing other result formats............................... 137 9.4.8 Request for Comments (RFCs)................................. 137 9.4.9 Releasing Avocado....................................... 143 9.4.10 Avocado development tips................................... 146 9.4.11 Contact information....................................... 147 9.5 Optional plugins............................................. 147 9.5.1 Avocado-ec2 Plugin....................................... 147 9.5.2 Golang Plugin.......................................... 148 9.5.3 Result plugins.......................................... 149 9.5.4 Robot Plugin.......................................... 151 9.5.5 CIT Varianter Plugin...................................... 151 9.5.6 PICT Varianter plugin...................................... 159 9.5.7 Multiplexer........................................... 160 9.5.8 Multiplexer concept....................................... 161 9.5.9 Yaml_to_mux plugin...................................... 163 9.6 Avocado Releases............................................ 173 9.6.1 How we release Avocado.................................... 173 9.6.2 Long Term Stability Releases.................................. 173 9.6.3 Regular Releases........................................ 194 9.7 BP000.................................................. 280 9.7.1 TL;DR.............................................. 280 9.7.2 Motivation............................................ 281 9.7.3 Specification.......................................... 282 9.7.4 Backwards Compatibility.................................... 284 9.7.5 Security Implications...................................... 284 9.7.6 How to Teach This....................................... 285 9.7.7 Related Issues.......................................... 285 9.7.8 References........................................... 285 9.8 BP001.................................................. 285 ii 9.8.1 TL;DR.............................................. 286 9.8.2 Motivation............................................ 286 9.8.3 Specification.......................................... 287 9.8.4 Backwards Compatibility.................................... 292 9.8.5 Security Implications...................................... 292 9.8.6 How to Teach This....................................... 293 9.8.7 Related Issues.......................................... 293 9.8.8 References........................................... 293 9.9 BP002.................................................. 294 9.9.1 TL;DR.............................................. 294 9.9.2 Motivation............................................ 295 9.9.3 Specification.......................................... 295 9.9.4 Backward Compatibility.................................... 298 9.9.5 Security Implications...................................... 298 9.9.6 How to Teach This....................................... 298 9.9.7 Related Issues.......................................... 299 9.9.8 References........................................... 299 9.10 BP003.................................................. 299 9.10.1 TL;DR.............................................. 300 9.10.2 Motivations........................................... 301 9.10.3 Goals of this BluePrint..................................... 301 9.10.4 Requirements.......................................... 301 9.10.5 Suggested Terminology for the Task Phases.......................... 304 9.10.6 Task life-cycle example..................................... 305 9.10.7 Implementation Example.................................... 309 9.10.8 Backwards Compatibility.................................... 314 9.10.9 Security Implications...................................... 314 9.10.10 How to Teach This....................................... 314 9.10.11 Related Issues.......................................... 314 9.10.12 Future work........................................... 314 9.10.13 References........................................... 315 9.11 Other Resources............................................. 315 9.11.1 Presentations.......................................... 315 9.11.2 Public test repositories..................................... 315 9.12 Avocado’s Configuration Reference................................... 316 9.12.1 assets.fetch.ignore_errors.................................... 316 9.12.2 assets.fetch.references..................................... 316 9.12.3 assets.list.days.......................................... 316 9.12.4 assets.list.overall_limit..................................... 316 9.12.5 assets.list.size_filter....................................... 316 9.12.6 assets.purge.days........................................ 317 9.12.7 assets.purge.overall_limit.................................... 317 9.12.8 assets.purge.size_filter..................................... 317 9.12.9 assets.register.name....................................... 317 9.12.10 assets.register.sha1_hash.................................... 317 9.12.11 assets.register.url........................................ 317 9.12.12 config.datadir.......................................... 318 9.12.13 core.input_encoding...................................... 318 9.12.14 core.paginator.......................................... 318 9.12.15 core.show............................................ 318 9.12.16 core.verbose........................................... 318 9.12.17 datadir.paths.base_dir...................................... 318 9.12.18 datadir.paths.cache_dirs..................................... 319 9.12.19 datadir.paths.data_dir...................................... 319 iii 9.12.20 datadir.paths.logs_dir...................................... 319 9.12.21 datadir.paths.test_dir...................................... 319 9.12.22 diff.create_reports........................................ 319 9.12.23 diff.filter............................................. 319 9.12.24 diff.html............................................. 319 9.12.25 diff.jobids............................................ 320 9.12.26 diff.open_browser.......................................