Commit Graph

11 Commits

Author SHA1 Message Date
59cb699bd9 gtk: Add a PropertyList model
Along with Property, PropertyValue, and PropertyFilter objects that are used
togther to show specific properties to the user when placed in a
Gtk.ColumnView.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-16 10:34:20 -04:00
68a00ea94d xunit: Create the xfstestsdb xunit gc command
This command is used to garbage collect the xunit table by removing
xunits that have no testcases. This could be expanded on later to add
more removal conditions, such as xunits older than some age.

Implements: #15 (`xfstestsdb xunit gc`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-07-26 11:26:08 -04:00
ee6c758943 xunit: Update read.py for the recent xunit changes
The xfstests xunit generation has been updated to include an xml
namespace and add some extra attributes to the root element. This broke
my xunit parsing code, which is fixed with this patch.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-04-17 14:15:44 -04:00
3366c1eb0c xfstestsdb: Add testcases from the xunit file to the database
I use the testcases table to store testcase information, and store
messages, system out, and system error logs in the messages table.

The testcases_view is used to link testcases with their source xunits,
messages, system out, and system error logs. This view has an INSTEAD
OF INSERT trigger to allow insertions that properly set up message ids
in the testcases table.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 16:15:55 -05:00
84a7507998 xunit: Create the xfstestsdb xunit properties command
This command prints out (key, value) pairs for each xunit property in
the database. It has options to filter by runid, xunit name, property
name, and value.

Implements: #14 (`xfstestsdb xunit properties`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 14:22:32 -05:00
29065d0f8f xfstestsdb: Add properties from the xunit file to the database
I use the xunit_properties table to store unique (key, value) pairs. The
link_xunit_properties table is then used to link properties to xunit
files.

I also make sure that properties are cleaned up when xunits are deleted,
but that we hang on to properties still in use by other xunits.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 14:22:32 -05:00
e27bc9f5ae xfstestsdb: Create the xfstestsdb xunit list command
This command prints out information about the known xunit files. It has
extra options for filtering by runid, device, name, and hostname. I also
gave it optional Timestamp and Results columns that the user can enable.

Implements: #12 (`xfstestsdb xunit list`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 14:22:32 -05:00
1b95487d06 xunit: Create the xfstestsdb xunit delete command
This command is used to delete individual xunit entries attached to a
specific xfstests run.

Implements: #5 (`xfstestsdb xunit delete`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 14:22:32 -05:00
42ad3ad0fb xunit: Create the xfstestsdb xunit rename command
This command renames an xunit file associated with an xfstests run.

Implement: #4 (`xfstestsdb xunit rename`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 14:22:32 -05:00
16399f375e xunit: Create the xfstestsdb xunit read command
This command reads an xunit file generated by passing "-R xunit" to
xfstests `./check`. Multiple xunit files can be added to a single
xfstests run, and will be shown side-by-side in columns when printed
out.

Implements: #3 (`xfstestsdb xunit read`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 14:22:32 -05:00
35faa3a781 xfstestsdb: Add the xfstestsdb xunit subcommand
This subcommand doesn't actually do anything, it'll act as a hub for
xunit related subcommands instead.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:57:38 -05:00