From a4cec82841228266d10734ecae2056f2980bf482 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 14 Nov 2022 09:34:14 +0100 Subject: Speed up traverse unit tests (#33840) --- .../repos/builtin.mock/packages/chain-a/package.py | 34 ---------------------- .../repos/builtin.mock/packages/chain-b/package.py | 32 -------------------- .../repos/builtin.mock/packages/chain-c/package.py | 32 -------------------- .../repos/builtin.mock/packages/chain-d/package.py | 31 -------------------- 4 files changed, 129 deletions(-) delete mode 100644 var/spack/repos/builtin.mock/packages/chain-a/package.py delete mode 100644 var/spack/repos/builtin.mock/packages/chain-b/package.py delete mode 100644 var/spack/repos/builtin.mock/packages/chain-c/package.py delete mode 100644 var/spack/repos/builtin.mock/packages/chain-d/package.py (limited to 'var') diff --git a/var/spack/repos/builtin.mock/packages/chain-a/package.py b/var/spack/repos/builtin.mock/packages/chain-a/package.py deleted file mode 100644 index 6dc7dc2c90..0000000000 --- a/var/spack/repos/builtin.mock/packages/chain-a/package.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ChainA(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") - depends_on("chain-b") - depends_on("chain-c") - depends_on("chain-d") diff --git a/var/spack/repos/builtin.mock/packages/chain-b/package.py b/var/spack/repos/builtin.mock/packages/chain-b/package.py deleted file mode 100644 index ede29c0e0f..0000000000 --- a/var/spack/repos/builtin.mock/packages/chain-b/package.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ChainB(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") - depends_on("chain-c") diff --git a/var/spack/repos/builtin.mock/packages/chain-c/package.py b/var/spack/repos/builtin.mock/packages/chain-c/package.py deleted file mode 100644 index e9d919f0ba..0000000000 --- a/var/spack/repos/builtin.mock/packages/chain-c/package.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ChainC(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") - depends_on("chain-d") diff --git a/var/spack/repos/builtin.mock/packages/chain-d/package.py b/var/spack/repos/builtin.mock/packages/chain-d/package.py deleted file mode 100644 index f2e04089ee..0000000000 --- a/var/spack/repos/builtin.mock/packages/chain-d/package.py +++ /dev/null @@ -1,31 +0,0 @@ -# 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") -- cgit v1.2.3-70-g09d2