Skip to content

Commit

Permalink
[#348] Added build-test and test-fsw back into makefile;
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucas9 committed Nov 15, 2024
1 parent a884893 commit 836797e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build
on:
pull_request:

env:
CTEST_OUTPUT_ON_FAILURE: true

jobs:
fsw:
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ build-sim:
cd $(SIMBUILDDIR) && cmake -DCMAKE_INSTALL_PREFIX=$(SIMBUILDDIR) ..
$(MAKE) --no-print-directory -C $(SIMBUILDDIR) install

build-test:
ifeq ($(FLIGHT_SOFTWARE), fprime)
# TODO
else
mkdir -p $(FSWBUILDDIR)
cd $(FSWBUILDDIR) && cmake $(PREP_OPTS) -DENABLE_UNIT_TESTS=true ../cfe
$(MAKE) --no-print-directory -C $(FSWBUILDDIR) mission-install
endif

checkout:
./scripts/checkout.sh

Expand Down Expand Up @@ -135,6 +144,9 @@ stop:
stop-gsw:
./scripts/gsw/stop_gsw.sh

test-fsw:
cd $(FSWBUILDDIR)/amd64-posix/default_cpu1 && ctest -O ctest.log

uninstall:
$(MAKE) clean
./scripts/cfg/uninstall.sh
2 changes: 1 addition & 1 deletion fsw/apps/sbn
Submodule sbn updated 1 files
+4 −4 CMakeLists.txt

0 comments on commit 836797e

Please sign in to comment.