summaryrefslogtreecommitdiff
path: root/tests/project/data/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'tests/project/data/plugins')
-rw-r--r--tests/project/data/plugins/custom.bst9
-rw-r--r--tests/project/data/plugins/elements/__init__.py0
-rw-r--r--tests/project/data/plugins/elements/custom.py19
-rw-r--r--tests/project/data/plugins/project.conf13
-rw-r--r--tests/project/data/plugins/sources/__init__.py0
-rw-r--r--tests/project/data/plugins/sources/custom.py31
6 files changed, 0 insertions, 72 deletions
diff --git a/tests/project/data/plugins/custom.bst b/tests/project/data/plugins/custom.bst
deleted file mode 100644
index 6a378347a..000000000
--- a/tests/project/data/plugins/custom.bst
+++ /dev/null
@@ -1,9 +0,0 @@
-kind: custom
-description: Some kinda custom element
-
-sources:
-- kind: custom
- configuration: pony
-
-config:
- configuration: pony
diff --git a/tests/project/data/plugins/elements/__init__.py b/tests/project/data/plugins/elements/__init__.py
deleted file mode 100644
index e69de29bb..000000000
--- a/tests/project/data/plugins/elements/__init__.py
+++ /dev/null
diff --git a/tests/project/data/plugins/elements/custom.py b/tests/project/data/plugins/elements/custom.py
deleted file mode 100644
index c18c234a9..000000000
--- a/tests/project/data/plugins/elements/custom.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from buildstream import Element
-
-
-class CustomElement(Element):
-
- def configure(self, node):
- print("Element Data: {}".format(node))
- self.node_validate(node, ['configuration'])
- self.configuration = self.node_subst_member(node, "configuration", '')
-
- def preflight(self):
- pass
-
- def get_unique_key(self):
- return self.configuration
-
-
-def setup():
- return CustomElement
diff --git a/tests/project/data/plugins/project.conf b/tests/project/data/plugins/project.conf
deleted file mode 100644
index 7d4cbd1ee..000000000
--- a/tests/project/data/plugins/project.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-# Basic project configuration that provides some plugins
-#
-name: pony
-
-plugins:
-- origin: local
- path: elements
- elements:
- custom: 0
-- origin: local
- path: sources
- sources:
- custom: 0
diff --git a/tests/project/data/plugins/sources/__init__.py b/tests/project/data/plugins/sources/__init__.py
deleted file mode 100644
index e69de29bb..000000000
--- a/tests/project/data/plugins/sources/__init__.py
+++ /dev/null
diff --git a/tests/project/data/plugins/sources/custom.py b/tests/project/data/plugins/sources/custom.py
deleted file mode 100644
index 54c372bac..000000000
--- a/tests/project/data/plugins/sources/custom.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from buildstream import Source, Consistency
-
-
-class CustomSource(Source):
-
- def configure(self, node):
- print("Source Data: {}".format(node))
- self.node_validate(node, ['configuration'] + Source.COMMON_CONFIG_KEYS)
- self.configuration = self.node_get_member(node, str, "configuration")
-
- def preflight(self):
- pass
-
- def get_unique_key(self):
- return self.configuration
-
- def get_consistency(self):
- return Consistency.INCONSISTENT
-
- def refresh(self, node):
- return False
-
- def fetch(self):
- pass
-
- def stage(self, directory):
- pass
-
-
-def setup():
- return CustomSource