Skip to content

Commit

Permalink
Improve tests & scripts calls
Browse files Browse the repository at this point in the history
Tree:
- move tests projects in a `/test` folder
- moved all scripts to be delivered in a single script folder
   - move and rename the proposed delivered GDB script to nlohmann_json.gdb
   - move and rename the proposed delivered python GDB script to nlohmann_json.py

Tests:
- add a JSON checker based on python json module
- update README.md and several scripts to new arboresence
- update CI tests accordingly

Global:
- STL are not loaded in the proposed delivered GDB script.  STL decoder loading is moved in the test part .

Also:
 - removed temporary print in STL file
 - clarify a few comments in gdb scripts

gitignore old folders
  • Loading branch information
LoneWanderer-GH committed Apr 23, 2020
1 parent e92b903 commit 69940ec
Show file tree
Hide file tree
Showing 18 changed files with 470 additions and 187 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ jobs:

- name: Build the test project (gprbuild finds automagically the .gpr file, -p to force missing dirs creation)
run: pwd && ls -al && gprbuild -p -vm
working-directory: ./offsets_finder
working-directory: ./tests/offsets_finder

- name: append GDB quit on error
run: echo "maintenance set internal-error quit yes $(cat find_offsets.gdb)" > find_offsets.gdb && cat find_offsets.gdb
working-directory: ./offsets_finder
working-directory: ./tests/offsets_finder

# Runs a set of commands using the runners shell
- name: Start a gdb session
run: gdb --se=./exe/main --command=find_offsets.gdb --batch
working-directory: ./offsets_finder
working-directory: ./tests/offsets_finder

run-test-project:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -79,13 +79,13 @@ jobs:

- name: build the test project (gprbuild finds automagically the .gpr file, -p to force missing dirs creation)
run: pwd && ls -al && gprbuild -p -vm
working-directory: ./cpp_test_project
working-directory: ./tests/cpp_test_project

- name: Prepend GDB quit on error (and output file for check)
run: echo "maintenance set internal-error quit yes $(cat .gdbinit)" > .gdbinit && cat .gdbinit
working-directory: ./cpp_test_project
working-directory: ./tests/cpp_test_project

# Runs a set of commands using the runners shell
- name: Start a gdb session
run: gdb --se=./exe/main --command=.gdbinit --batch
working-directory: ./cpp_test_project
run: gdb --se=./exe/main --command=.gdbinit --batch -ex=checker.py
working-directory: ./tests/cpp_test_project
13 changes: 8 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# temp GPS files weirdness
*/**/.#*.*#
**/**/.#*.*#

# ignore dirs
*/exe/**
*/obj/**
**/exe/**
**/obj/**
**/.idea/**

# obsolete arborescence
**/gdb_python_pretty_printer/**
**/gdb_script/**
#gdb_python_pretty_printer/.idea/

# some stuff that sits at home
gdb_python_pretty_printer/proto.py
**/**/proto.py
assets/captures/
offsets_finder/prout.py
**/**/prout.py
Loading

0 comments on commit 69940ec

Please sign in to comment.