diff --git a/.github/workflows/everything.yml b/.github/workflows/everything.yml index 706b3a4645..ae00aaddbf 100644 --- a/.github/workflows/everything.yml +++ b/.github/workflows/everything.yml @@ -7,7 +7,7 @@ # Note the use of multiple checkout actions in most jobs. This has been # implemented to allow the use of CI scripts at a different ref or sha than # the source code they're evaluating. For push events (when a pull_request is -# merged) ther is no difference. However, for pull_request events this allows +# merged) there is no difference. However, for pull_request events this allows # us test code at the head of a pull_request using the CI scripts from the # prospectively merged pull_request, which will include any CI updates that # may have made it to the target branch after the pull_request was started. @@ -451,8 +451,9 @@ jobs: strategy: fail-fast: false matrix: - code: [lammps, tau] + code: [examples, lammps, tau] include: + - code: examples - code: lammps repo: pnorbert/lammps ref: fix-deprecated-adios-init diff --git a/testing/contract/examples/build.sh b/testing/contract/examples/build.sh new file mode 100755 index 0000000000..03aa992829 --- /dev/null +++ b/testing/contract/examples/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 \ No newline at end of file diff --git a/testing/contract/examples/config.sh b/testing/contract/examples/config.sh new file mode 100755 index 0000000000..f605011237 --- /dev/null +++ b/testing/contract/examples/config.sh @@ -0,0 +1,11 @@ +#!/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} \ No newline at end of file diff --git a/testing/contract/examples/depends.sh b/testing/contract/examples/depends.sh new file mode 100755 index 0000000000..8c3cbfc39d --- /dev/null +++ b/testing/contract/examples/depends.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exit 0 diff --git a/testing/contract/examples/install.sh b/testing/contract/examples/install.sh new file mode 100755 index 0000000000..f319d25356 --- /dev/null +++ b/testing/contract/examples/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/examples/setup.sh b/testing/contract/examples/setup.sh new file mode 100755 index 0000000000..ef8eb01db2 --- /dev/null +++ b/testing/contract/examples/setup.sh @@ -0,0 +1,7 @@ +source_dir="/opt/adios2/source/examples" +build_dir=$(readlink -f "${PWD}")/build +install_dir=$(readlink -f "${PWD}")/install + +echo "source_dir = \"${source_dir}\"" +echo "build_dir = \"${build_dir}\"" +echo "install_dir = \"${install_dir}\"" diff --git a/testing/contract/examples/test.sh b/testing/contract/examples/test.sh new file mode 100755 index 0000000000..816c244883 --- /dev/null +++ b/testing/contract/examples/test.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -x +set -e + +source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh + +${install_dir}/bin/adios2_hello_helloWorld