Skip to content

Latest commit

 

History

History
93 lines (76 loc) · 3.64 KB

File metadata and controls

93 lines (76 loc) · 3.64 KB

Installing MPD

  1. Clone the spack-mpd repository.
  2. Invoke spack config edit config and add the following to your configuration:
    config:
      extensions:
      - <path to your local spack-mpd clone>
  3. (Optional) You may find it beneficial to specify an alias in your .bashrc file to avoid typing spack mpd (e.g.):
    alias mpd="spack mpd"

Check your installation

At this point you, should be able to invoke spack help --all and see:

$ spack help --all
...
scripting:
  mpd                   develop multiple packages using Spack for external software
...

and furthermore, if you type spack mpd --help you should see something like:

$ spack mpd -h
usage: spack mpd [-hV] SUBCOMMAND ...

develop multiple packages using Spack for external software

positional arguments:
  SUBCOMMAND
    build (b)           build repositories
    clear               clear selected MPD project
    git-clone (g, clone)
                        clone git repositories
    deploy (d)          deploy developed packages
    init                initialize MPD on this system
    install (i)         install built repositories
    list (ls)           list MPD projects
    new-project (n, newDev)
                        create MPD development area
    refresh             refresh project
    rm-project (rm)     remove MPD project
    select              select MPD project
    status              current MPD status
    test (t)            build and run tests
    zap (z)             delete everything in your build and/or install areas

options:
  -V, --version         print MPD version (0.1.0) and exit
  -h, --help            show this help message and exit

Now that MPD has been installed, you can initialize your system to use MPD.

Running MPD's unit tests

MPD has several unit tests that should run successfully for any system on which it is installed. If you wish to run the unit tests, invoke:

$ spack unit-test --extension=mpd
================================================== test session starts ===================================================
platform linux -- Python 3.9.18, pytest-7.3.2, pluggy-1.0.0
rootdir: /home/knoepfel/spack-mpd
configfile: pytest.ini
testpaths: tests
collected 4 items

tests/test_mpd_clone.py .                                                                                          [ 25%]
tests/test_mpd_init.py .                                                                                           [ 50%]
tests/test_mpd_new_project.py ..                                                                                   [100%]

================================================== slowest 30 durations ==================================================
1.49s call     tests/test_mpd_new_project.py::test_new_project_paths
0.81s call     tests/test_mpd_clone.py::test_new_project_clone
0.42s call     tests/test_mpd_new_project.py::test_mpd_refresh
0.04s call     tests/test_mpd_init.py::test_mpd_init
0.02s setup    tests/test_mpd_clone.py::test_new_project_clone
0.02s setup    tests/test_mpd_new_project.py::test_new_project_paths
0.01s teardown tests/test_mpd_init.py::test_mpd_init
0.01s teardown tests/test_mpd_new_project.py::test_mpd_refresh
0.01s teardown tests/test_mpd_clone.py::test_new_project_clone

(3 durations < 0.005s hidden.  Use -vv to show these durations.)
=================================================== 4 passed in 2.85s ====================================================

If you encounter any failures, please report an issue.