Skip to content

CI, TST: simplified automated build script + CI workflows #62

CI, TST: simplified automated build script + CI workflows

CI, TST: simplified automated build script + CI workflows #62

name: End-to-end Testing (regression)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
end_to_end_regression:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y gfortran bc
- name: Install MPICH
run: |
mkdir mpich_install
export MPICH_INSTALL_PATH=$PWD/mpich_install
wget https://www.mpich.org/static/downloads/3.2.1/mpich-3.2.1.tar.gz
tar -xzvf mpich-3.2.1.tar.gz
cd mpich-3.2.1
mkdir build
cd build
FFLAGS="-w -fallow-argument-mismatch" ../configure --disable-dependency-tracking --prefix=$MPICH_INSTALL_PATH
make
make install
- name: Install Darshan
run: |
git submodule update --init
export PATH=$PWD/mpich_install/bin:$PATH
# use automated script to build Darshan
export DARSHAN_INSTALL_PREFIX=$PWD/darshan_install
darshan-test/automated/build-darshan.sh
# try to format log directory to ensure this works
./darshan_install/bin/darshan-mk-log-dirs.pl
- name: Run end-to-end regression tests (ld_preload)
run: |
export DARSHAN_INSTALL_PATH=$PWD/darshan_install
export PATH=$PWD/mpich_install/bin:$PATH
cd darshan-test/regression
./run-all.sh $DARSHAN_INSTALL_PATH /tmp/darshan-ld-preload workstation-ld-preload
- name: Run end-to-end regression tests (prof conf dynamic)
run: |
export DARSHAN_INSTALL_PATH=$PWD/darshan_install
export PATH=$PWD/mpich_install/bin:$PATH
cd darshan-test/regression
./run-all.sh $DARSHAN_INSTALL_PATH /tmp/darshan-prof-conf-dynamic workstation-profile-conf-dynamic
- name: Run end-to-end regression tests (prof conf static)
run: |
export DARSHAN_INSTALL_PATH=$PWD/darshan_install
export PATH=$PWD/mpich_install/bin:$PATH
cd darshan-test/regression
./run-all.sh $DARSHAN_INSTALL_PATH /tmp/darshan-prof-conf-static workstation-profile-conf-static