blob: 411c684358d2dcc61de285c6eda3923ad7bd7810 (
plain) (
blame)
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
|