...
 
Commits (16)
project('gst-devtools', 'c',
version : '1.11.91',
version : '1.12.2',
meson_version : '>= 0.36.0',
default_options : [ 'warning_level=1',
'c_std=gnu99',
......
=== release 1.12.5 ===
2018-03-28 14:33:36 +0100 Tim-Philipp Müller <tim@centricular.com>
* validate/ChangeLog:
* validate/NEWS:
* validate/configure.ac:
* validate/gst-validate.doap:
Release 1.12.5
2017-07-18 15:38:04 +0200 Edward Hervey <edward@centricular.com>
* validate/gst/validate/gst-validate-utils.c:
validate-utils: Add NULL check
Unlikely to be triggered. And fix typo at the same time
CID #1415464
2017-05-05 14:57:20 +0200 Edward Hervey <edward@centricular.com>
* validate/gst/validate/gst-validate-report.c:
validate-report: Don't leak GError
2017-05-05 14:57:56 +0200 Edward Hervey <edward@centricular.com>
* validate/gst/validate/gst-validate-scenario.c:
validate-scenario: Don't end up with invalid action name
When replacing an action structure, also update the action name with
the (new) name from the new structure. Otherwise we end up with
a bogus name from the previous (deleted) structure.
2017-05-03 17:57:05 +0200 Edward Hervey <edward@centricular.com>
* validate/gst/validate/gst-validate-scenario.c:
validate-scenario: Avoid invalid memory access
The name of the action comes directly (i.e. not copied) from the
contained GstStructure field. Therefore make sure to take that
name from the proper structure field (copied just before) and
not from an outside one.
=== release 1.12.4 ===
2017-12-07 20:22:48 +0200 Sebastian Dröge <sebastian@centricular.com>
* validate/ChangeLog:
* validate/NEWS:
* validate/configure.ac:
* validate/gst-validate.doap:
Release 1.12.4
=== release 1.12.3 ===
2017-09-18 17:49:33 +0300 Sebastian Dröge <sebastian@centricular.com>
* validate/ChangeLog:
* validate/NEWS:
* validate/configure.ac:
* validate/gst-validate.doap:
Release 1.12.3
2017-08-26 10:50:44 -0300 Thibault Saunier <thibault.saunier@osg.samsung.com>
* validate/launcher/utils.py:
launcher: Automatically disable output coloration if not supported
2017-08-26 09:10:40 -0300 Thibault Saunier <thibault.saunier@osg.samsung.com>
* validate/launcher/meson.build:
meson: Fix the way we set the testsuite version
2017-08-18 11:37:28 -0300 Thibault Saunier <thibault.saunier@osg.samsung.com>
* validate/launcher/baseclasses.py:
* validate/launcher/main.py:
* validate/launcher/reporters.py:
validate:launcher: Use the number of failed test as exit code
We used to always return 0, which was not right!
=== release 1.12.2 ===
2017-07-14 14:05:44 +0300 Sebastian Dröge <sebastian@centricular.com>
* meson.build:
* validate/ChangeLog:
* validate/NEWS:
* validate/configure.ac:
* validate/gst-validate.doap:
Release 1.12.2
2017-07-14 10:36:49 +0300 Sebastian Dröge <sebastian@centricular.com>
* validate/launcher/apps/gstvalidate.py:
validate: Un-blacklist scrub_forward_seeking.op2b-mpeg2-wave_hd_mxf
It works now after various mxfdemux changes.
https://bugzilla.gnome.org/show_bug.cgi?id=764025
2017-07-13 08:45:28 +0200 Edward Hervey <edward@centricular.com>
* validate/launcher/apps/gstvalidate.py:
gstvalidate: Re-allow tests that should be fixed
=== release 1.12.1 ===
2017-06-20 12:09:26 +0300 Sebastian Dröge <sebastian@centricular.com>
* validate/ChangeLog:
* validate/NEWS:
* validate/configure.ac:
* validate/gst-validate.doap:
Release 1.12.1
2017-05-04 13:47:36 -0300 Thibault Saunier <thibault.saunier@osg.samsung.com>
* validate/configure.ac:
validate: Target the 1.12 integration testsuite
2017-05-04 19:01:52 +0300 Sebastian Dröge <sebastian@centricular.com>
* meson.build:
Fixup version in meson.build
=== release 1.12.0 ===
2017-05-04 Sebastian Dröge <slomo@coaxion.net>
2017-05-04 15:48:44 +0300 Sebastian Dröge <sebastian@centricular.com>
* configure.ac:
releasing 1.12.0
* validate/ChangeLog:
* validate/NEWS:
* validate/configure.ac:
* validate/gst-validate.doap:
Release 1.12.0
2017-04-30 14:35:29 -0300 Thibault Saunier <thibault.saunier@osg.samsung.com>
......
This diff is collapsed.
......@@ -2,7 +2,7 @@ AC_PREREQ(2.62)
dnl initialize autoconf
dnl when going to/from release please set the nano (fourth number) right !
dnl releases only do Wall, cvs and prerelease does Werror too
AC_INIT(Gst-Validate, 1.12.0,
AC_INIT(Gst-Validate, 1.12.5,
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
gst-validate)
......@@ -10,7 +10,7 @@ dnl This is the version of the testsuite to use with the current version
dnl of gst-validate. During development it should be "master"
dnl during release cycle it should be the release version (1.6 in the 1.6
dnl branch, 1.5.90 for the 1.5.90 release)
GST_VALIDATE_TESTSUITE_VERSION="master"
GST_VALIDATE_TESTSUITE_VERSION="1.12"
AS_AC_EXPAND(GST_VALIDATE_TESTSUITE_VERSION, $GST_VALIDATE_TESTSUITE_VERSION)
AG_GST_INIT
......@@ -49,7 +49,7 @@ AC_SUBST(GST_API_VERSION)
AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION",
[GStreamer API Version])
AS_LIBTOOL(GST, 1200, 0, 1200)
AS_LIBTOOL(GST, 1205, 0, 1205)
dnl *** required versions of GStreamer stuff ***
GST_REQ=1.12.0
......
......@@ -50,7 +50,57 @@
<location rdf:resource="git://anongit.freedesktop.org/gstreamer/gst-devtools"/>
<browse rdf:resource="http://cgit.freedesktop.org/gstreamer/gst-devtools/"/>
</GitRepository>
</repository>
</repository>
<release>
<Version>
<revision>1.12.5</revision>
<branch>1.12</branch>
<name></name>
<created>2018-03-28</created>
<file-release rdf:resource="https://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.12.5.tar.xz" />
</Version>
</release>
<release>
<Version>
<revision>1.12.4</revision>
<branch>1.12</branch>
<name></name>
<created>2017-12-07</created>
<file-release rdf:resource="http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.12.4.tar.xz" />
</Version>
</release>
<release>
<Version>
<revision>1.12.3</revision>
<branch>1.12</branch>
<name></name>
<created>2017-09-18</created>
<file-release rdf:resource="http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.12.3.tar.xz" />
</Version>
</release>
<release>
<Version>
<revision>1.12.2</revision>
<branch>1.12</branch>
<name></name>
<created>2017-07-14</created>
<file-release rdf:resource="http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.12.2.tar.xz" />
</Version>
</release>
<release>
<Version>
<revision>1.12.1</revision>
<branch>1.12</branch>
<name></name>
<created>2017-06-20</created>
<file-release rdf:resource="http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.12.1.tar.xz" />
</Version>
</release>
<release>
<Version>
......
......@@ -420,6 +420,8 @@ gst_validate_send (JsonNode * root)
g_free (message);
g_object_unref (jgen);
if (error)
g_error_free (error);
g_idle_add ((GSourceFunc) gst_validate_send, root);
return G_SOURCE_REMOVE;
}
......@@ -431,6 +433,8 @@ gst_validate_send (JsonNode * root)
g_free (message);
g_object_unref (jgen);
if (error)
g_error_free (error);
done:
json_node_free (root);
......
......@@ -1524,6 +1524,9 @@ gst_validate_execute_action (GstValidateActionType * action_type,
action->priv->printed = FALSE;
action->structure = gst_structure_copy (action->priv->main_structure);
if (!(action->name = gst_structure_get_string (action->structure, "name")))
action->name = "";
if (res == GST_VALIDATE_EXECUTE_ACTION_ASYNC)
action->priv->executing_last_subaction = TRUE;
}
......@@ -1596,11 +1599,11 @@ _fill_action (GstValidateScenario * scenario, GstValidateAction * action,
"No timeout time for action %" GST_PTR_FORMAT, structure);
}
if (!(action->name = gst_structure_get_string (structure, "name")))
action->name = "";
action->structure = gst_structure_copy (structure);
if (!(action->name = gst_structure_get_string (action->structure, "name")))
action->name = "";
if (!action->priv->main_structure)
action->priv->main_structure = gst_structure_copy (structure);
......
......@@ -583,11 +583,14 @@ _get_lines (const gchar * scenario_file)
/* Returns: (transfer full): a #GList of #GstStructure */
static GList *
_lines_get_strutures (gchar ** lines)
_lines_get_structures (gchar ** lines)
{
gint i;
GList *structures = NULL;
if (lines == NULL)
return NULL;
for (i = 0; lines[i]; i++) {
GstStructure *structure;
......@@ -604,8 +607,7 @@ _lines_get_strutures (gchar ** lines)
}
done:
if (lines)
g_strfreev (lines);
g_strfreev (lines);
return structures;
......@@ -632,7 +634,7 @@ gst_validate_utils_structs_parse_from_filename (const gchar * scenario_file)
return NULL;
}
return _lines_get_strutures (lines);
return _lines_get_structures (lines);
}
/**
......@@ -648,7 +650,7 @@ gst_validate_structs_parse_from_gfile (GFile * scenario_file)
if (lines == NULL)
return NULL;
return _lines_get_strutures (lines);
return _lines_get_structures (lines);
}
static gboolean
......
......@@ -833,12 +833,6 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
# hls known issues
("validate.hls.playback.seek_with_stop.*",
"https://bugzilla.gnome.org/show_bug.cgi?id=753689"),
("validate.hls.playback.reverse_playback.*",
"https://bugzilla.gnome.org/show_bug.cgi?id=773159"),
("validate.hls.playback.scrub_forward_seeking.*",
"https://bugzilla.gnome.org/show_bug.cgi?id=773159"),
("validate.hls.playback.fast_forward.*",
"https://bugzilla.gnome.org/show_bug.cgi?id=773159"),
# dash known issues
("validate.dash.media_check.*",
......@@ -875,8 +869,6 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
"Reverse playback is not handled in MXF"),
("validate\.file\.transcode.*mxf",
"FIXME: Transcoding and mixing tests need to be tested"),
("validate.file.playback.scrub_forward_seeking.op2b-mpeg2-wave_hd_mxf",
"https://bugzilla.gnome.org/show_bug.cgi?id=764025"),
# WMV known issues"
(".*reverse_playback.*wmv",
......
......@@ -1632,7 +1632,7 @@ class _TestsLauncher(Loggable):
return self._run_tests()
def final_report(self):
self.reporter.final_report()
return self.reporter.final_report()
def needs_http_server(self):
for tester in self.testers:
......
......@@ -594,11 +594,11 @@ Note that all testsuite should be inside python modules, so the directory should
exception = e
pass
finally:
tests_launcher.final_report()
res = tests_launcher.final_report()
tests_launcher.clean_tests()
httpsrv.stop()
vfb_server.stop()
if exception is not None:
raise exception
return 0
return res
_launcherdir = get_option('libdir') + '/gst-validate-launcher/python/launcher/'
launcher_configure = configuration_data()
launcher_configure.set('GST_VALIDATE_TESTSUITE_VERSION', '"@0@"'.format(TESTSUITE_VERSION))
launcher_configure.set('GST_VALIDATE_TESTSUITE_VERSION', '@0@'.format(TESTSUITE_VERSION))
launcher_configure.set('BUILDDIR', meson.build_root())
configure_file(input : 'config.py.in',
output : 'config.py',
......
......@@ -125,6 +125,8 @@ class Reporter(Loggable):
printc("%sTotal: %d" % (lenstat * " ", total), color)
return self.stats["failures"]
class XunitReporter(Reporter):
......@@ -139,7 +141,7 @@ class XunitReporter(Reporter):
def final_report(self):
self.report()
super(XunitReporter, self).final_report()
return super(XunitReporter, self).final_report()
def _get_captured(self, test):
captured = ""
......
......@@ -72,6 +72,16 @@ class Protocols(object):
return False
def supports_ansi_colors():
platform = sys.platform
supported_platform = platform != 'win32' or 'ANSICON' in os.environ
# isatty is not always implemented, #6223.
is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
if not supported_platform or not is_a_tty:
return False
return True
class Colors(object):
HEADER = '\033[95m'
OKBLUE = '\033[94m'
......@@ -89,6 +99,9 @@ def desactivate_colors():
Colors.FAIL = ''
Colors.ENDC = ''
if not supports_ansi_colors():
desactivate_colors()
def mkdir(directory):
try:
......