mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[copybara] mostrobotpy to allwpilib (#8545)
Project import generated by Copybara. GitOrigin-RevId: f10284b37498bb6a088891ca41f160793ec7fd90
This commit is contained in:
20
simulation/halsim_gui/src/test/python/test_halsim_gui.py
Normal file
20
simulation/halsim_gui/src/test/python/test_halsim_gui.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import ctypes
|
||||
import pathlib
|
||||
|
||||
|
||||
def test_halsim_gui():
|
||||
# dependencies
|
||||
import wpinet
|
||||
import hal
|
||||
import wpimath
|
||||
import ntcore
|
||||
|
||||
import halsim_gui 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