lldb/tests/lldb-std-vector-prettyprint/test.sh
Jesus Checa Hidalgo 6b3303e41c tests: split tests/python-embedded-interpreter
tests/python-embedded-interpreter now only does a sanity test on lldb,
plus checks that lldb rpm mas the correct dependency on python3-lldb
std::vector test moved to tests/lldb-std-vector-prettyprint.
2022-07-04 19:42:32 +02:00

14 lines
269 B
Bash
Executable File

#!/bin/sh -eux
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 \
-e '(std::vector<int, std::allocator<> >) $0 = size=1 {' \
-e '\[0\] = 2' \
lldb.log \
| wc -l` -eq 2
rm lldb.log