mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 04:51:26 +00:00
ci: factor out iterate_plugins()
Will be re-used for another test. Also explicitly list the 'rs' prefixed plugins.
This commit is contained in:
parent
32d511684e
commit
9167e5e561
2 changed files with 22 additions and 12 deletions
|
@ -5,8 +5,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
|
from utils import iterate_plugins
|
||||||
OVERRIDE = {'wrap': 'textwrap', 'flavors': 'rsflv'}
|
|
||||||
|
|
||||||
prefix = sys.argv[1]
|
prefix = sys.argv[1]
|
||||||
|
|
||||||
|
@ -17,17 +16,12 @@ print("Built plugins:", plugins)
|
||||||
|
|
||||||
success = True
|
success = True
|
||||||
|
|
||||||
for d in DIRS:
|
for name in iterate_plugins():
|
||||||
for name in os.listdir(d):
|
plugin = "libgst{}.so".format(name)
|
||||||
name = OVERRIDE.get(name, name)
|
|
||||||
|
|
||||||
plugin = "libgst{}.so".format(name)
|
if plugin not in plugins:
|
||||||
# Some plugins are prefixed with 'rs'
|
print(name, "missing in", prefix)
|
||||||
rs_plugin = "libgstrs{}.so".format(name)
|
success = False
|
||||||
|
|
||||||
if plugin not in plugins and rs_plugin not in plugins:
|
|
||||||
print(name, "missing in", prefix)
|
|
||||||
success = False
|
|
||||||
|
|
||||||
if not success:
|
if not success:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
16
ci/utils.py
Normal file
16
ci/utils.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue