diff --git a/.github/workflows/everything.yml b/.github/workflows/everything.yml index 4a9d52a574..a2eb4a60de 100644 --- a/.github/workflows/everything.yml +++ b/.github/workflows/everything.yml @@ -448,18 +448,19 @@ jobs: strategy: fail-fast: false matrix: - code: [lammps] + code: [lammps, tau] include: - code: lammps repo: pnorbert/lammps ref: fix-deprecated-adios-init - + - code: tau defaults: run: shell: bash -c "docker exec adios2-ci bash --login -e $(echo {0} | sed 's|/home/runner/work|/__w|g')" steps: - uses: actions/checkout@v4 + if: ${{ matrix.repo != '' }} with: repository: ${{ matrix.repo }} ref: ${{ matrix.ref }} diff --git a/testing/contract/tau/build.sh b/testing/contract/tau/build.sh new file mode 100755 index 0000000000..0290ec8f3d --- /dev/null +++ b/testing/contract/tau/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -x +set -e + +source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh + +cmake --build ${build_dir} -j8 diff --git a/testing/contract/tau/config.sh b/testing/contract/tau/config.sh new file mode 100755 index 0000000000..a89b2deece --- /dev/null +++ b/testing/contract/tau/config.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -x +set -e + +source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh + +mkdir -p ${build_dir} +cd ${build_dir} + +cmake \ + -DCMAKE_INSTALL_PREFIX=${install_dir} \ + ${source_dir} diff --git a/testing/contract/tau/depends.sh b/testing/contract/tau/depends.sh new file mode 100755 index 0000000000..cc790fd48b --- /dev/null +++ b/testing/contract/tau/depends.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -x +set -e + +sudo /opt/spack/bin/spack install -v tau ~fortran ~papi ~pdt ~otf2 diff --git a/testing/contract/tau/install.sh b/testing/contract/tau/install.sh new file mode 100755 index 0000000000..f319d25356 --- /dev/null +++ b/testing/contract/tau/install.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -x +set -e + +source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh + +cmake --install ${build_dir} diff --git a/testing/contract/tau/setup.sh b/testing/contract/tau/setup.sh new file mode 100755 index 0000000000..d79a4d9ee9 --- /dev/null +++ b/testing/contract/tau/setup.sh @@ -0,0 +1,11 @@ +source_dir="/opt/adios2/source/examples/basics/variablesShapes" +build_dir=$(readlink -f ${PWD})/build +install_dir=$(readlink -f ${PWD})/install +test_dir=$(readlink -f ${PWD})/test + +echo "source_dir = \"${source_dir}\"" +echo "build_dir = \"${build_dir}\"" +echo "install_dir = \"${install_dir}\"" +echo "test_dir = \"${test_dir}\"" + +module load tau diff --git a/testing/contract/tau/test.sh b/testing/contract/tau/test.sh new file mode 100755 index 0000000000..a696145de3 --- /dev/null +++ b/testing/contract/tau/test.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -x +set -e + +source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh + +mkdir -p ${test_dir} +cd ${test_dir} + +TAU=$(spack location -i tau)/bin/tau_exec + +mpiexec -np 2 ${TAU} ${install_dir}/bin/adios2_basics_variablesShapes + +[ ! -f profile.0.0.0 ] || [ ! -s profile.0.0.0 ] && { echo "Error: file profile.0.0.0 not found or empty"; exit 1; } +[ ! -f profile.1.0.0 ] || [ ! -s profile.1.0.0 ] && { echo "Error: file profile.1.0.0 not found or empty"; exit 1; } + +cat profile.0.0.0 +cat profile.1.0.0