scenario: Add a scenario that edits a clip while the pipeline is paused
authorThibault Saunier <thibault.saunier@collabora.com>
Tue, 18 Feb 2014 17:52:38 +0000 (18:52 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 2 May 2014 14:58:42 +0000 (16:58 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=729382

configure.ac
tests/Makefile.am
tests/scenarios/Makefile.am [new file with mode: 0644]
tests/scenarios/ges-edit-clip-while-paused.scenario [new file with mode: 0644]

index f992bf3..99b7b3d 100644 (file)
@@ -159,6 +159,11 @@ AC_SUBST(GST_VALIDATE_CFLAGS)
 AC_SUBST(GST_VALIDATE_LIBS)
 AM_CONDITIONAL(HAVE_GST_VALIDATE, [test "x$HAVE_GST_VALIDATE" = "xyes"])
 
+dnl needed for scenarios definition files
+GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_API_VERSION`"
+AC_SUBST(GST_PREFIX)
+GST_DATADIR="$GST_PREFIX/share"
+AC_DEFINE_UNQUOTED(GST_DATADIR, "$GST_DATADIR", [system wide data directory])
 
 
 dnl *** checks for libraries ***
@@ -381,6 +386,7 @@ tests/Makefile
 tests/check/Makefile
 tests/benchmarks/Makefile
 tests/examples/Makefile
+tests/scenarios/Makefile
 tools/Makefile
 docs/Makefile
 docs/version.entities
index 85aa523..ce15144 100644 (file)
@@ -16,7 +16,13 @@ else
 BENCHMARKS_SUBDIR=
 endif
 
-SUBDIRS= $(CHECK_SUBDIRS) $(EXAMPLES_SUBDIRS) $(BENCHMARKS_SUBDIR)
+if HAVE_GST_VALIDATE
+SCENARIOS_SUBDIRS= scenarios
+else
+SCENARIOS_SUBDIRS=
+endif
+
+SUBDIRS= $(CHECK_SUBDIRS) $(EXAMPLES_SUBDIRS) $(BENCHMARKS_SUBDIR) $(SCENARIOS_SUBDIRS)
 
-DIST_SUBDIRS = check examples benchmarks
+DIST_SUBDIRS = check examples benchmarks scenarios
 
diff --git a/tests/scenarios/Makefile.am b/tests/scenarios/Makefile.am
new file mode 100644 (file)
index 0000000..5dacd04
--- /dev/null
@@ -0,0 +1,5 @@
+scenariosdir=${datadir}/gstreamer-$(GST_API_VERSION)/validate-scenario
+
+scenarios_DATA = ges-edit-clip-while-paused.scenario
+
+EXTRA_DIST = ges-edit-clip-while-paused.scenario
diff --git a/tests/scenarios/ges-edit-clip-while-paused.scenario b/tests/scenarios/ges-edit-clip-while-paused.scenario
new file mode 100644 (file)
index 0000000..3da1bf6
--- /dev/null
@@ -0,0 +1,5 @@
+description, duration=4.0
+pause, playback_time=0.0
+wait, duration=1.0
+edit-clip, playback_time=0.0, clip-name="uriclip0", position=3.0, edit-mode="edit_trim", edge="edge_end"
+play, playback_time=0.0