Jetzt loslegen. Gratis!
oder registrieren mit Ihrer E-Mail-Adresse
autotest workshop von Mind Map: autotest workshop

1. Presenters

1.1. Lukáš Doktor

1.2. Jiří Župka

2. Content

2.1. Introduction

2.1.1. Purpose of autotest

2.1.2. Autotest structure

2.1.2.1. Filesystem-structure

2.1.3. virttest

2.2. virttest

2.2.1. Basics (10)

2.2.1.1. https://github.com/autotest/virt-test/wiki/GetStarted

2.2.1.2. git clone --recursive git://github.com/autotest/autotest.git

2.2.1.3. cd autotest/client/tests/virt

2.2.1.4. AUTOTEST_PATH=../../../ ./run -t qemu --list-tests

2.2.1.5. AUTOTEST_PATH=../../../ ./run -t qemu --tests='boot' -v

2.2.1.6. vncviewer :0

2.2.2. Hello_world (15; 30; 45)

2.2.2.1. drop-in echo test

2.2.2.1.1. hostname

2.2.2.1.2. hello world

2.2.2.1.3. cruel world

2.2.2.2. basic test

2.2.2.2.1. hello world 2.0

2.2.2.2.2. cruel world 2.0

2.2.2.2.3. virtualized hello world

2.2.2.3. params

2.2.2.3.1. ls_disk

2.2.2.4. vm.monitor.cmd()

2.2.2.4.1. ls_disk

2.2.3. Automatic machine install (5)

2.2.3.1. unattended_install

2.2.3.1.1. --tests="io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_native" --guest=Fedora...

2.2.3.1.2. --tests="io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_native" --guest=Win7.x86_64.sp1

2.3. Autotest is not only virttest (15-20)

2.3.1. Autotest directory structure

2.3.1.1. structure overview

2.3.1.1.1. really fast

2.3.1.2. virtclient test dir structure

2.3.1.3. reports

2.3.1.3.1. location

2.3.1.3.2. what is in

2.3.2. autotest

2.3.2.1. server

2.3.2.2. client

2.3.2.3. testy

2.3.2.3.1. virttest

2.3.2.3.2. runner

2.3.2.4. html

2.3.2.5. rpc

2.3.2.5.1. virttest runner + autotest cloud

2.4. Multi-host support (10)

2.4.1. Prepare Virt env

2.4.2. start tcp migration tests

2.4.3. explain bariers

2.5. Git (15)

2.5.1. Submodule

2.5.1.1. clone

2.5.1.1.1. git clone –recursive

2.5.1.2. add submodule

2.5.1.2.1. git submodule add git://github.com/my/submodule.git ./subm

2.5.1.3. Fetch submodules

2.5.1.3.1. git submodule update --init

2.5.1.4. Pull changes

2.5.1.4.1. git pull origin/master

2.5.1.4.2. git submodule update

2.5.2. Github

2.6. Eclipse (15-30)

2.6.1. New project

2.6.1.1. https://github.com/autotest/autotest/wiki/Using-Eclipse-with-autotest

2.6.1.2. enable code_analysis

2.6.2. Playing with

2.6.2.1. ctrl+click

2.6.2.2. ctrl+1

2.6.2.3. ctrl+h

2.6.2.4. ctrl+shift+f. ctrl+shift+o

2.6.2.5. ctrl+space

2.6.2.6. pep8, pylint

2.6.3. Debugging

2.6.3.1. test

2.6.3.2. env_preprocess

2.6.3.3. Remote debuging pydev

2.6.3.3.1. on guest

2.6.4. Git

2.6.4.1. Working with Submodule

2.6.4.2. annotation

2.7. Params (15)

2.7.1. Create some really easy example with explaining how it really works

2.7.1.1. základy vyhodnocování + příklady

2.7.2. vm

2.7.3. images

2.7.4. custom

2.7.5. variants

2.7.6. named-whatever

2.7.7. +-=<>

3. Bonus

3.1. formating patches

3.1.1. run_pep8 and run_pylint

3.1.2. split patch by "git citool"

3.1.3. send to github

3.2. testing patches

3.2.1. tools/check_patch.py

3.3. multi_disk test

3.3.1. walkthrough

3.3.2. qemu_devices

3.3.3. qtree_verification

3.4. modifying params in test

3.4.1. process_image()

3.4.1.1. multi_disk.py

3.4.2. process_vm()

3.4.2.1. virtio_console.py

3.5. command v shelu VM aexpect

3.5.1. interactive command

3.6. qemu_devices

3.6.1. structure

3.6.2. goal

3.6.3. stored information

3.6.4. hotplug

3.6.4.1. pci_devices.py

3.7. Services

3.7.1. shared/service.py

3.7.1.1. ServiceManager

3.7.1.2. SpecificServiceManager

3.7.1.3. start, stop, status, ...

3.7.2. init/systemd

3.7.3. example

3.8. Software manager

3.8.1. shared/software_manager.py

3.8.1.1. SoftwareManager

3.8.1.2. install, remove, provides, list_all, list_files, ...

3.8.2. Atp, Yum, Zypper

3.8.3. v2v/tests/install.py

3.9. Advanced Eclipse

3.9.1. Github

3.9.1.1. task

3.10. Explosion

3.10.1. autotest freezes while initialization

3.10.1.1. --no-downloads

3.10.2. cleanup environment

3.10.2.1. #!/bin/bash sudo killall run sudo killall autotest sudo killall autotest-local sudo killall qemu-system-x86_64 sudo killall qemu-kvm sudo killall qemu rm -f env sudo rm -f /tmp/address_pool* sudo rm -f /tmp/__db.address_pool

3.10.3. --list-tests

3.10.3.1. name_change

3.10.3.2. directory changed

3.10.4. --list-guests

3.10.4.1. x86_64 vs. 64