Skip to content

Commit ad9a9ef

Browse files
committed
test: add debug
1 parent cea1bf3 commit ad9a9ef

File tree

2 files changed

+55
-33
lines changed

2 files changed

+55
-33
lines changed

.github/workflows/tests.yml

Lines changed: 52 additions & 33 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.clang-version }} ${{ matrix.cppstd }} Python ${{ matrix.python-version }} Epic ${{ matrix.castxml-epic }}
1111
runs-on: ${{ matrix.os }}
1212

1313
strategy:
@@ -16,124 +16,139 @@ jobs:
1616
include:
1717
# UBUNTU 22.04 - CASTXML EPIC 0
1818
- os: ubuntu-22.04
19-
compiler: gcc
20-
version: "11"
19+
compiler: clang++
20+
clang-version: 13
21+
python-version: "3.13"
22+
castxml: "castxml"
23+
castxml-epic: 0
24+
cppstd: "-std=c++98"
25+
26+
- os: ubuntu-22.04
27+
compiler: clang++
28+
clang-version: 14
29+
python-version: "3.13"
30+
castxml: "castxml"
31+
castxml-epic: 0
32+
cppstd: "-std=c++98"
33+
34+
- os: ubuntu-22.04
35+
compiler: clang++
36+
clang-version: 15
2137
python-version: "3.13"
2238
castxml: "castxml"
2339
castxml-epic: 0
2440
cppstd: "-std=c++98"
2541

2642
- os: ubuntu-22.04
27-
compiler: gcc
28-
version: "11"
43+
compiler: clang++
44+
clang-version: 15
2945
python-version: "3.13"
3046
castxml: "castxml"
3147
castxml-epic: 1
3248
cppstd: "-std=c++98"
3349

3450
# UBUNTU 24.04 - CASTXML EPIC 0
3551
- os: ubuntu-24.04
36-
compiler: gcc
37-
version: "13"
52+
compiler: clang++
53+
clang-version: 16
3854
python-version: "3.9"
3955
castxml: "castxml"
4056
castxml-epic: 0
4157
cppstd: "-std=c++98"
4258

4359
- os: ubuntu-24.04
44-
compiler: gcc
45-
version: "13"
60+
compiler: clang++
61+
clang-version: 16
4662
python-version: "3.10"
4763
castxml: "castxml"
4864
castxml-epic: 0
4965
cppstd: "-std=c++98"
5066

5167
- os: ubuntu-24.04
52-
compiler: gcc
53-
version: "13"
68+
compiler: clang++
69+
clang-version: 16
5470
python-version: "3.11"
5571
castxml: "castxml"
5672
castxml-epic: 0
5773
cppstd: "-std=c++98"
5874

5975
- os: ubuntu-24.04
60-
compiler: gcc
61-
version: "13"
76+
compiler: clang++
77+
clang-version: 16
6278
python-version: "3.12"
6379
castxml: "castxml"
6480
castxml-epic: 0
6581
cppstd: "-std=c++98"
6682

6783
- os: ubuntu-24.04
68-
compiler: gcc
69-
version: "13"
84+
compiler: clang++
85+
clang-version: 16
7086
python-version: "3.13"
7187
castxml: "castxml"
7288
castxml-epic: 0
7389
cppstd: "-std=c++98"
7490

7591
# UBUNTU 24.04 - CASTXML EPIC 0 - c++XX
7692
- os: ubuntu-24.04
77-
compiler: gcc
78-
version: "13"
93+
compiler: clang++
94+
clang-version: 16
7995
python-version: "3.13"
8096
castxml: "castxml"
8197
castxml-epic: 0
8298
cppstd: "-std=c++11"
8399

84100
- os: ubuntu-24.04
85-
compiler: gcc
86-
version: "13"
101+
compiler: clang++
102+
clang-version: 16
87103
python-version: "3.13"
88104
castxml: "castxml"
89105
castxml-epic: 0
90106
cppstd: "-std=c++14"
91107

92108
- os: ubuntu-24.04
93-
compiler: gcc
94-
version: "13"
109+
compiler: clang++
110+
clang-version: 16
95111
python-version: "3.13"
96112
castxml: "castxml"
97113
castxml-epic: 0
98114
cppstd: "-std=c++17"
99115

100116
- os: ubuntu-24.04
101-
compiler: gcc
102-
version: "13"
117+
compiler: clang++
118+
clang-version: 16
103119
python-version: "3.13"
104120
castxml: "castxml"
105121
castxml-epic: 0
106122
cppstd: "-std=c++20"
107123

108124
- os: ubuntu-24.04
109-
compiler: gcc
110-
version: "13"
125+
compiler: clang++
126+
clang-version: 16
111127
python-version: "3.13"
112128
castxml: "castxml"
113129
castxml-epic: 0
114130
cppstd: "-std=c++23"
115131

116132
# UBUNTU 24.04 - CASTXML EPIC 1
117133
- os: ubuntu-24.04
118-
compiler: gcc
119-
version: "13"
134+
compiler: clang++
135+
clang-version: 16
120136
python-version: "3.13"
121137
castxml: "castxml"
122138
castxml-epic: 1
123139
cppstd: "-std=c++98"
124140

125141
- os: ubuntu-24.04
126-
compiler: gcc
127-
version: "13"
142+
compiler: clang++
143+
clang-version: 16
128144
python-version: "3.13"
129145
castxml: "castxml"
130146
castxml-epic: 1
131147
cppstd: "-std=c++11"
132148

133149
# MACOS
134150
- os: macos-13
135-
compiler: xcode
136-
version: "default"
151+
compiler: clang++
137152
python-version: "3.13"
138153
castxml: "castxml"
139154
castxml-epic: 0
@@ -157,8 +172,12 @@ jobs:
157172
- name: Run pycodestyle
158173
run: pycodestyle . --exclude=docs
159174

160-
- name: Write ccflags to conf file
161-
run: echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg
175+
- name: Write xml_generator.cfg
176+
if: contains(matrix.os, 'ubuntu')
177+
run: |
178+
echo "[xml_generator]" > tests/xml_generator.cfg
179+
echo "compiler_path=/usr/bin/${{ matrix.compiler }}-${{ matrix.clang-version }}" >> tests/xml_generator.cfg
180+
echo "ccflags=${{ matrix.cppstd }}" >> tests/xml_generator.cfg
162181
163182
- name: Setup castxml for Linux
164183
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)