summaryrefslogtreecommitdiff
path: root/tests/plugins/pipeline/customsource
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/pipeline/customsource')
-rw-r--r--tests/plugins/pipeline/customsource/elements/simple.bst6
-rw-r--r--tests/plugins/pipeline/customsource/pluginsources/__init__.py0
-rw-r--r--tests/plugins/pipeline/customsource/pluginsources/foo.py17
-rw-r--r--tests/plugins/pipeline/customsource/project.conf5
4 files changed, 28 insertions, 0 deletions
diff --git a/tests/plugins/pipeline/customsource/elements/simple.bst b/tests/plugins/pipeline/customsource/elements/simple.bst
new file mode 100644
index 000000000..7e0cc43b7
--- /dev/null
+++ b/tests/plugins/pipeline/customsource/elements/simple.bst
@@ -0,0 +1,6 @@
+kind: autotools
+description: Custom foo source
+sources:
+- kind: foo
+ ref: 1.2.3
+ uri: http://ponyland.com
diff --git a/tests/plugins/pipeline/customsource/pluginsources/__init__.py b/tests/plugins/pipeline/customsource/pluginsources/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/plugins/pipeline/customsource/pluginsources/__init__.py
diff --git a/tests/plugins/pipeline/customsource/pluginsources/foo.py b/tests/plugins/pipeline/customsource/pluginsources/foo.py
new file mode 100644
index 000000000..d2b0d9c6d
--- /dev/null
+++ b/tests/plugins/pipeline/customsource/pluginsources/foo.py
@@ -0,0 +1,17 @@
+from buildstream import Source, Consistency
+
+
+class FooSource(Source):
+
+ def preflight(self):
+ pass
+
+ def configure(self, node):
+ pass
+
+ def get_consistency(self):
+ return Consistency.INCONSISTENT
+
+
+def setup():
+ return FooSource
diff --git a/tests/plugins/pipeline/customsource/project.conf b/tests/plugins/pipeline/customsource/project.conf
new file mode 100644
index 000000000..0be4f201b
--- /dev/null
+++ b/tests/plugins/pipeline/customsource/project.conf
@@ -0,0 +1,5 @@
+name: pony
+element-path: elements
+plugins:
+ sources:
+ - pluginsources