diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/git-test-commit/package.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/git-test-commit/package.py b/var/spack/repos/builtin.mock/packages/git-test-commit/package.py new file mode 100644 index 0000000000..cae030d4c1 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/git-test-commit/package.py @@ -0,0 +1,24 @@ +# 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 spack import * + + +class GitTestCommit(Package): + """Mock package that tests installing specific commit""" + homepage = "http://www.git-fetch-example.com" + # git='to-be-filled-in-by-test' + + version('1.0', tag='v1.0') + version('1.1', tag='v1.1') + version('1.2', tag='1.2') # not a typo + version('2.0', tag='v2.0') + + def install(self, spec, prefix): + assert spec.satisfies('@:0') + mkdir(prefix.bin) + + # This will only exist for some second commit + install('file.txt', prefix.bin) |