tests: explain and test dependency flattening routines (#11993)

- Add comments to explain that `install_dependency_symlinks` and `flatten_dependencies` are actually used.
- Add a test that exercises the routines.
This commit is contained in:
Tamara Dahlgren
2019-08-06 17:11:23 -07:00
committed by Todd Gamblin
parent 09d4fcc6ad
commit 951d42596b
3 changed files with 63 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# Copyright 2013-2019 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 FlattenDeps(Package):
"""Example install that flattens dependencies."""
homepage = "http://www.example.com"
url = "http://www.example.com/a-1.0.tar.gz"
version('1.0', '0123456789abcdef0123456789abcdef')
depends_on('dependency-install')
install = install_dependency_symlinks