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

16 lines
275 B
Bash
Raw Normal View History

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