-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from driftregion/0.6.0_rc
0.6.0
- Loading branch information
Showing
27 changed files
with
1,874 additions
and
2,149 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: run test | ||
- name: build and run unit test | ||
run: make unit_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
.bazel-* | ||
bazel-* | ||
.rsync-filter | ||
test_iso14229 | ||
client | ||
server | ||
server | ||
corpus | ||
*.profdata | ||
*.profraw | ||
.gdb_history | ||
fuzzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,3 @@ cc_library( | |
srcs=[":isotp_c_srcs"], | ||
copts=["-Wno-unused-parameter"], | ||
) | ||
|
||
cc_binary( | ||
name="example_server", | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,45 @@ | ||
ifeq "$(TP)" "ISOTP_C" | ||
SRCS += isotp-c/isotp.c examples/isotp-c_on_socketcan.c | ||
CFLAGS += -DUDS_TP=UDS_TP_ISOTP_C | ||
endif | ||
|
||
cxx: CFLAGS+=-DUDS_TP=UDS_TP_CUSTOM | ||
cxx: Makefile iso14229.c iso14229.h | ||
$(CXX) iso14229.c $(CFLAGS) -c | ||
|
||
unit_test: CFLAGS+=-DUDS_TP=UDS_TP_CUSTOM -DUDS_CUSTOM_MILLIS | ||
unit_test: Makefile iso14229.h iso14229.c test_iso14229.c | ||
$(CC) iso14229.c test_iso14229.c $(CFLAGS) $(LDFLAGS) -o test_iso14229 | ||
$(RUN) ./test_iso14229 | ||
|
||
client: examples/client.c examples/uds_params.h iso14229.h iso14229.c Makefile | ||
$(CC) iso14229.c $< $(CFLAGS) -o $@ | ||
client: CFLAGS+=-g -DUDS_DBG_PRINT=printf | ||
client: examples/client.c examples/uds_params.h iso14229.h iso14229.c Makefile $(SRCS) | ||
$(CC) iso14229.c $(SRCS) $< $(CFLAGS) -o $@ | ||
|
||
server: examples/server.c examples/uds_params.h iso14229.h iso14229.c Makefile | ||
$(CC) iso14229.c $< $(CFLAGS) -o $@ | ||
server: CFLAGS+=-g -DUDS_DBG_PRINT=printf | ||
server: examples/server.c examples/uds_params.h iso14229.h iso14229.c Makefile $(SRCS) | ||
$(CC) iso14229.c $(SRCS) $< $(CFLAGS) -o $@ | ||
|
||
test_examples: client server test_examples.sh | ||
@./test_examples.sh | ||
test_examples: test_examples.py | ||
$(RUN) ./test_examples.py | ||
|
||
uds_prefix: CFLAGS+=-DUDS_TP=UDS_TP_CUSTOM -DUDS_CUSTOM_MILLIS | ||
uds_prefix: iso14229.c iso14229.h | ||
$(CC) iso14229.c $(CFLAGS) -c -o /tmp/x.o && nm /tmp/x.o | grep ' T ' | grep -v 'UDS' ; test $$? = 1 | ||
|
||
test: unit_test test_examples uds_prefix | ||
test_qemu: Makefile iso14229.h iso14229.c test_iso14229.c test_qemu.py | ||
$(RUN) ./test_qemu.py | ||
|
||
test: cxx unit_test test_examples uds_prefix test_qemu | ||
|
||
fuzz: CC=clang-14 | ||
fuzz: ASAN = -fsanitize=fuzzer,signed-integer-overflow,address,undefined -fprofile-instr-generate -fcoverage-mapping | ||
fuzz: OPTS = -g -DUDS_TP=UDS_TP_CUSTOM -DUDS_CUSTOM_MILLIS | ||
fuzz: iso14229.c iso14229.h fuzz_server.c Makefile | ||
$(CC) $(OPTS) $(WARN) $(INCS) $(TFLAGS) $(ASAN) fuzz_server.c iso14229.c -o fuzzer | ||
$(RUN) ./fuzzer corpus | ||
|
||
clean: | ||
rm -f client server test_iso14229 | ||
rm -f client server test_iso14229 iso14229.o | ||
|
||
.phony: clean test_examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.