Skip to content

Commit

Permalink
Use correct test binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grunder committed Jun 26, 2024
1 parent b18314a commit b99b922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ jobs:
choco install -y ninja memurai-developer
- uses: ilammy/msvc-dev-cmd@v1
- name: Build hiredis
- name: Build libvalkey
run: |
mkdir build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_EXAMPLES=ON
ninja -v
- name: Run tests
run: |
./build/test.exe
./build/client_test.exe
- name: Install Cygwin Action
uses: cygwin/cygwin-install-action@v2
Expand All @@ -191,6 +191,6 @@ jobs:

- name: Build in cygwin
env:
HIREDIS_PATH: ${{ github.workspace }}
LIBVALKEY_PATH: ${{ github.workspace }}
run: |
make clean && make
4 changes: 1 addition & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ if(SSL_LIBRARY)
endif()
if(LIBEVENT_LIBRARY)
target_compile_definitions(client_test PUBLIC VALKEY_TEST_ASYNC=1)
endif()
target_link_libraries(client_test valkey ${SSL_LIBRARY})
if(LIBEVENT_LIBRARY)
target_link_libraries(client_test ${LIBEVENT_LIBRARY})
endif()
target_link_libraries(client_test valkey ${SSL_LIBRARY})
add_test(NAME client_test COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test.sh")
if(TEST_WITH_REDIS_VERSION)
set_property(TEST client_test PROPERTY ENVIRONMENT "VALKEY_SERVER=redis-server")
Expand Down

0 comments on commit b99b922

Please sign in to comment.