gdb_pretty_printer_test_run.sh 566 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. set -e
  3. # Compile the test project with fresh debug information.
  4. nim c --debugger:native --mm:orc --out:gdbNew gdb_pretty_printer_test_program.nim
  5. echo "Running new runtime tests..."
  6. # 2>&1 redirects stderr to stdout (all output in stdout)
  7. gdb -x gdb_pretty_printer_test.py --batch-silent --args gdbNew 2>&1
  8. # Do it all again, but with old runtime
  9. nim c --debugger:native --mm:refc --out:gdbOld gdb_pretty_printer_test_program.nim &> /dev/null
  10. echo "Running old runtime tests"
  11. gdb -x gdb_pretty_printer_test.py --batch-silent --args gdbOld 2>&1