Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-11-27 15:27:05 +0300
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2021-01-04 14:26:45 +0300
commit9167e5e5616dd1dfe0dc59aa01d7238ebb44c053 (patch)
treea9ea9a49aa89c5216918ce683baaed10f1fe7d65 /ci
parent32d511684ea52e1c6e15495ec080281be3dd24b8 (diff)
ci: factor out iterate_plugins()
Will be re-used for another test. Also explicitly list the 'rs' prefixed plugins.
Diffstat (limited to 'ci')
-rwxr-xr-xci/check-plugins-installed.py18
-rw-r--r--ci/utils.py16
2 files changed, 22 insertions, 12 deletions
diff --git a/ci/check-plugins-installed.py b/ci/check-plugins-installed.py
index 8284ace79..a334f1385 100755
--- a/ci/check-plugins-installed.py
+++ b/ci/check-plugins-installed.py
@@ -5,8 +5,7 @@ import sys
import os
import glob
-DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
-OVERRIDE = {'wrap': 'textwrap', 'flavors': 'rsflv'}
+from utils import iterate_plugins
prefix = sys.argv[1]
@@ -17,17 +16,12 @@ print("Built plugins:", plugins)
success = True
-for d in DIRS:
- for name in os.listdir(d):
- name = OVERRIDE.get(name, name)
+for name in iterate_plugins():
+ plugin = "libgst{}.so".format(name)
- plugin = "libgst{}.so".format(name)
- # Some plugins are prefixed with 'rs'
- rs_plugin = "libgstrs{}.so".format(name)
-
- if plugin not in plugins and rs_plugin not in plugins:
- print(name, "missing in", prefix)
- success = False
+ if plugin not in plugins:
+ print(name, "missing in", prefix)
+ success = False
if not success:
sys.exit(1)
diff --git a/ci/utils.py b/ci/utils.py
new file mode 100644
index 000000000..a3ec3d1e2
--- /dev/null
+++ b/ci/utils.py
@@ -0,0 +1,16 @@
+import os
+
+DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
+# Plugins whose name is prefixed by 'rs'
+RS_PREFIXED = ['audiofx', 'closedcaption', 'dav1d', 'file']
+OVERRIDE = {'wrap': 'rstextwrap', 'flavors': 'rsflv'}
+
+
+def iterate_plugins():
+ for d in DIRS:
+ for name in os.listdir(d):
+ if name in RS_PREFIXED:
+ name = "rs{}".format(name)
+ else:
+ name = OVERRIDE.get(name, name)
+ yield name