Use test framework for MT VOL tests #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test HDF5 Library | |
on: | |
push: | |
branches: | |
- '*' | |
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"] | |
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=debug | |
- 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 |