File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,15 +41,21 @@ example --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpi
4141stage_dir=" $( spack location -s tutorial-mpileaks) "
4242example packaging/build-output " cat $stage_dir /spack-build-out.txt"
4343
44- run_configure () (
45- prefix=$( spack python -c \
46- ' import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)' )
47- spack cd tutorial-mpileaks
48- spack build-env tutorial-mpileaks bash
49- example --expect-error $PROJECT /packaging/build-env-configure " ./configure --prefix=$prefix "
50- cd $PROJECT
51- )
52- run_configure
44+ prefix=$( spack python -c \
45+ ' import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)' )
46+ spack cd tutorial-mpileaks
47+ echo " configure --prefix=$prefix " | example packaging/build-env-configure " spack build-env tutorial-mpileaks -- bash"
48+ # Unfortunately cannot use a function since it appears to cause excessive delays
49+ # in output regeneration.
50+ # run_configure() (
51+ # prefix=$(spack python -c \
52+ # 'import spack.concretize; print(spack.concretize.concretize_one("tutorial-mpileaks").prefix)')
53+ # spack cd tutorial-mpileaks
54+ # spack build-env tutorial-mpileaks bash
55+ # example --expect-error $PROJECT/packaging/build-env-configure "./configure --prefix=$prefix"
56+ # cd $PROJECT
57+ # )
58+ # run_configure
5359
5460cp " $PROJECT /package-py-files/3.package.py" " $mpileaks_package_py "
5561example packaging/install-mpileaks-3 " spack install tutorial-mpileaks"
You can’t perform that action at this time.
0 commit comments