lldb/tests/python-embedded-interpreter/runtest.sh

12 lines
240 B
Bash
Executable File

#!/bin/bash
set -ex
g++ -g test.cpp
test `lldb -b -o 'breakpoint set --file test.cpp --line 7' -o run -o 'p v' -- a.out \
| grep \
-e '(std::vector<int, std::allocator<int> >) $0 = size=1 {' \
-e '\[0\] = 2' \
| wc -l` -eq 2