I still build the arguments to the application in the main do_command()
handler, but delay running it so the database won't be locked allowing
other commands to still work.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
Up until now, we've been appending an extra column to the listed output
but allowing it to have empty entries. I'm changing this to filter out
NULL entries, since it turns out that's what I want when I use the
--tags option. I also updated the --xunits option to be consistent.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This patch adds a "vacuum()" function to our sqlite Connection that is
called if we detect that rows have been deleted during `xfstestsdb gc`
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The main function is run inside a sqlite transaction context, but there
are a few rare cases where we want to call a function after the main
function and outside of a transaction (such as using the sqlite 'VACUUM'
operation). This gives us a way to do that.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This includes a treemodel property that is intended to be set on a
listview to show our tag tree.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This will be used to make a tree of tag / device / run objects for
viewing. I sort the tags so that newer ones appear towards the top of
the list.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I plan to have a few different ways to view and select xfstests runs, so
I use an Gtk.Stack() and Gtk.StackSwitcher() to animate switching
between the different sidebar pages.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This will be placed in the sidebar to display our tree of potential runs
to view. I do this as its own widget so we can reuse it for different
sidebar views.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This will be used to make Gtk.TreeExpander rows containing a
Gtk.Label to display the XfstestsRuns on a given day.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I will add to this to create a TreeModel to display individual runs
associated with each device in the sidebar.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
And set things up so we show the sidebar when the user doesn't specify a
runid, but have it hidden when they do.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The OverlaySplitView contains a sidebar area that can be toggled by the
user that I will be using to create an xfstests history browser.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I change the icon to a "down" arrow, and update the animation direction
to go up-and-down rather than left-and-right. I also change the button
text to say "done", which is a little clearer than "back".
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The MessagesView combines two MessageViews into a split-pane card. This
lets us display stdout and stderr side-by-side to the user so they can
see what is going on. I also add a 'back' button that the user can click
to signal that they are done reviewing the output.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The message view will be used to display either stdout or stderr
messages to the user. It has built-in 'diff' detection, and adds nice
colors to the diff output if we are asked to display one.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I only do this for failing tests that have text set in their stdout or
stderr properties. I also update the CSS for failed tests to give an
indication when users hover their mouse over them.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The EnvironmentView is a ColumnView configured to display environment
properties to the user. It doesn't use the firstcol property at all, so
some extra handling of the model property was needed.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is different from our other xunit factories. Instead of displaying
values for each xunit, it looks into what we determine to be environment
properties and displays those instead.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I define the envorionment as properties that are the same across each
added xunit, as long as there are more than 1 added xunits. I add an
'environment' property to make it easy to get the current set of
environment properties.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The XunitView implements most of the work needed by our various views to
show xfstests results.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
And convert most of our Factory implementations to inherit from it. This
lets me set up the xunit property in one single place, and soon I'll be
using this factory for a XunitView base class.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
Now that we've added properties, we need a slightly larger window to
display everything clearly.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
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>
And convert our other Factory instances to inherit from it. This lets me
set up a Gtk.Inscription() in a singe way that is used everywere, and
abstract out some other binding code to make implementing new factories
easier.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The XunitList implements the Gio.ListModel interface, and builds in some
virtual functions to query and fill out the rows in the list in a
standard way. I also update the TestCaseList and SummaryList to both
inherit from this class.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This Object is intended to be returned by a Gio.ListModel to show
Xfstests xunit information. I change the TestCase and Summary classes to
inherit from this class, removing a lot of duplicated code.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I use the XunitCell as a base class for the (renamed) TestResult and
SettingsValue objects. This lets us combine common values and
functionality in one reusable place.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The SummaryView displays a summary of the passed, failed, and skipped
tests for each xunit along with the time it took the xunit to run.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a Gtk.ListItemFactory that creates a Label widget and binds
xunit summaries to it. I use the summary field name to apply an
appropriate CSS class to each label.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I add a global SizeGroup to the LabelFactory so the first column of each
table I make can have the same width. I also add style classes that are
applied with specific item values, which will mostly be used by the
SummaryView labels.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a list model designed to show a summary of xfstests results for
a given runid. I create a new one whenever the Application changes the
runid.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>