Skip to content

WIP: Remove API test specific test result info #68

WIP: Remove API test specific test result info

WIP: Remove API test specific test result info #68

Workflow file for this run

name: Build and Test HDF5 Library
on:
push:
branches:
- '*'
env:
HDF5TestExpress: 1
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
api_tests: ["--enable-api-tests", "--disable-api-tests"]
multi_thread: ["--enable-multithread --disable-hl", "--disable-multithread --enable-threadsafe --disable-hl", "--disable-multithread --disable-threadsafe"]
build_mode: ["production", "debug"]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up autotools
run: |
sudo apt install automake autoconf libtool libtool-bin
sudo apt install libaec0 libaec-dev valgrind
- name: Configure HDF5
working-directory: ${{github.workspace}}
run: |
sh ./autogen.sh
./configure --enable-shared --enable-tests ${{ matrix.multi_thread }} ${{ matrix.api_tests }} --enable-build-mode=${{ matrix.build_mode }}
- name: Build HDF5
working-directory: ${{github.workspace}}
run: |
make -j
- name: API Tests
if: matrix.api_tests == '--enable-api-tests'
working-directory: ${{github.workspace}}
run: |
valgrind ./test/API/api_tests
- name: API Tests with multithread test VOL
if: matrix.api_tests == '--enable-api-tests' && matrix.multi_thread == '--enable-multithread --disable-hl'
working-directory: ${{github.workspace}}
env:
HDF5_PLUGIN_PATH: ${{github.workspace}}/test/.libs
HDF5_VOL_CONNECTOR: "mt_test_vol_connector"
run: |
valgrind ./test/API/api_tests
- name: API Tests with passthrough multithread test VOL
if: matrix.api_tests == '--enable-api-tests' && matrix.multi_thread == '--enable-multithread --disable-hl'
working-directory: ${{github.workspace}}
env:
HDF5_PLUGIN_PATH: ${{github.workspace}}/test/.libs
HDF5_VOL_CONNECTOR: "mt_test_passthru_vol_connector under_vol=0\\;under_info={}"
run: |
valgrind ./test/API/api_tests
- name: Test HDF5
working-directory: ${{github.workspace}}
run: |
make check