Skip to content

Commit

Permalink
test: add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
iMichka committed Feb 19, 2025
1 parent cea1bf3 commit 39dda54
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 18 deletions.
74 changes: 56 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
tests:
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.cppstd }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.cppstd }}-${{ matrix.clang-version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -17,15 +17,35 @@ jobs:
# UBUNTU 22.04 - CASTXML EPIC 0
- os: ubuntu-22.04
compiler: gcc
version: "11"
gcc-version: "11"
clang-version: "13"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-22.04
compiler: gcc
gcc-version: "11"
clang-version: "14"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-22.04
compiler: gcc
version: "11"
gcc-version: "11"
clang-version: "15"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-22.04
compiler: gcc
gcc-version: "11"
clang-version: "15"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 1
Expand All @@ -34,39 +54,44 @@ jobs:
# UBUNTU 24.04 - CASTXML EPIC 0
- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.9"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.10"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.11"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.12"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++98"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
Expand All @@ -75,39 +100,44 @@ jobs:
# UBUNTU 24.04 - CASTXML EPIC 0 - c++XX
- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++11"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++14"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++17"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
cppstd: "-std=c++20"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
Expand All @@ -116,15 +146,17 @@ jobs:
# UBUNTU 24.04 - CASTXML EPIC 1
- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 1
cppstd: "-std=c++98"

- os: ubuntu-24.04
compiler: gcc
version: "13"
gcc-version: "13"
clang-version: "16"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 1
Expand All @@ -133,7 +165,7 @@ jobs:
# MACOS
- os: macos-13
compiler: xcode
version: "default"
gcc-version: "default"
python-version: "3.13"
castxml: "castxml"
castxml-epic: 0
Expand All @@ -157,8 +189,14 @@ jobs:
- name: Run pycodestyle
run: pycodestyle . --exclude=docs

- name: Write ccflags to conf file
run: echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg
- name: Debug
run: ls /usr/bin/clang*

- name: Write xml_generator.cfg
run: |
echo "[xml_generator]" > tests/xml_generator.cfg
echo "compiler_path=/usr/bin/clang++-${{ matrix.clang-version }}" >> tests/xml_generator.cfg
echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg
- name: Setup castxml for Linux
if: contains(matrix.os, 'ubuntu') && matrix.castxml == 'castxml'
Expand Down
3 changes: 3 additions & 0 deletions tests/test_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
from pygccxml import parser
from pygccxml import utils

import logging
utils.loggers.set_level(logging.DEBUG)


TEST_FILES = [
"patcher.hpp",
Expand Down

0 comments on commit 39dda54

Please sign in to comment.