Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main (v3.4.0) on 2021-12-31 #151

Merged
merged 311 commits into from
Dec 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
1affe29
Merge pull request #40 from ut-issl/feature/update_readme
meltingrabbit Nov 26, 2021
c114230
fix coding rule check script to set settings file
meltingrabbit Nov 26, 2021
184d3e5
Create check_coding_rule.yml
meltingrabbit Nov 26, 2021
8cfaa2f
fix workflow settings
meltingrabbit Nov 26, 2021
114781a
Merge pull request #42 from ut-issl/feature/add_coding_rule_check_ci
meltingrabbit Nov 26, 2021
821ef50
add test readme
meltingrabbit Nov 26, 2021
0c48964
add previous version test
meltingrabbit Nov 26, 2021
43d860d
fix test env
meltingrabbit Nov 26, 2021
ee90472
fix wings operation
meltingrabbit Nov 26, 2021
ff202a1
fix test
meltingrabbit Nov 26, 2021
448a4a6
Merge pull request #43 from ut-issl/feature/add_test
meltingrabbit Nov 27, 2021
c3770f6
add some OBCT function
meltingrabbit Nov 27, 2021
4bc5da1
fix comment
meltingrabbit Nov 27, 2021
2fda2fd
add event hundler
meltingrabbit Nov 27, 2021
4da6c1c
add EH tlm
meltingrabbit Nov 27, 2021
29f871b
add EH settings
meltingrabbit Nov 27, 2021
4105b88
add EH cnd to cmd db
meltingrabbit Nov 27, 2021
2a22643
update tlm cmd code
meltingrabbit Nov 27, 2021
3e3d9ff
add test bc for EH
meltingrabbit Nov 27, 2021
f68b6cc
Update CMakeLists.txt
meltingrabbit Nov 27, 2021
1801f78
fix for warning
meltingrabbit Nov 27, 2021
69a6436
fix for warning
meltingrabbit Nov 27, 2021
356a06f
add test
meltingrabbit Nov 27, 2021
14390eb
add Werror to compile option to detect warning
meltingrabbit Nov 27, 2021
eae6170
rename IfWrapper/Sils/*.h to .hpp
sksat Nov 28, 2021
92d3611
Fix Doxygen file name
sksat Nov 28, 2021
97fbc39
Merge pull request #37 from ut-issl/feature/rename-sils-wrapper-files
sksat Nov 28, 2021
fef3ae1
add build_minimum_user_as_c89_with_wextra ci
meltingrabbit Nov 28, 2021
8f1e1ee
del unnecessary static var
meltingrabbit Nov 28, 2021
c5c4920
fix cmake
meltingrabbit Nov 28, 2021
96f7779
fix forward references of struct
meltingrabbit Nov 28, 2021
b7e530e
if err of if
meltingrabbit Nov 28, 2021
689f852
change fn name of round
meltingrabbit Nov 28, 2021
f9e3f72
add #ifndef SILS_FW
meltingrabbit Nov 28, 2021
785eae5
add cast
meltingrabbit Nov 28, 2021
c065f37
fix ci
meltingrabbit Nov 28, 2021
de08321
fix uart test app
meltingrabbit Nov 28, 2021
3a67cec
Update print.c
meltingrabbit Nov 28, 2021
23fd5d0
Update print.c
meltingrabbit Nov 28, 2021
ba846e1
del unnecessary const
meltingrabbit Nov 28, 2021
61cea39
fix comment
meltingrabbit Nov 28, 2021
31dbe6e
Merge pull request #59 from ut-issl/feature/delete_warning
meltingrabbit Nov 28, 2021
45d4619
Merge branch 'develop' into feature/event_handler
meltingrabbit Nov 28, 2021
86cf8e8
Merge pull request #58 from ut-issl/feature/event_handler
meltingrabbit Nov 29, 2021
ed0ada4
Create Doxyfile
meltingrabbit Nov 30, 2021
eca9418
fix path to output
meltingrabbit Nov 30, 2021
1d36009
Merge pull request #66 from ut-issl/feature/add_dixygen_makefile
meltingrabbit Nov 30, 2021
5cca14a
Add S2E mockup
sksat Dec 2, 2021
f25d962
Add build S2E mockup step to build as C++
sksat Dec 2, 2021
204eea5
Add S2E mockup funcs
sksat Dec 2, 2021
eb2badd
Merge pull request #67 from ut-issl/feature/s2e-mockup
sksat Dec 2, 2021
a4f76af
add wings, s2e label
meltingrabbit Dec 2, 2021
a4166d0
Merge pull request #68 from ut-issl/feature/add_label
meltingrabbit Dec 2, 2021
4a6962b
refactor CA
meltingrabbit Dec 2, 2021
d44edd3
refactor TF
meltingrabbit Dec 2, 2021
03d63ff
fix comment and small
meltingrabbit Dec 2, 2021
72d1ddd
del Wextra warnings
meltingrabbit Dec 2, 2021
68abf38
del Wextra warnings
meltingrabbit Dec 2, 2021
714e2e4
modify for delete warning
yngyu Dec 3, 2021
a6e93db
Merge pull request #74 from ut-issl/feature/modify_gs_example
yngyu Dec 3, 2021
5267311
Fix disable execute alias command in pre-commit hook
sksat Dec 3, 2021
32bd431
Remove pre-commit script self-update
sksat Dec 3, 2021
ec358b3
Update use core.hooksPath to set pre-commit hook
sksat Dec 3, 2021
dbe26b4
add docs
meltingrabbit Dec 3, 2021
93ee0ec
add syntax highlighting
meltingrabbit Dec 4, 2021
2626bee
Merge pull request #76 from ut-issl/feature/add_docs
meltingrabbit Dec 4, 2021
865fcce
Merge pull request #72 from ut-issl/feature/refactor_cmd_tlm
meltingrabbit Dec 4, 2021
1280836
Merge pull request #73 from ut-issl/feature/delete_wextra_warning
meltingrabbit Dec 4, 2021
bb273ac
add obct add
yngyu Nov 28, 2021
0fe874f
add get clock from boot
yngyu Nov 28, 2021
b0f46d2
change measure init time
yngyu Nov 28, 2021
195a6ad
change init
yngyu Nov 28, 2021
2ce851c
modify a little
yngyu Nov 28, 2021
6ed9a1b
delete extern
yngyu Nov 29, 2021
4cf4bfc
delete tmgr clock pointer
yngyu Dec 2, 2021
5f11242
change lower to down
yngyu Dec 2, 2021
db680f6
modify name
yngyu Dec 2, 2021
bd33f05
modify init to clear
yngyu Dec 2, 2021
fcf8e88
delete blank
yngyu Dec 2, 2021
0382cd4
fix small
meltingrabbit Dec 2, 2021
c71f81c
Merge pull request #60 from ut-issl/feature/modify_tmgr_init
yngyu Dec 5, 2021
e991413
add dummy byte to hk
yngyu Dec 5, 2021
0dd0a9d
Merge pull request #81 from ut-issl/feature/increase_hk_length
yngyu Dec 5, 2021
cc07127
fix docs link
meltingrabbit Dec 4, 2021
cbd72cd
Merge pull request #78 from ut-issl/feature/fix_docs_link
meltingrabbit Dec 6, 2021
47a6d4d
add CMake config to C2A core
sksat Nov 25, 2021
6e37250
refactor user CMake
sksat Nov 25, 2021
0e7fbc2
fix core project name
sksat Nov 25, 2021
63403a4
split CMakeLists.txt for core Apps and Lib
sksat Nov 25, 2021
9c333c7
Add option to switch use Apps and Lib
sksat Nov 25, 2021
cfa4fc4
split minimum_user CMakeLists.txt
sksat Nov 25, 2021
12b4fe5
fix: build as C++, split compile language property to common.cmake
sksat Dec 2, 2021
f9a0332
add common compile option
sksat Dec 3, 2021
bcae8d5
fix CMakeLists
sksat Dec 3, 2021
05278aa
Fix compile options
sksat Dec 3, 2021
b2b3b9c
Update CMake minimum required version to 3.13
sksat Dec 4, 2021
004357f
Move warning flags to core common.cmake
sksat Dec 4, 2021
86bf489
Split user common.cmake
sksat Dec 4, 2021
ce9460b
Fix path and build option
sksat Dec 4, 2021
07c5d18
add S2E Integration docs
meltingrabbit Dec 6, 2021
bd22328
fix
meltingrabbit Dec 6, 2021
608afbe
Fix docs
sksat Dec 6, 2021
d2b7d69
fix small
meltingrabbit Dec 6, 2021
cac2106
Merge pull request #35 from ut-issl/refactor-cmake
sksat Dec 6, 2021
4ec671b
fix CMakeLists for print
meltingrabbit Dec 7, 2021
05b837c
Merge pull request #83 from ut-issl/feature/fix_build_target_of_print
meltingrabbit Dec 7, 2021
23f20f9
Improve el performance
meltingrabbit Dec 3, 2021
b37cfcb
Merge pull request #77 from ut-issl/feature/improve_el_performance
meltingrabbit Dec 7, 2021
b23427c
Fix link with 32bit on UNIX
sksat Dec 7, 2021
304dee8
Update build minimum user executable on USE_SILS_MOCKUP
sksat Dec 7, 2021
8a926c8
Update not to generate .a of each lib
sksat Dec 7, 2021
6bc5227
Add check multiple definition
sksat Dec 7, 2021
c7715f9
Add link c2a_core_main
sksat Dec 7, 2021
181289c
Add run C2A with SILS mockup exe on CI
sksat Dec 7, 2021
5826e8a
flush example user log
sksat Dec 7, 2021
e814456
delete warning at hew
meltingrabbit Dec 7, 2021
ee01998
Merge pull request #88 from ut-issl/feature/delete_warning_at_hew
meltingrabbit Dec 8, 2021
4cdfddf
Merge pull request #85 from ut-issl/feature/cmake-link
sksat Dec 8, 2021
4064c59
add CCP_get_param_from_packet
meltingrabbit Dec 2, 2021
c05464c
update get param in EL
meltingrabbit Dec 2, 2021
b59862c
add uint64
meltingrabbit Dec 4, 2021
7a442b6
implement CCP_get_param_from_packet
meltingrabbit Dec 4, 2021
31e590d
add err handle
meltingrabbit Dec 7, 2021
271b9c3
del unnecessary include
meltingrabbit Dec 7, 2021
16b102d
fix ca param
meltingrabbit Dec 7, 2021
7e0da88
update cmd tlm of CA
meltingrabbit Dec 7, 2021
df98b06
fix type
meltingrabbit Dec 7, 2021
f6a2ae1
fix bit stream
meltingrabbit Dec 7, 2021
374f9b6
Create test_command_analyze.py
meltingrabbit Dec 7, 2021
8d6f9a4
Merge pull request #70 from ut-issl/feature/improve_how_to_get_cmd_param
meltingrabbit Dec 9, 2021
3a8944c
delete anonymous union
meltingrabbit Dec 10, 2021
014a8b3
Merge pull request #95 from ut-issl/hotfix/delete_unname_union
meltingrabbit Dec 10, 2021
7b9d437
add wdt init to c2a_init_
yngyu Dec 10, 2021
cb2caa2
fix check coding rule ci
meltingrabbit Dec 10, 2021
cbb51c7
Merge pull request #99 from ut-issl/feature/fix_cording_rule_ci
meltingrabbit Dec 10, 2021
94500e7
unify build as C89 workflow
sksat Dec 10, 2021
9b064d2
fix build CI trigger
sksat Dec 10, 2021
5a8ea66
use matrix to unify build job config
sksat Dec 10, 2021
fa6a5b6
fix outputs
sksat Dec 10, 2021
990a827
Merge pull request #101 from ut-issl/feature/refactor-build-ci
sksat Dec 10, 2021
c99041e
Merge pull request #100 from ut-issl/faeture/add_wdt_init
yngyu Dec 11, 2021
39b3e8d
Merge pull request #75 from ut-issl/feature/disable-alias-in-precommit
sksat Dec 13, 2021
23c8fca
add warning option to strictly comply with the C89/90 standard
sksat Dec 10, 2021
260444f
fix build CI trigger
sksat Dec 10, 2021
71e963b
remove warning with comment
sksat Dec 10, 2021
5193cfe
bye GNU extension!
sksat Dec 10, 2021
53815f1
convert to UTF-8 before build
sksat Dec 10, 2021
d00cf4c
add build with clang
sksat Dec 10, 2021
cf0c2ba
remove some option on compile with clang
sksat Dec 10, 2021
32173b6
fix compile option with clang
sksat Dec 13, 2021
04989ac
allow GNU extension on build with GCC...
sksat Dec 13, 2021
e7e7701
fix minimum user main() return type
sksat Dec 13, 2021
7858924
generate build matrix for skip gcc -Werror
sksat Dec 13, 2021
652c7d6
install nkf
sksat Dec 13, 2021
e563d63
Merge pull request #102 from ut-issl/feature/fix-warning-option
sksat Dec 13, 2021
19af95d
del old unused core lib
meltingrabbit Dec 13, 2021
307269e
fix workflow
meltingrabbit Dec 13, 2021
ecf2e72
Merge pull request #104 from ut-issl/feature/delete_old_unused_core_lib
meltingrabbit Dec 14, 2021
e561703
remove commas at the end of enum(C99 feature)
sksat Dec 13, 2021
97587b8
Update block_command_definitions.h
meltingrabbit Dec 14, 2021
ddf14bb
Merge pull request #105 from ut-issl/enforce-c89
sksat Dec 14, 2021
57f23fb
delete c89 Werror
meltingrabbit Dec 15, 2021
89310e2
fix gs bug
meltingrabbit Dec 15, 2021
3ac4f3b
Merge pull request #108 from ut-issl/feature/update_for_c89
meltingrabbit Dec 15, 2021
1bad802
fix for raw param
yngyu Dec 10, 2021
0cc26ad
modify for warning
yngyu Dec 10, 2021
8f3d9b0
fix calc param len
yngyu Dec 10, 2021
a1a5483
modify little
yngyu Dec 11, 2021
5f07593
modify names
yngyu Dec 15, 2021
489155e
Merge pull request #98 from ut-issl/feature/fix_cmd_bct_overwrite_cmd
yngyu Dec 15, 2021
936be84
trigger CI on push to develop,main
sksat Dec 14, 2021
7d6e7f4
Merge pull request #107 from ut-issl/feature/fix-ci-trigger
sksat Dec 15, 2021
e7be698
add reviewdog test with clang-tidy
sksat Dec 15, 2021
ed12cf9
fix run clang-tidy
sksat Dec 15, 2021
b6550dc
set token for reviewdog
sksat Dec 15, 2021
a3480db
fix path for reviewdog output
sksat Dec 15, 2021
fd75d25
add efm for show warning with reviewdog
sksat Dec 15, 2021
1cde09c
add efm for parse clang-tidy error
sksat Dec 15, 2021
eac94e8
update reviewdog config
sksat Dec 15, 2021
a995ed0
fix run reviewdog on compile error
sksat Dec 15, 2021
9ba905f
run reviewdog more(github-check)
sksat Dec 15, 2021
506633b
follow S2E update
sksat Dec 15, 2021
cb11d1b
review comment with Werror, check annotation with Wextra
sksat Dec 16, 2021
365b09e
Merge pull request #109 from ut-issl/feature/reviewdog-warning
sksat Dec 16, 2021
49d8695
modify for warning
yngyu Dec 16, 2021
56c942a
Merge pull request #115 from ut-issl/feature/modify_for_warning
yngyu Dec 16, 2021
dd07628
disable reviewdog clang-tidy (github-check)
meltingrabbit Dec 20, 2021
423b372
Merge pull request #120 from ut-issl/feature/fix_ci_review_dog
meltingrabbit Dec 20, 2021
a4649d9
almost done
chutaro Dec 16, 2021
a2d8eba
run tlmcmd_generator
chutaro Dec 16, 2021
4ba80e1
modify pytest
chutaro Dec 16, 2021
d6bb4ad
fix a little in pytest
chutaro Dec 16, 2021
0666e14
add assertion of cmd code for cmd exec
meltingrabbit Dec 20, 2021
ebdc882
fix el test
meltingrabbit Dec 20, 2021
35c0d72
improve safety of CCP form func
meltingrabbit Dec 20, 2021
d9fb66d
rename func name
meltingrabbit Dec 20, 2021
b0dfe7b
Merge pull request #110 from ut-issl/feature/update-s2e-mockup
sksat Dec 21, 2021
827ea25
Merge pull request #122 from ut-issl/feature/add_assertion_at_exec_cmd
meltingrabbit Dec 21, 2021
5a796ca
modify pytest, add build cache to gitignore
chutaro Dec 21, 2021
7cd184b
restore gitignore
chutaro Dec 21, 2021
94e2281
Merge pull request #116 from ut-issl/feature/rename_unixtime
chutaro Dec 21, 2021
26afec6
change_TMGR_functions_order
chutaro Dec 22, 2021
542381b
fix enum name AH to EH
meltingrabbit Dec 22, 2021
6a88582
modify little
chutaro Dec 22, 2021
6540536
fix to use c2a_enum
meltingrabbit Dec 22, 2021
01b8de8
modify little for coding rule
chutaro Dec 22, 2021
8ff3821
Merge pull request #130 from ut-issl/feature/change_TMGR_functions_order
chutaro Dec 22, 2021
a1fa8e4
Merge pull request #131 from ut-issl/feature/fix_test_for_updating_en…
meltingrabbit Dec 25, 2021
308557f
update method for getting cmd param of EH
meltingrabbit Dec 22, 2021
fb90df7
Merge pull request #132 from ut-issl/feature/update_method_for_gettin…
meltingrabbit Dec 25, 2021
e9f13b9
update to use bsearch in EH
meltingrabbit Dec 27, 2021
9081690
Update test_event_handler.py
meltingrabbit Dec 27, 2021
29c606d
fix bug
meltingrabbit Dec 27, 2021
045260b
prevent access out of array range
meltingrabbit Dec 27, 2021
092f901
fix to the format of C89
meltingrabbit Dec 27, 2021
a116b72
update tlm db
meltingrabbit Dec 28, 2021
9ecf5db
update tlm csv for new tlm db format
meltingrabbit Dec 28, 2021
ad79b9d
add local var to el tlm def
meltingrabbit Dec 28, 2021
5045893
Merge pull request #142 from ut-issl/feature/update_tlm_db
meltingrabbit Dec 28, 2021
06a5477
fix bug
meltingrabbit Dec 28, 2021
6b35b84
Merge pull request #134 from ut-issl/feature/eh_bsearch
meltingrabbit Dec 28, 2021
40f7632
del doxygen @file param
meltingrabbit Dec 29, 2021
369b3b0
Merge pull request #144 from ut-issl/feature/fix_doxygen_file_cmd
meltingrabbit Dec 30, 2021
e88adbe
add comment for multi-level EH
meltingrabbit Dec 28, 2021
7ad19ee
add note about eh el group
meltingrabbit Dec 28, 2021
cd4670e
add EL_ERROR_LEVEL_EH error level
meltingrabbit Dec 28, 2021
02b9697
update for multi level eh response
meltingrabbit Dec 29, 2021
5b7c5c3
imporve el eh tlm
meltingrabbit Dec 29, 2021
291f3fd
fix hk tlm
meltingrabbit Dec 29, 2021
24e769f
add test for multi level eh response and fix bug
meltingrabbit Dec 29, 2021
3d4c227
fix for ci
meltingrabbit Dec 29, 2021
a764c84
add activate and inactivate rule method for multi level eh rule
meltingrabbit Dec 29, 2021
bb8aced
update eh test for multi level eh
meltingrabbit Dec 29, 2021
82c9192
fix typo
meltingrabbit Dec 29, 2021
fc7f8c2
add doxygen comment to NOP
meltingrabbit Dec 30, 2021
348ebc5
fix doxygen comment
meltingrabbit Dec 31, 2021
fce733b
Merge pull request #150 from ut-issl/feature/improve_nop_app
meltingrabbit Dec 31, 2021
9dea879
Merge pull request #139 from ut-issl/feature/add_eh_match_el
meltingrabbit Dec 31, 2021
a0e4fd3
add counter setter and clear for EH
meltingrabbit Dec 29, 2021
cb9483d
add Cmd_EH_CLEAR_RULE_COUNTER_BY_EVENT
meltingrabbit Dec 29, 2021
a8791be
fix comment
meltingrabbit Dec 31, 2021
b5231d6
Merge pull request #143 from ut-issl/feature/eh_counter
meltingrabbit Dec 31, 2021
68ddab6
fix type of var in tf
meltingrabbit Dec 30, 2021
60a9fbe
Merge pull request #147 from ut-issl/feature/fix_tf
meltingrabbit Dec 31, 2021
e0b995a
add doxygen comment to ai
meltingrabbit Dec 30, 2021
7991feb
fix func name of create_app_info
meltingrabbit Dec 30, 2021
85939b2
del unnecessary space
meltingrabbit Dec 30, 2021
5261cea
Merge pull request #148 from ut-issl/feature/improve_ai_am
meltingrabbit Dec 31, 2021
f5b8a8b
add doxygen comment to gscd
meltingrabbit Dec 30, 2021
fe15b06
Merge pull request #149 from ut-issl/feature/improve_gscd
meltingrabbit Dec 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ひとことで

## Issue
Issue がすでに立っているならば,そのリンクを貼る
- 関連する issue

## 詳細
詳しく
Expand Down
12 changes: 12 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@
- name: "priority::medium"
description: "priority medium"
color: "fbca04"

- name: "tools"
description: ""
color: "510f70"

- name: "S2E"
description: ""
color: "eef789"

- name: "WINGS"
description: ""
color: "1503bb"
178 changes: 178 additions & 0 deletions .github/workflows/build_as_c89.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
name: build as C89 using SILS Mockup

on:
push:
branches:
- main
- develop
pull_request:
paths:
- '.github/workflows/build_as_c89.yml'
- 'c2a_core_main.c'
- 'c2a_core_main.h'
- 'common.cmake'
- 'Applications/**'
- 'CmdTlm/**'
- 'Drivers/**'
- 'IfWrapper/**'
- 'Library/**'
- 'System/**'
- 'Examples/minimum_user_for_s2e/CMakeLists.txt'
- 'Examples/minimum_user_for_s2e/src/**'
- 'setup.bat'
- 'setup.sh'

jobs:
gen_build_matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.gen-matrix.outputs.matrix }}
steps:
- name: generate matrix json
id: gen-matrix
shell: bash
run: |
compiler=(
"gcc"
"clang"
)
warning=(
"Werror"
"Wextra"
)
echo "[" > tmp
for c in "${compiler[@]}"; do
for w in "${warning[@]}"; do
if [ "$c" == "gcc" ] && [ "$w" == "Werror" ]; then
continue
fi
echo "{ \"compiler\": \"${c}\", \"warning\": \"${w}\" }" >> tmp
echo "," >> tmp
done
done
sed -i -e '$d' tmp # remove final comma
echo "]" >> tmp
sed -i -z 's/\n//g' tmp # remove newline
jq < tmp
echo "::set-output name=matrix::{\"include\": $(cat tmp) }"

build_minimum_user_as_c89:
runs-on: ubuntu-latest
needs: gen_build_matrix
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.gen_build_matrix.outputs.matrix) }}

steps:
- uses: actions/checkout@v2

- name: install deps
run: |
sudo apt-get install -y libc6-dev-i386 nkf

- name: convert Shift-JIS to UTF-8
if: matrix.compiler == 'clang'
run: find -- . -type f \( -name '*.h' -or -name '*.c' \) -exec nkf --overwrite -S -w80 "{}" \;

- name: setup
shell: bash
run: ./setup.sh

- name: generate compile option
id: compile_flags
shell: bash
run: |
WERROR="OFF"
WEXTRA="OFF"
if ${{ contains(matrix.warning, 'Werror') }}; then
WERROR="ON"
fi
if ${{ contains(matrix.warning, 'Wextra') }}; then
WEXTRA="ON"
fi
echo "::set-output name=WERROR::${WERROR}"
echo "::set-output name=WEXTRA::${WEXTRA}"

- name: cmake
working-directory: ./Examples/minimum_user_for_s2e
env:
CC: ${{ matrix.compiler }}
run: |
mkdir build
cd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_SILS_MOCKUP=ON -DADD_WERROR_FLAGS=${{ steps.compile_flags.outputs.WERROR }} -DADD_WEXTRA_FLAGS=${{ steps.compile_flags.outputs.WEXTRA }}

- name: build
id: build
continue-on-error: ${{ matrix.compiler == 'clang' }}
working-directory: ./Examples/minimum_user_for_s2e/build
run: cmake --build .

- name: run
if: steps.build.outcome == 'success'
working-directory: ./Examples/minimum_user_for_s2e/build
shell: bash
run: timeout 3 ./C2A || exit 0


- name: install reviewdog
if: matrix.compiler == 'clang'
uses: reviewdog/action-setup@v1.0.3

- name: install clang-tidy
if: matrix.compiler == 'clang'
run: sudo apt-get install -y clang-tidy-11

- name: clang-tidy
if: matrix.compiler == 'clang'
working-directory: ./Examples/minimum_user_for_s2e/build
run: |
run-clang-tidy-11 \
| sed 's/\/home\/runner\/work\/c2a-core\/c2a-core\///g' \
| sed 's/Examples\/minimum_user_for_s2e\/src\/src_core\///g' \
> clang_tidy.log

- name: clang-tidy result
if: matrix.compiler == 'clang'
working-directory: ./Examples/minimum_user_for_s2e/build
run: cat clang_tidy.log

- name: reviewdog clang-tidy (github-pr-review)
if: matrix.compiler == 'clang' && matrix.warning == 'Werror'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp ./Examples/minimum_user_for_s2e/build/clang_tidy.log .
reviewdog \
-name 'clang-tidy(Werror)' \
-level warning \
-fail-on-error=true \
-filter-mode=added \
-diff="git diff FETCH_HEAD" \
-reporter=github-pr-review \
-efm="%-Gclang-tidy%s" \
-efm="%-GError while processing%s" \
-efm="%W%f:%l:%c: warning: %m" \
-efm="%E%f:%l:%c: error: %m" \
-efm="%C%m" \
< clang_tidy.log

# - name: reviewdog clang-tidy (github-check)
# if: matrix.compiler == 'clang' && matrix.warning == 'Wextra'
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# cp ./Examples/minimum_user_for_s2e/build/clang_tidy.log .
# reviewdog \
# -name 'clang-tidy(Wextra)' \
# -level warning \
# -fail-on-error=true \
# -filter-mode=nofilter \
# -diff="git diff FETCH_HEAD" \
# -reporter=github-check \
# -efm="%-Gclang-tidy%s" \
# -efm="%-GError while processing%s" \
# -efm="%W%f:%l:%c: warning: %m" \
# -efm="%E%f:%l:%c: error: %m" \
# -efm="%C%m" \
# < clang_tidy.log
64 changes: 64 additions & 0 deletions .github/workflows/build_as_cxx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: build as C++ for S2E

on:
push:
branches:
- main
- develop
pull_request:
paths:
- '.github/workflows/build_as_cxx.yml'
- 'c2a_core_main.c'
- 'c2a_core_main.h'
- 'common.cmake'
- 'Applications/**'
- 'CmdTlm/**'
- 'Drivers/**'
- 'IfWrapper/**'
- 'Library/**'
- 'System/**'
- 'Examples/minimum_user_for_s2e/CMakeLists.txt'
- 'Examples/minimum_user_for_s2e/src/**'
- 'setup.bat'
- 'setup.sh'

jobs:
build_minimum_user_as_cxx:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: setup
shell: cmd
run: ./setup.bat

- name: cmake
working-directory: ./Examples/minimum_user_for_s2e
run: |
mkdir build
cd build
cmake .. -A Win32

- name: build
working-directory: ./Examples/minimum_user_for_s2e/build
run: cmake --build .

build_s2e_mockup:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: setup
shell: cmd
run: ./setup.bat

- name: cmake
working-directory: ./Examples/minimum_user_for_s2e/src/s2e_mockup
run: |
mkdir build
cd build
cmake .. -A Win32

- name: build
working-directory: ./Examples/minimum_user_for_s2e/src/s2e_mockup/build
run: cmake --build .
24 changes: 24 additions & 0 deletions .github/workflows/check_coding_rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: check_coding_rule

on:
push:
branches:
- main
- develop
pull_request:

jobs:
check_coding_rule:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: setup
shell: bash
run: ./setup.sh
- name: check_coding_rule
run: python ./src_core/Script/CI/check_coding_rule.py ./src_core/Script/CI/check_coding_rule.json
working-directory: ./Examples/minimum_user_for_s2e/src
22 changes: 22 additions & 0 deletions .github/workflows/check_encoding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: check_encoding

on:
push:
branches:
- main
- develop
pull_request:

jobs:
check_encoding:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- run: pip install chardet
- name: check_encoding
run: python check_encoding.py
working-directory: ./Script/CI
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: labeler
on:
push:
branches:
- main
- develop
pull_request:
paths:
- .github/workflows/labeler.yml
Expand All @@ -22,4 +22,4 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
skip-delete: false
dry-run: ${{ github.ref != 'refs/heads/main' }}
dry-run: ${{ github.ref != 'refs/heads/develop' }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ dkms.conf
.AppleDouble
.LSOverride
._*

# for c2a user sample
Examples/minimum_user_for_s2e/src/src_core
Examples/minimum_user_for_s2e/build
Examples/minimum_user_for_s2e/src/src_user/Test/authorization.json
*.pyc
25 changes: 25 additions & 0 deletions Applications/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 3.13)

project(C2A_CORE_APPS)

set(C2A_SRCS
anomaly_handler.c
divided_cmd_utility.c
gs_command_dispatcher.c
event_utility.c
memory_dump.c
nop.c
realtime_command_dispatcher.c
timeline_command_dispatcher.c
utility_command.c
utility_counter.c
telemetry_manager.c
)

if(BUILD_C2A_AS_CXX)
set_source_files_properties(${C2A_SRCS} PROPERTIES LANGUAGE CXX) # C++
endif()

add_library(${PROJECT_NAME} OBJECT ${C2A_SRCS})

include(${C2A_CORE_DIR}/common.cmake)
4 changes: 2 additions & 2 deletions Applications/anomaly_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static size_t AH_prev_act_;

AppInfo AH_create_app(void)
{
return create_app_info("ah", AH_init_, AH_exec_);
return AI_create_app_info("ah", AH_init_, AH_exec_);
}


Expand Down Expand Up @@ -225,7 +225,7 @@ static void AH_respond_to_anomaly_(size_t id)

AppInfo print_ah_status(void)
{
return create_app_info("ahs", NULL, AH_print_ah_status_);
return AI_create_app_info("ahs", NULL, AH_print_ah_status_);
}


Expand Down
Loading