Leaving this here for others ...
I'm working to get Ceedling going on Windows with XC8.
My :tools: section had been configured to look for xc8 (note the absence of -cc is intentional as we are working with c90, not c99.)
:tools:
:test_compiler:
:executable: xc8
:arguments:
- --CHIP=16LF1705
- -O0
- -x c
- -c
- "${1}"
- -o "${2}"
- -D$: COLLECTION_DEFINES_TEST_AND_VENDOR
.
.
.
:test_file_preprocessor:
:executable: xc8 # Specify XC8 here, adjust arguments as necessary
:arguments:
- --CHIP=16LF1705
- -x c
- -E
- "${1}"
- -o "${2}"
:test_file_preprocessor_directives:
:executable: xc8 # This might not be necessary if XC8 handles preprocessing directives inherently
:arguments:
- --CHIP=16LF1705
- -D
.
.
.
I tried feeding it:
:test_nested_includes_preprocessor:
:executable: xc8
:arguments:
- --CHIP=16LF1705
- "${1}" # Input source file
- -o"${2}" # Output preprocessed file
- -o"build/preprocessed/${1}.p"
- -E # Preprocess only, do not compile
Wasn't having any luck.
Then I realized I could set:
:use_test_preprocessor: FALSE
That at least advanced me to:
--------------------
OVERALL TEST SUMMARY
--------------------
No tests executed.
ERROR: :tools :test_nested_includes_preprocessor ↳ :executable => `gcc.exe` does not exist in system search paths.
ERROR: :tools ↳ :test_shallow_includes_preprocessor ↳ :executable => `gcc.exe` does not exist in system search paths.
CeedlingException ==> ERROR: Ceedling configuration failed validation