Skip to content

Commit

Permalink
Replace --testpath with short option -t
Browse files Browse the repository at this point in the history
Made replacements everywhere I could find `--testpath`
  • Loading branch information
braeeast2001 committed Aug 2, 2023
1 parent be8546c commit 3d87b15
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 47 deletions.
16 changes: 8 additions & 8 deletions docs/buildspecs/compiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Shown below is an example build for this test.

The generated test for test name **hello_f** is the following:

.. dropdown:: ``buildtest inspect query --testpath hello_f``
.. dropdown:: ``buildtest inspect query -t hello_f``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/gnu_hello_fortran.txt

Expand Down Expand Up @@ -126,7 +126,7 @@ Let's build this test, we will see there is one builder instance for each compil
If we inspect the following test, we see each test has its own compiler flags. The default cflag
is ``-O1`` while **gcc_6.5.0** will use ``-O2`` and **gcc_8.3.0** will use ``-O3``.

.. dropdown:: ``buildtest inspect query --testpath hello_c/``
.. dropdown:: ``buildtest inspect query -t hello_c/``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/gnu_hello_c.txt

Expand Down Expand Up @@ -172,7 +172,7 @@ Now let's build this test.
We can see the generated test using ``buildtest inspect query`` given the name of test. Take a close
look at the ``export OMP_NUM_THREADS`` in the generated test.

.. dropdown:: ``buildtest inspect query --testpath openmp_hello_c_example``
.. dropdown:: ``buildtest inspect query -t openmp_hello_c_example``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/openmp_hello.txt

Expand All @@ -188,10 +188,10 @@ We can build this test by running::

buildtest build -b $BUILDTEST_ROOT/examples/compilers/envvar_override.yml

Next, let's see the generated test by running ``buildtest inspect query --testpath override_environmentvars``. Take a note that we have
Next, let's see the generated test by running ``buildtest inspect query -t override_environmentvars``. Take a note that we have
``export OMP_NUM_THREADS=4`` for `gcc_8.3.0` test and ``export OMP_NUM_THREADS=2`` for system gcc.

.. dropdown:: ``buildtest inspect query --testpath override_environmentvars/``
.. dropdown:: ``buildtest inspect query -t override_environmentvars/``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/envvar_override.txt

Expand Down Expand Up @@ -253,7 +253,7 @@ You can build this test by running the following::
Once test is complete let's inspect the generated test. We see that buildtest will insert the line specified
by ``run`` property after compilation and run the executable.

.. dropdown:: ``buildtest inspect query -b --testpath custom_run_by_compilers/``
.. dropdown:: ``buildtest inspect query -b -t custom_run_by_compilers/``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/custom_run.txt

Expand Down Expand Up @@ -297,7 +297,7 @@ You can run this example by running the following command::
If we inspect the content of test we see that buildtest will insert the shell commands
for ``pre_build``, ``post_build``, ``pre_run`` and ``post_run`` in its corresponding section.

.. dropdown:: ``buildtest inspect query --testpath pre_post_build_run``
.. dropdown:: ``buildtest inspect query -t pre_post_build_run``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/pre_post_build_run.txt

Expand Down Expand Up @@ -335,7 +335,7 @@ If we build this test we see one test is created per compiler instance defined i
Next, let's see the generated test using ``buildtest inspect query``, we notice buildtest will set variables ``BUILDTEST_*`` for
each test to map to each compiler.

.. dropdown:: ``buildtest inspect query --testpath stream_openmp_c/``
.. dropdown:: ``buildtest inspect query -t stream_openmp_c/``

.. program-output:: cat buildtest_tutorial_examples/compilers/inspect/stream_example.txt

Expand Down
22 changes: 11 additions & 11 deletions docs/buildspecs/spack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Let's build this test by running the following
Let's inspect the generated script and output file via ``buildtest inspect query`` command. We notice that buildtest
will source spack setup script and install `zlib` which is automatically installed from the buildcache.

.. dropdown:: ``buildtest inspect query -o --testpath install_specs_example``
.. dropdown:: ``buildtest inspect query -o -t install_specs_example``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/install_specs.txt

Expand Down Expand Up @@ -93,7 +93,7 @@ concretize the environment and install the specs.

.. program-output:: cat buildtest_tutorial_examples/spack/build/env_install.txt

.. dropdown:: ``buildtest inspect query --testpath install_in_spack_env``
.. dropdown:: ``buildtest inspect query -t install_in_spack_env``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/env_install.txt

Expand All @@ -118,7 +118,7 @@ this using the ``option`` field. Shown below is the build and generated script a

.. program-output:: cat buildtest_tutorial_examples/spack/build/env_create_directory.txt

.. dropdown:: ``buildtest inspect query -o --testpath spack_env_directory``
.. dropdown:: ``buildtest inspect query -o -t spack_env_directory``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/env_create_directory.txt

Expand Down Expand Up @@ -147,7 +147,7 @@ will create an environment **manifest_example** using the manifest file that we

.. program-output:: cat buildtest_tutorial_examples/spack/build/env_create_manifest.txt

.. dropdown:: ``buildtest inspect query -o --testpath spack_env_create_from_manifest``
.. dropdown:: ``buildtest inspect query -o -t spack_env_create_from_manifest``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/env_create_manifest.txt

Expand Down Expand Up @@ -177,7 +177,7 @@ Let's build this by running the following

If we build and look at the generated te, we notice that spack will remove environments names: **remove_environment**, **dummy**.

.. dropdown:: ``buildtest inspect query --testpath remove_environment_automatically remove_environment_explicit``
.. dropdown:: ``buildtest inspect query -t remove_environment_automatically remove_environment_explicit``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/remove_environment_example.txt

Expand Down Expand Up @@ -205,7 +205,7 @@ If we build this test and inspect the generated script we should get the followi

.. program-output:: cat buildtest_tutorial_examples/spack/build/pre_post_cmds.txt

.. dropdown:: ``buildtest inspect query -o --testpath run_pre_post_commands``
.. dropdown:: ``buildtest inspect query -o -t run_pre_post_commands``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/pre_post_cmds.txt

Expand Down Expand Up @@ -233,7 +233,7 @@ If we look at the generated script for both tests, we see that mirror is added f
one can have mirrors defined in their ``spack.yaml`` or one of the `configuration scopes <https://spack.readthedocs.io/en/latest/configuration.html#configuration-scopes>`_
defined by spack.

.. dropdown:: ``buildtest inspect query -o --testpath add_mirror add_mirror_in_spack_env``
.. dropdown:: ``buildtest inspect query -o -t add_mirror add_mirror_in_spack_env``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/mirror_example.txt

Expand Down Expand Up @@ -270,7 +270,7 @@ The **spack test run --alias** option is used to query results by suitename whic

Take note of the generated test and the suite-name that is generated by buildtest.

.. dropdown:: ``buildtest inspect query -o --testpath spack_test_m4``
.. dropdown:: ``buildtest inspect query -o -t spack_test_m4``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/spack_test.txt

Expand Down Expand Up @@ -302,7 +302,7 @@ in spack environment followed by removing all testsuites using ``spack test remo
query results in spec format (``spack test results --l --libxml2``) where spack will try to match a result file that matches the
corresponding spec.

.. dropdown:: ``buildtest inspect query -o --testpath spack_test_results_specs_format``
.. dropdown:: ``buildtest inspect query -o -t spack_test_results_specs_format``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/spack_test_specs.txt

Expand All @@ -329,7 +329,7 @@ files based on name of test. If we build this test, and inspect the generated te

.. program-output:: cat buildtest_tutorial_examples/spack/build/spack_sbatch.txt

.. dropdown:: ``buildtest inspect query --testpath spack_sbatch_example``
.. dropdown:: ``buildtest inspect query -t spack_sbatch_example``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/spack_sbatch.txt

Expand Down Expand Up @@ -366,6 +366,6 @@ Let's check the generated output, take note in the output the full path to where
clone spack in ``pre_cmds`` in second test in order for buildtest to find the spack binary since you need to specify this the ``root`` property in-order
for buildtest to install spack in the environment.

.. dropdown:: ``buildtest inspect query --testpath clone_spack_automatically clone_spack_and_specify_root``
.. dropdown:: ``buildtest inspect query -t clone_spack_automatically clone_spack_and_specify_root``

.. program-output:: cat buildtest_tutorial_examples/spack/inspect/clone_spack.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -b --testpath custom_run_by_compilers/
$ buildtest inspect query -b -t custom_run_by_compilers/
────────────────────────────────────────────────────────────────────────────────── custom_run_by_compilers/569258a7-97a4-4beb-b4bc-1859d643bf14 ───────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Customize binary launch based on compiler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath override_environmentvars/
$ buildtest inspect query -t override_environmentvars/
────────────────────────────────────────────────────────────────────────────────── override_environmentvars/8a3cd42a-89cf-4dd4-ac71-769482ead72c ──────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: override default environment variables
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath hello_c/
$ buildtest inspect query -t hello_c/
────────────────────────────────────────────────────────────────────────────────────────── hello_c/a40def68-aca7-4fde-8ac7-1559bc1f81e6 ───────────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Hello World C Compilation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath openmp_hello_c_example
$ buildtest inspect query -t openmp_hello_c_example
─────────────────────────────────────────────────────────────────────────────────── openmp_hello_c_example/acf167ec-751d-45c4-999d-93c7643c117b ───────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: OpenMP Hello World C example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath pre_post_build_run
$ buildtest inspect query -t pre_post_build_run
───────────────────────────────────────────────────────────────────────────────────── pre_post_build_run/52b3e3cd-9764-400b-922d-a4b087cca93b ─────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: example using pre_build, post_build, pre_run, post_run example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath stream_openmp_c/
$ buildtest inspect query -t stream_openmp_c/
────────────────────────────────────────────────────────────────────────────────────── stream_openmp_c/91a2d4f4-63a0-4a5f-8b09-e092b904972c ───────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: STREAM Microbenchmark C Test with OpenMP
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -o -e --testpath mpich_e4s_testsuite
$ buildtest inspect query -o -e -t mpich_e4s_testsuite
──────────────────────────────────────────────────────────────────────────────────── mpich_e4s_testsuite/0c47b479-3a67-45c4-aef5-4dfdfe61232d ─────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Run E4S Testsuite mpich test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -o --testpath spack_env_directory
$ buildtest inspect query -o -t spack_env_directory
──────────────────────────────────────────────────────────────────────────────────── spack_env_directory/490db0c3-43d9-4660-8b5b-1523d2fff912 ─────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: create spack environment in directory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -o --testpath spack_env_create_from_manifest
$ buildtest inspect query -o -t spack_env_create_from_manifest
─────────────────────────────────────────────────────────────────────────────── spack_env_create_from_manifest/7e04b3e5-3626-490c-b107-a84b1fbae3e7 ───────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Create spack environment from spack.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath install_in_spack_env
$ buildtest inspect query -t install_in_spack_env
──────────────────────────────────────────────────────────────────────────────────── install_in_spack_env/0f16f091-372b-44e4-8726-b1c1e39a68c3 ────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Install m4 and zlib in a spack environment named m4_zlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -o --testpath install_specs_example clone_spack_and_install_zlib
$ buildtest inspect query -o -t install_specs_example clone_spack_and_install_zlib
─────────────────────────────────────────────────────────────────────────────────── install_specs_example/40031985-7bf5-41c1-a58e-dbf8edfbda49 ────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Install zlib from an existing spack instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -o --testpath add_mirror add_mirror_in_spack_env
$ buildtest inspect query -o -t add_mirror add_mirror_in_spack_env
───────────────────────────────────────────────────────────────────────────────────────── add_mirror/5d67c243-2eaa-49d5-8ec9-c2c65c023bcc ─────────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Declare spack mirror
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query -o --testpath run_pre_post_commands
$ buildtest inspect query -o -t run_pre_post_commands
─────────────────────────────────────────────────────────────────────────────────── run_pre_post_commands/63b3f722-8c27-4fb3-bb70-64030167d3c0 ────────────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: Install zlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ buildtest inspect query --testpath remove_environment_automatically remove_environment_explicit
$ buildtest inspect query -t remove_environment_automatically remove_environment_explicit
────────────────────────────────────────────────────────────────────────────── remove_environment_automatically/7258748c-312f-4092-9773-0e48a17aed4a ──────────────────────────────────────────────────────────────────────────────
Executor: generic.local.bash
Description: remove spack environment automatically before creating a new environment
Expand Down
Loading

0 comments on commit 3d87b15

Please sign in to comment.