From 6143336a25ac8c67722a111f38befd84d096d39a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 24 Aug 2023 13:44:39 -0700 Subject: [PATCH 1/2] add --minimal build flag --- SConscript | 2 +- SConstruct | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SConscript b/SConscript index 192e42d0e..a5d9d6bea 100644 --- a/SConscript +++ b/SConscript @@ -69,7 +69,7 @@ else: envCython.Program('visionipc/visionipc_pyx.so', 'visionipc/visionipc_pyx.pyx', LIBS=vipc_libs, FRAMEWORKS=vipc_frameworks) -if GetOption('test'): +if GetOption('extras'): env.Program('messaging/test_runner', ['messaging/test_runner.cc', 'messaging/msgq_tests.cc'], LIBS=[messaging_lib, common]) env.Program('visionipc/test_runner', ['visionipc/test_runner.cc', 'visionipc/visionipc_tests.cc'], diff --git a/SConstruct b/SConstruct index 46c2352bd..bf2a53702 100644 --- a/SConstruct +++ b/SConstruct @@ -21,9 +21,11 @@ libpath = [ '/opt/homebrew/lib', ] -AddOption('--test', - action='store_true', - help='build test files') +AddOption('--minimal', + action='store_false', + dest='extras', + default=True, + help='the minimum build. no tests, tools, etc.') AddOption('--asan', action='store_true', From 2f53d0429d5e5d245af69027bac02bc2608ed19d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 24 Aug 2023 13:51:10 -0700 Subject: [PATCH 2/2] update that --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d0be50f68..d9bb1065b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,7 +42,7 @@ jobs: - name: C++ tests run: | $RUN "export ${{ matrix.backend }}=1 && \ - scons --test ${{ matrix.flags }} -j$(nproc) && \ + scons ${{ matrix.flags }} -j$(nproc) && \ messaging/test_runner && \ visionipc/test_runner" - name: python tests