switch-coreboot/util/board_status/to-wiki
Arthur Heymans 470546ebc1 UPSTREAM: board_status/towiki.sh: Fix Socket for Sandy and Ivy Bridge
BUG=none
BRANCH=none
TEST=none

Change-Id: I60d0b2a4700d4259673886ba7bd29a3db5255614
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 1b69d73530
Original-Change-Id: I4c94209c424f56516033c07c4365401a6b217a37
Original-Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-on: https://review.coreboot.org/18478
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://chromium-review.googlesource.com/454575
2017-03-14 07:25:39 -07:00
..
bucketize.sh UPSTREAM: board_status/to-wiki: Update bucketize script 2017-01-28 04:11:04 -08:00
foreword.wiki UPSTREAM: boardstatus: wiki: Update XiVO's coreboot fork source address 2017-02-21 06:44:25 -08:00
push-to-wiki.sh board-status: make push-to-wiki more flexible 2016-02-21 01:42:59 +01:00
README board-status: make push-to-wiki more flexible 2016-02-21 01:42:59 +01:00
status-to-wiki.sh Add scripts to export board status data to wiki 2013-12-05 18:40:25 +01:00
towiki.sh UPSTREAM: board_status/towiki.sh: Fix Socket for Sandy and Ivy Bridge 2017-03-14 07:25:39 -07:00

Scripts to publish board-status data to the wiki
================================================

These scripts parse the board-status repository (and the coreboot repository as companion)
to build a meaningful representation of the test coverage stored in board-status.

The server runs these nightly (CET/CEST), so no user interaction with the wiki page is needed.

How to use
----------
When modifying the scripts, or when publishing the results elsewhere, you might want to run them
yourself. You'll need the board-status and the coreboot repository checked out side by side, named
"board-status" and "coreboot" respectively (in particular without .git suffix).

To emit wiki-text, in the board-status repository's top-level directory, run

    $ ../util/board_status/to-wiki/status-to-wiki.sh

The output ends up on stdout, so you'll have to store it yourself, if you need it later.

`push-to-wiki.sh FILENAME TITLE` can be used to push a file into the wiki.
User credentials are looked up in ~/.wikiaccount, which should look like

    USERNAME=user
    USERPASS=password

How it works
------------
status-to-wiki collects the reports and sorts them in buckets by report date. These can have
weekly, monthly and quarterly granularity.
It then passes these into the towiki script, which reads the data in more details and prints
them in the output format.

Contributions
-------------
These scripts are rather bare, and you're welcome to extend them to extract more useful data
from both repositories, and to present the data in a nicer way.
A rewrite into another (reasonable) language is fine, too - shell quickly finds its limits
for this kind of text processing.