Commit Graph

19 Commits

Author SHA1 Message Date
Anna Schumaker 06d10cf883 xfstestsdb 1.6
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-11-07 14:11:51 -05:00
Anna Schumaker 528444cab6 xfstestsdb 1.5
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-31 15:52:28 -04:00
Anna Schumaker 2deb484754 xfstestsdb 1.4
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-29 10:43:41 -04:00
Anna Schumaker 4d3425bb57 xfstestsdb 1.3
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-15 10:57:27 -04:00
Anna Schumaker 62bf603ca4 gtk: Add the `xfstestsdb gtk` command
This command doesn't do much at the moment, it simply sets up the Gtk
Application and then exits. The actual UI will be built up over the next
several patches.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-01 17:01:29 -04:00
Anna Schumaker bea49c5eae xfstestsdb 1.2
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-07-26 11:27:32 -04:00
Anna Schumaker 14654dcf23 gc: Create the `xfstestsdb gc` command
This command is used to garbage collect the xfstestsdb sqlite database.
It removes xfstests runs that have no added xunits, and runs older than
180 days that have not been tagged.

Implements: #16 (`xfstestsdb gc`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-07-26 11:26:09 -04:00
Anna Schumaker 14b848bddd xfstestsdb v1.1
- Updates for recent xfstests xunit generation changes
- Fix the `xunit delete` command
- Make sure SQLite foreign_keys are always enabled

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-04-17 15:58:00 -04:00
Anna Schumaker 1996f3b798 xfstestsdb: Create the `xfstestsdb show` command
This command generates a table from the testcases that have been added
to a single run so the results of each testcase can be seen
side-by-side.

Implements: #9 (`xfstestsdb show`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 16:15:56 -05:00
Anna Schumaker 68a4b58a5a xfstestsdb: Add the `xfstestsdb testcase` subcommand
This subcomand doesn't actually do anything. It'll act as a hub for
testcase related subcommands instead.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-16 16:15:56 -05:00
Anna Schumaker 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
Anna Schumaker ceac28e943 xfstestsdb: Create the `xfstestsdb list` command
This uses the Table class to print out a list of xfstests runs in a
table. It supports '--device=', '--tags=', and '--timestamp=' options
that can be used to generate a SQLite GLOB expression to filter the
list of results.

Implements: #10 (`xfstestsdb list`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:57:37 -05:00
Anna Schumaker 6987a13f54 xfstestsdb: Create the `xfstestsdb delete` command
This command deletes a row from the xfstests_runs table and prints
either a success or failure message depending on if the row exists.

I use an sqlite trigger to automatically remove tags for the matching run.

Implements: #2 (`xfstestsdb delete`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:57:18 -05:00
Anna Schumaker b4043b2fa9 xfstestsdb: Create the `xfstestsdb untag` command
This is the opposite of `xfstestsdb tag`, and removes a tag from an
xfstests run.

Implements: #7 (`xfstestsdb untag`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:57:16 -05:00
Anna Schumaker 4e6c95b158 xfstestsdb: Create the `xfstestsdb tag` command
This lets us assign arbitrary text tags to an xfstests run.

Implements: #6 (`xfstestsdb tag`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:57:14 -05:00
Anna Schumaker 56774dbb85 xfstestsdb: Create the `xfstestsdb rename` command
This command renames the device in an xfstests_runs database row.

Implements: #8 (`xfstestsdb rename`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:56:44 -05:00
Anna Schumaker 6a6fe5dda8 xfstestsdb: Create the `xfstestsdb new` command
This command inserts a new row into the xfstests_runs table and prints
out the result.

Note that sqlite stores timestamps as UTC, so I use the datetime()
function to convert to localtime when returning the new row.

Implements: #1 (`xfstestsdb new`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 15:56:42 -05:00
Anna Schumaker e3cf7e7017 xfstestsdb: Add a sqlite.Connection instance to the root Command
And take some extra steps to make sure we clean it up when the Command
is finished.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-15 11:52:42 -05:00
Anna Schumaker c210eff9b9 xfstestsdb: Create the root xfstestsdb Command
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-02-13 12:01:46 -05:00