File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ Subproject commit 01faccaa96ffa6501530de6f464832df73652cd9
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Local test script for Spack package
3+ # Mimics the CI workflow
4+
5+ set -e
6+
7+ echo " ==> Installing Spack..."
8+ if [ ! -d " spack-test" ]; then
9+ git clone --depth=1 https://github.com/spack/spack.git spack-test
10+ fi
11+
12+ cd spack-test
13+
14+ echo " ==> Setting up Spack environment..."
15+ . share/spack/setup-env.sh
16+
17+ echo " ==> Finding compilers..."
18+ spack compiler find
19+
20+ echo " ==> Installing MFC package into Spack..."
21+ mkdir -p var/spack/repos/builtin/packages/mfc
22+ cp ../package.py var/spack/repos/builtin/packages/mfc/
23+
24+ echo " "
25+ echo " ==> Running Spack style check..."
26+ spack style var/spack/repos/builtin/packages/mfc/package.py
27+
28+ echo " "
29+ echo " ==> Running Spack audit..."
30+ spack audit packages mfc
31+
32+ echo " "
33+ echo " ==> Showing package info..."
34+ spack info mfc
35+
36+ echo " "
37+ echo " ==> Testing default spec..."
38+ spack spec mfc
39+
40+ echo " "
41+ echo " ==> Testing minimal spec..."
42+ spack spec mfc~mpi~post_process
43+
44+ echo " "
45+ echo " ✅ All tests passed!"
46+
You can’t perform that action at this time.
0 commit comments