Skip to content

Commit

Permalink
Start HSDS in windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Apr 19, 2024
1 parent b2299d6 commit dbf9547
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 5 deletions.
62 changes: 57 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_FILE:${test}-shared>)
endif (${test} STREQUAL "big" AND CYGWIN)
set_tests_properties (RVTEST-shared-${test} PROPERTIES
Expand Down

0 comments on commit dbf9547

Please sign in to comment.