Skip to content

Commit

Permalink
[nasa/nos3#407] CI Test 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnie-Ice committed Nov 14, 2024
1 parent 9c33b8f commit a89a573
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/sample_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@ jobs:
- name: Make Prep
run: make SIMULATION=native ENABLE_UNIT_TESTS=true OMIT_DEPRECATED=true prep

- name: Build app build dependencies
run: make -C build/tools/elf2cfetbl
# - name: Build app build dependencies
# run: make -C build/tools/elf2cfetbl

- name: Build app/library target
run: |
make -C build/native/default_cpu1/apps/$APP_LOWER
# - name: Build app/library target
# run: |
# make -C build/native/default_cpu1/apps/$APP_LOWER

- name: Capture initial lcov and run test
run: |
lcov --capture --initial --directory build --output-file coverage_base.info
(cd build/native/default_cpu1/apps/$APP_LOWER; ctest --verbose) | tee test_results.txt
lcov --capture --initial --output-file coverage_base.info
(ctest --verbose) | tee test_results.txt
- name: Calculate coverage
run: |
lcov --capture --rc lcov_branch_coverage=1 --directory build --output-file coverage_test.info
lcov --capture --rc lcov_branch_coverage=1 --output-file coverage_test.info
lcov --rc lcov_branch_coverage=1 --add-tracefile coverage_base.info --add-tracefile coverage_test.info --output-file coverage_total.info
genhtml coverage_total.info --branch-coverage --output-directory lcov | tee lcov_out.txt
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ PREP_OPTS += -DCMAKE_BUILD_TYPE=$(BUILDTYPE)
endif

all:
$(MAKE) --no-print-directory -C "$(O)" mission-all
$(MAKE) --no-print-directory -C "." mission-all

install:
$(MAKE) --no-print-directory -C "$(O)" DESTDIR="." mission-install
$(MAKE) --no-print-directory -C "." DESTDIR="." mission-install

prep $(O)/.prep:
(cmake $(PREP_OPTS) ./fsw/cfs)
Expand Down

0 comments on commit a89a573

Please sign in to comment.