Skip to content

Commit

Permalink
test two shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
bongbui321 committed Oct 10, 2024
1 parent 21485c6 commit 1444914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/libpanda/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if GetOption('ubsan'):

panda = env.SharedObject("panda.os", "panda.c")
libpanda = env.SharedLibrary("libpanda.so", [panda])
libpanda2 = env.SharedLibrary("libpanda2.so", [panda])

if GetOption('coverage'):
env.Append(
Expand Down
1 change: 1 addition & 0 deletions tests/libpanda/libpanda_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

libpanda_dir = os.path.dirname(os.path.abspath(__file__))
libpanda_fn = os.path.join(libpanda_dir, "libpanda.so")
libpanda_fn2 = os.path.join(libpanda_dir, "libpanda2.so")

def gen_new_ffi():
ffi = FFI()
Expand Down
2 changes: 1 addition & 1 deletion tests/usbprotocol/test_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_can_send_usb(self, subtests):

def test_can_receive_usb(self):
ffi = libpanda_py.gen_new_ffi()
lpp = ffi.dlopen(libpanda_py.libpanda_fn)
lpp = ffi.dlopen(libpanda_py.libpanda_fn2)
lpp.comms_can_reset()

msgs = random_can_messages(50000)
Expand Down

0 comments on commit 1444914

Please sign in to comment.