Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ jobs:
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
python -m pytest integration_test.py -vv || exit /b !errorlevel!

- name: run-tests.py
Comment thread
danmar marked this conversation as resolved.
Resolved
run: |
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
python run-tests.py || exit /b !errorlevel!

- name: Run CMake (c++17)
run: |
cmake -S . -B build.cxx17 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=17 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
Expand Down
4 changes: 3 additions & 1 deletion run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ def cleanup(out: str) -> str:
if not GCC_EXE:
sys.exit('Failed to run tests: gcc compiler not found')

SIMPLECPP_EXE = './simplecpp'
SIMPLECPP_EXE = os.environ.get('SIMPLECPP_EXE_PATH', './simplecpp')


commands = []

for f in sorted(glob.glob(os.path.expanduser('testsuite/clang-preprocessor-tests/*.c*'))):
f = f.replace('\\', '/') # glob returns backslash separators on Windows
for line in open(f, 'rt', encoding='utf-8'):
if line.startswith('// RUN: %clang_cc1 '):
cmd = ''
Expand All @@ -40,6 +41,7 @@ def cleanup(out: str) -> str:
if not newcmd in commands:
commands.append(cmd[1:] + ' ' + f)
for f in sorted(glob.glob(os.path.expanduser('testsuite/gcc-preprocessor-tests/*.c*'))):
f = f.replace('\\', '/') # glob returns backslash separators on Windows
commands.append('-E ' + f)

# skipping tests..
Expand Down
Loading