summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/dev-build-test-install-phases/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/dev-build-test-install-phases/package.py b/var/spack/repos/builtin.mock/packages/dev-build-test-install-phases/package.py
new file mode 100644
index 0000000000..7957325d21
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/dev-build-test-install-phases/package.py
@@ -0,0 +1,30 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from time import sleep
+
+
+class DevBuildTestInstallPhases(Package):
+ homepage = "example.com"
+ url = "fake.com"
+
+ version('0.0.0', sha256='0123456789abcdefgh')
+
+ phases = ['one', 'two', 'three', 'install']
+
+ def one(self, spec, prefix):
+ sleep(1)
+ print("One locomoco")
+
+ def two(self, spec, prefix):
+ sleep(2)
+ print("Two locomoco")
+
+ def three(self, spec, prefix):
+ sleep(3)
+ print("Three locomoco")
+
+ def install(self, spec, prefix):
+ print("install")