mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
common/util.cc: add unit test, fix bug in util::read_file (#21251)
* add test case for util * fix bug in read_file * gitignore test_util * better test * referer * more * more test * REQUIRE size * apply reviews * only test binary * simplify the test * read non-permission * debug print * remove /etc/shadow * test read directory * Update selfdrive/common/tests/test_util.cc Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Co-authored-by: Willem Melching <willem.melching@gmail.com> old-commit-hash: a873a23e0dbfe43027911acdd270610048eed74a
This commit is contained in:
@@ -35,3 +35,6 @@ else:
|
||||
|
||||
_gpucommon = fxn('gpucommon', files, LIBS=_gpu_libs)
|
||||
Export('_common', '_gpucommon', '_gpu_libs')
|
||||
|
||||
if GetOption('test'):
|
||||
env.Program('tests/test_util', ['tests/test_util.cc'], LIBS=[_common])
|
||||
|
||||
Reference in New Issue
Block a user