File: gdb_pretty_printer_test_run.sh

package info (click to toggle)
nim 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,911,644 kB
  • sloc: sh: 24,603; ansic: 1,761; python: 1,492; makefile: 1,013; sql: 298; asm: 141; xml: 13
file content (13 lines) | stat: -rwxr-xr-x 566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -e
# Compile the test project with fresh debug information.
nim c --debugger:native --mm:orc --out:gdbNew gdb_pretty_printer_test_program.nim
echo "Running new runtime tests..."
# 2>&1 redirects stderr to stdout (all output in stdout)
gdb -x gdb_pretty_printer_test.py --batch-silent --args gdbNew 2>&1


# Do it all again, but with old runtime
nim c --debugger:native --mm:refc --out:gdbOld gdb_pretty_printer_test_program.nim &> /dev/null
echo "Running old runtime tests"
gdb -x gdb_pretty_printer_test.py --batch-silent --args gdbOld 2>&1