Skip to content

Commit

Permalink
Add macos test from upstream (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youw authored Feb 15, 2024
1 parent e8c242e commit 78fdcad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ add_test(NAME stress_mt COMMAND stress_mt)

add_libusb_test(set_option "set_option.c")
add_libusb_test(init_context "init_context.c")

# the Darwin backend has special backdoor for this test,
# which is only available in static builds
if(APPLE AND NOT LIBUSB_BUILD_SHARED_LIBS)
add_libusb_test(macos "macos.c")
endif()

0 comments on commit 78fdcad

Please sign in to comment.