-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathproject.yml
More file actions
61 lines (54 loc) · 1.59 KB
/
project.yml
File metadata and controls
61 lines (54 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
:project:
:name: openplc-runtime-tests
:use_exceptions: FALSE
:use_mocks: TRUE
:use_test_preprocessor: :none
:use_backtrace: :gdb
:build_root: build/test
:test_file_prefix: test_
:release_build: FALSE # We don't need release builds for testing
:paths:
:test:
- tests/**
:source:
- core/src/**
# Exclude files that are not part of the unit under test or have heavy external deps
# For now, we include everything and let Ceedling handle linking.
# If specific files cause issues, we can exclude them here.
:support:
- tests/support/** # Include support files (stubs, mocks, helpers)
:include:
- core/src/**
- tests/support # For custom helpers or mocks if needed
:defines:
:test:
- TEST
- BUFFER_SIZE=128 # Define BUFFER_SIZE used by image_tables.h
- MAX_PLUGINS=16 # Define MAX_PLUGINS used by plugin_driver.h
- UNITY_INCLUDE_DOUBLE # Enable double support in Unity
:plugins:
:enabled: []
:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: FALSE
:plugins:
- :ignore
- :callback
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
bool: UINT8
:flags:
:test:
:compile:
- -I/usr/include/python3.10 # From pkg-config --cflags-only-I python3-embed
:libraries:
:test:
- python3.10 # From pkg-config --libs python3-embed (Ceedling adds -l)
- dl # Required by plugin_driver.c (Ceedling adds -l)
- pthread # Required by plugin_driver.c (Ceedling adds -l)
:unity:
:includes:
- "unity_helper.h"