[Chapel Merge] dyno: use chplenv to inform `testInteractive`

Branch: refs/heads/main
Revision: eafb750
Author: DanilaFe
Link: dyno: use chplenv to inform `testInteractive` by DanilaFe · Pull Request #20464 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20464 from DanilaFe/dyno-chplenv-v2

dyno: use chplenv to inform testInteractive

This PR extracts some of the command-running functionality
into Dyno library code, and uses that functionality to implement
getChplEnv. By reading environment variables, code that
uses Dyno can properly configure search paths. In this
PR, testInteractive is modified to properly find generated
system modules on systems other than x86-gnu. I expect
that a similar approach will be used when testing ranges.

Reviewed by @mppf - thanks!

TESTING

  • Paratest and GitHub CI.

    Modified Files:
    A compiler/dyno/include/chpl/util/chplenv.h
    A compiler/dyno/lib/util/chplenv.cpp
    M compiler/dyno/include/chpl/framework/Context.h
    M compiler/dyno/include/chpl/util/subprocess.h
    M compiler/dyno/lib/framework/Context.cpp
    M compiler/dyno/lib/util/CMakeLists.txt
    M compiler/dyno/lib/util/Makefile.include
    M compiler/dyno/lib/util/subprocess.cpp
    M compiler/dyno/test/resolution/testInteractive.cpp
    M compiler/include/files.h
    M compiler/main/driver.cpp
    M compiler/util/files.cpp
    M doc/rst/meta/compiler-internals-doxygen/base.rst

    Compare: Comparing 8c7496df6cb6...eafb7505fd22 · chapel-lang/chapel · GitHub