On 10/31/2013 01:23 PM, Kamil Paral wrote:
= TAP =

TAP is not unittest-specific, and is human-readable plaintext format.

It also has just PASS/FAIL logic, but there is a possibility to add YAML
'metadata' to any result (since TAP v. 13).

The real issue with TAP is Python support.
There is a TAP-consumer library created as an example for PyParsing
<http://pyparsing.wikispaces.com/file/detail/TAP.py>, but it does not
support the v13 protocol, and is quite useless as such.
TAP-producer library for Python <https://github.com/rjbs/pytap> is also using
the old version (i.e. no YAML extensions), and seems to be dead (2 years
since last update). It is also quite badly written.

Doesn't autotest support TAP results storage? How do they do it?

Lucas, can you comment? Thanks.


Here you can see an example:

$ client/autotest-local --tap client/tests/sleeptest/control
14:11:58 INFO | Writing results to /home/lmr/Code/autotest.git/autotest/client/results/default
14:11:58 INFO | Could not symlink init scripts (lack of permissions)
14:11:58 INFO | Not logging /proc/slabinfo (lack of permissions)
14:11:58 INFO | START ---- ---- timestamp=1383235918 localtime=Oct 31 14:11:58 14:11:58 INFO | START sleeptest sleeptest timestamp=1383235918 localtime=Oct 31 14:11:58
14:11:58 INFO | Not logging /proc/slabinfo (lack of permissions)
14:11:59 INFO | Not logging /proc/slabinfo (lack of permissions)
14:11:59 INFO | Not logging /var/log/messages (lack of permissions)
14:11:59 INFO | GOOD sleeptest sleeptest timestamp=1383235919 localtime=Oct 31 14:11:59 completed successfully 14:11:59 INFO | END GOOD sleeptest sleeptest timestamp=1383235919 localtime=Oct 31 14:11:59 14:11:59 INFO | END GOOD ---- ---- timestamp=1383235919 localtime=Oct 31 14:11:59 14:11:59 INFO | Report successfully generated at /home/lmr/Code/autotest.git/autotest/client/results/default/job_report.html

$ cd /home/lmr/Code/autotest.git/autotest/client/results/default/

$ ls
control control.state debug job_report.html meta.yml sleeptest status status.json status.tap sysinfo tap.tar.gz

$ cat meta.yml
file_order:
  - status.tap
  - sleeptest/status.tap
  - sleeptest/keyval.tap

$ cat status.tap
1..2
ok 1 - sleeptest
ok 2 - job

$ cat sleeptest/status.tap
1..1
ok 1 - sleeptest

$ cat sleeptest/keyval.tap
1..2
ok 1 - results
  ---
  param-seconds: 1
  version: 1
  ...
ok 2 - results
  ---
sysinfo-cmdline: BOOT_IMAGE=/vmlinuz-3.11.6-301.fc20.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks.uuid=luks-8c032338-feaa-456a-873c-a08c768b8861 vconsole.keymap=us rd.lvm.lv=fedora/root rhgb quiet LANG=en_US.utf8
  sysinfo-memtotal-in-kb: 8061220
  sysinfo-phys-mbytes: 8192
sysinfo-uname: 3.11.6-301.fc20.x86_64 #1 SMP Mon Oct 21 21:54:19 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
  ...

_______________________________________________
qa-devel mailing list
qa-de...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/qa-devel

Reply via email to