Skip to content

Commit 94f60b4

Browse files
committed
test: add debug
1 parent cea1bf3 commit 94f60b4

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
tests:
10-
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.cppstd }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
10+
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.cppstd }}-${{ matrix.gcc-version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}
1111
runs-on: ${{ matrix.os }}
1212

1313
strategy:
@@ -17,15 +17,15 @@ jobs:
1717
# UBUNTU 22.04 - CASTXML EPIC 0
1818
- os: ubuntu-22.04
1919
compiler: gcc
20-
version: "11"
20+
gcc-version: "11"
2121
python-version: "3.13"
2222
castxml: "castxml"
2323
castxml-epic: 0
2424
cppstd: "-std=c++98"
2525

2626
- os: ubuntu-22.04
2727
compiler: gcc
28-
version: "11"
28+
gcc-version: "11"
2929
python-version: "3.13"
3030
castxml: "castxml"
3131
castxml-epic: 1
@@ -34,39 +34,39 @@ jobs:
3434
# UBUNTU 24.04 - CASTXML EPIC 0
3535
- os: ubuntu-24.04
3636
compiler: gcc
37-
version: "13"
37+
gcc-version: "13"
3838
python-version: "3.9"
3939
castxml: "castxml"
4040
castxml-epic: 0
4141
cppstd: "-std=c++98"
4242

4343
- os: ubuntu-24.04
4444
compiler: gcc
45-
version: "13"
45+
gcc-version: "13"
4646
python-version: "3.10"
4747
castxml: "castxml"
4848
castxml-epic: 0
4949
cppstd: "-std=c++98"
5050

5151
- os: ubuntu-24.04
5252
compiler: gcc
53-
version: "13"
53+
gcc-version: "13"
5454
python-version: "3.11"
5555
castxml: "castxml"
5656
castxml-epic: 0
5757
cppstd: "-std=c++98"
5858

5959
- os: ubuntu-24.04
6060
compiler: gcc
61-
version: "13"
61+
gcc-version: "13"
6262
python-version: "3.12"
6363
castxml: "castxml"
6464
castxml-epic: 0
6565
cppstd: "-std=c++98"
6666

6767
- os: ubuntu-24.04
6868
compiler: gcc
69-
version: "13"
69+
gcc-version: "13"
7070
python-version: "3.13"
7171
castxml: "castxml"
7272
castxml-epic: 0
@@ -75,39 +75,39 @@ jobs:
7575
# UBUNTU 24.04 - CASTXML EPIC 0 - c++XX
7676
- os: ubuntu-24.04
7777
compiler: gcc
78-
version: "13"
78+
gcc-version: "13"
7979
python-version: "3.13"
8080
castxml: "castxml"
8181
castxml-epic: 0
8282
cppstd: "-std=c++11"
8383

8484
- os: ubuntu-24.04
8585
compiler: gcc
86-
version: "13"
86+
gcc-version: "13"
8787
python-version: "3.13"
8888
castxml: "castxml"
8989
castxml-epic: 0
9090
cppstd: "-std=c++14"
9191

9292
- os: ubuntu-24.04
9393
compiler: gcc
94-
version: "13"
94+
gcc-version: "13"
9595
python-version: "3.13"
9696
castxml: "castxml"
9797
castxml-epic: 0
9898
cppstd: "-std=c++17"
9999

100100
- os: ubuntu-24.04
101101
compiler: gcc
102-
version: "13"
102+
gcc-version: "13"
103103
python-version: "3.13"
104104
castxml: "castxml"
105105
castxml-epic: 0
106106
cppstd: "-std=c++20"
107107

108108
- os: ubuntu-24.04
109109
compiler: gcc
110-
version: "13"
110+
gcc-version: "13"
111111
python-version: "3.13"
112112
castxml: "castxml"
113113
castxml-epic: 0
@@ -116,15 +116,15 @@ jobs:
116116
# UBUNTU 24.04 - CASTXML EPIC 1
117117
- os: ubuntu-24.04
118118
compiler: gcc
119-
version: "13"
119+
gcc-version: "13"
120120
python-version: "3.13"
121121
castxml: "castxml"
122122
castxml-epic: 1
123123
cppstd: "-std=c++98"
124124

125125
- os: ubuntu-24.04
126126
compiler: gcc
127-
version: "13"
127+
gcc-version: "13"
128128
python-version: "3.13"
129129
castxml: "castxml"
130130
castxml-epic: 1
@@ -133,7 +133,7 @@ jobs:
133133
# MACOS
134134
- os: macos-13
135135
compiler: xcode
136-
version: "default"
136+
gcc-version: "default"
137137
python-version: "3.13"
138138
castxml: "castxml"
139139
castxml-epic: 0
@@ -157,8 +157,11 @@ jobs:
157157
- name: Run pycodestyle
158158
run: pycodestyle . --exclude=docs
159159

160-
- name: Write ccflags to conf file
161-
run: echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg
160+
- name: Write xml_generator.cfg
161+
run: |
162+
echo "[xml_generator]" > tests/xml_generator.cfg
163+
echo "compiler_path=/usr/bin/g++-${{ matrix.gcc-version }}" >> tests/xml_generator.cfg
164+
echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg
162165
163166
- name: Setup castxml for Linux
164167
if: contains(matrix.os, 'ubuntu') && matrix.castxml == 'castxml'

tests/test_patcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
from pygccxml import parser
1212
from pygccxml import utils
1313

14+
import logging
15+
utils.loggers.set_level(logging.DEBUG)
16+
1417

1518
TEST_FILES = [
1619
"patcher.hpp",

0 commit comments

Comments
 (0)