summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/chain-d/package.py
blob: f2e04089ee5300b99ae5ad1a30ddf8f254ce50eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2013-2022 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.package import *


class ChainD(Package):
    """
    Part of a collection of mock packages used for testing depth-first vs
    breadth-first traversal. The DAG they form:
    a --> b --> c --> d # a chain
    a --> c             # "skip" connection
    a --> d             # "skip" connection
    Spack's edge order is based on the child package name.
    In depth-first traversal we get a tree that looks like a chain:
    a
      b
        c
          d
    In breadth-first we get the tree:
    a
     b
     c
     d
    """

    homepage = "https://example.com"
    has_code = False
    version("1.0")