Compare commits

...

2 Commits

Author SHA1 Message Date
d58374232a
running workflow file tests in gdb
Some checks failed
Codacy Scan / Codacy Security Scan (push) Failing after 2m31s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Failing after 2m23s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 3m24s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 3m30s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 4m12s
2025-01-09 15:42:14 +01:00
4244d2687e
using absolute paths in workflow 2025-01-09 15:41:47 +01:00
4 changed files with 13 additions and 10 deletions

View File

@ -34,7 +34,7 @@ jobs:
- os: ubuntu-latest - os: ubuntu-latest
client: ./out/why2-chat-client client: ./out/why2-chat-client
server: ./out/why2-chat-server server: ./out/why2-chat-server
configure: configure.sh configure: ./configure.sh
steps: steps:
- name: Checkout repository - name: Checkout repository

View File

@ -33,8 +33,9 @@ jobs:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
output: ./out/why2-core-test output: ./out/why2-core-test
gdb: gdb -ex "run" -ex "quit" --batch
valgrind: valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s valgrind: valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s
configure: configure.sh configure: ./configure.sh
app: why2 app: why2
steps: steps:
@ -68,10 +69,10 @@ jobs:
run: make test_core run: make test_core
- name: Test Lib - name: Test Lib
run: ./${{ matrix.output }} run: ${{ matrix.gdb }} ${{ matrix.output }}
- name: Test App - name: Test App
run: ${{ matrix.app }} run: ${{ matrix.gdb }} ${{ matrix.app }}
- name: Test Lib by Valgrind - name: Test Lib by Valgrind
run: ${{ matrix.valgrind }} ${{ matrix.output }} run: ${{ matrix.valgrind }} ${{ matrix.output }}

View File

@ -33,7 +33,8 @@ jobs:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
output: ./out/why2-logger-test output: ./out/why2-logger-test
configure: configure.sh gdb: gdb -ex "run" -ex "quit" --batch
configure: ./configure.sh
valgrind: valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s valgrind: valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s
app: why2-logger app: why2-logger
@ -68,10 +69,10 @@ jobs:
run: make test_logger run: make test_logger
- name: Test Lib - name: Test Lib
run: ./${{ matrix.output }} run: ${{ matrix.gdb }} ${{ matrix.output }}
- name: Test App - name: Test App
run: ${{ matrix.app }} run: ${{ matrix.gdb }} ${{ matrix.app }}
- name: Test Lib by Valgrind - name: Test Lib by Valgrind
run: ${{ matrix.valgrind }} ${{ matrix.output }} run: ${{ matrix.valgrind }} ${{ matrix.output }}

View File

@ -30,8 +30,9 @@ jobs:
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
configure: configure.sh gdb: gdb -ex "run" -ex "quit" --batch
test: test configure: ./configure.sh
test: ./test
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -65,4 +66,4 @@ jobs:
run: cc ${{ matrix.test }}.c -lwhy2 -Wall -o ${{ matrix.test }} run: cc ${{ matrix.test }}.c -lwhy2 -Wall -o ${{ matrix.test }}
- name: Run test - name: Run test
run: ./${{ matrix.test }} run: ${{ matrix.gdb }} ./${{ matrix.test }}