nasa / SBN

38 stars 23 forks source link

Unit test builds fail #48

Open the-other-james opened 1 year ago

the-other-james commented 1 year ago

When building for cFS 7.0 with ENABLE_UNIT_TESTS=true, SBN unit tests fail to build. I'm currently getting the following:

Scanning dependencies of target ut_sbn-sbn_pack_object
[ 50%] Built target sbn
[ 50%] Building C object apps/sbn/unit-test/CMakeFiles/ut_sbn-sbn_app_object.dir/__/fsw/src/sbn_app.c.o
[ 50%] Building C object apps/sbn/unit-test/CMakeFiles/ut_sbn-sbn_app_object.dir/__/fsw/src/sbn_cmds.c.o
[ 50%] Building C object apps/sbn/ut-stubs/CMakeFiles/ut_sbn_stubs.dir/sbn_stubs.c.o
[ 61%] Building C object apps/sbn/ut-stubs/CMakeFiles/ut_sbn_stubs.dir/sbn_stubs.c.o
In file included from /hypercube-cfs/cfs_fsw/shared_apps/sbn/ut-stubs/sbn_stubs.h:4,
                 from /hypercube-cfs/cfs_fsw/shared_apps/sbn/ut-stubs/sbn_stubs.c:30:
/hypercube-cfs/cfs_fsw/shared_apps/sbn/fsw/platform_inc/sbn_interfaces.h:4:10: fatal error: cfe.h: No such file or directory
    4 | #include "cfe.h"
      |          ^~~~~~~
compilation terminated.