mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[copybara] mostrobotpy to allwpilib (#8545)
Project import generated by Copybara. GitOrigin-RevId: f10284b37498bb6a088891ca41f160793ec7fd90
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import ctypes
|
||||
import pathlib
|
||||
|
||||
|
||||
def test_halsim_ds_socket():
|
||||
# dependencies
|
||||
import native.wpihal._init_robotpy_native_wpihal
|
||||
import native.wpinet._init_robotpy_native_wpinet
|
||||
|
||||
import halsim_ds_socket as base
|
||||
|
||||
loaded = 0
|
||||
for fname in (pathlib.Path(base.__file__).parent / "lib").iterdir():
|
||||
if fname.is_file() and fname.suffix in (".dll", ".dylib", ".so"):
|
||||
ctypes.CDLL(str(fname))
|
||||
loaded += 1
|
||||
|
||||
assert loaded
|
||||
Reference in New Issue
Block a user