diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 259de9eb..e43ba4d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -295,6 +295,42 @@ jobs: with: path: ${{github.workspace}}/vol-rest + - name: Get HSDS + uses: actions/checkout@v3 + with: + repository: HDFGroup/hsds + path: ${{github.workspace}}/hsds + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install HSDS dependencies + working-directory: ${{github.workspace}}/hsds + shell: bash + run: | + python -m pip install --upgrade pip + python -m pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Install HSDS package + working-directory: ${{github.workspace}}/hsds + shell: bash + run: | + pip install -e . + + - name: Start HSDS + shell: bash + working-directory: ${{github.workspace}}/hsds + run: | + mkdir data + mkdir data/hsdstest + cp admin/config/groups.default admin/config/groups.txt + cp admin/config/passwd.default admin/config/passwd.txt + hsds --root_dir data --host localhost --port 5101 --password_file admin/config/passwd.txt --logfile hs.log --loglevel DEBUG --config_dir=admin/config --count=4 & + sleep 10 + - name: Get curl from source uses: actions/checkout@v4 with: @@ -357,16 +393,32 @@ jobs: -DCURL_ROOT=${{github.workspace}}/curl/install/ -DCMAKE_C_FLAGS="/DCURL_STATICLIB" ` -DCURL_USE_STATIC_LIBRARIES=ON ` -DYAJL_ROOT=${{github.workspace}}/yajl/install/ ` + -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON ` -DCMAKE_BUILD_TYPE=Release .. cmake --build . -j --config Release cmake --install . --config Release - - name: Set HDF5 Plugin path + - name: Set HDF5 library path run: | - echo "HDF5_PLUGIN_PATH=${{github.workspace}}/vol-rest/build/bin/" >> $GITHUB_ENV - echo "HDF5_VOL_CONNECTOR=REST" >> $GITHUB_ENV + echo "TEMP_VAR=$env:PATH;${{github.workspace}}\vol-rest\install\bin;${{github.workspace}}\hdf5install\bin;${{github.workspace}}\yajl\install\bin" >> $env:GITHUB_ENV + + - name: Check for existence of DLLs + run: | + dir ${{github.workspace}}\vol-rest\install\bin + dir ${{github.workspace}}\hdf5install\bin + dir ${{github.workspace}}\curl\install\bin + dir ${{github.workspace}}\yajl\install\bin - name: Test REST VOL - working-directory: ${{github.workspace}}/vol-rest/install/bin + working-directory: ${{github.workspace}}\vol-rest\build + env: + HDF5_PLUGIN_PATH: ${{github.workspace}}/vol-rest/build/bin/ + # Manually append lib to PATH here, since env can change between steps on the runner run: | - ${{github.workspace}}/vol-rest/install/bin/test_rest_vol-shared.exe + echo $env:TEMP_VAR + echo $env:PATH + $env:PATH=$env:TEMP_VAR + echo $env:PATH + ctest . -C Release -VV --output-on-failure + + \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 92bba230..803d4c36 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -81,11 +81,15 @@ endif () if (BUILD_SHARED_LIBS) foreach (test ${HDF5_VOL_REST_TESTS}) if (${test} STREQUAL "big" AND CYGWIN) + # TODO + message(AUTHOR_WARNING "Cygwin in use for tests") add_test ( NAME RVTEST-shared-${test} COMMAND ${CMAKE_COMMAND} -E echo "SKIP ${test}-shared" ) else (${test} STREQUAL "big" AND CYGWIN) + # TODO + message(AUTHOR_WARNING "Cygwin not in use for tests") add_test (NAME RVTEST-shared-${test} COMMAND $) endif (${test} STREQUAL "big" AND CYGWIN) set_tests_properties (RVTEST-shared-${test} PROPERTIES