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

18 lines
432 B
Bash
Executable File

#!/bin/sh -eux
# Verify the formal side of things, lldb should really depend on its Python bits.
rpm -q --requires lldb | grep python3-lldb
# Then verify things actually works.
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