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

18 lines
432 B
Bash
Raw Normal View History

2021-11-16 14:28:27 +00:00
#!/bin/sh -eux
2021-11-16 14:28:27 +00:00
# Verify the formal side of things, lldb should really depend on its Python bits.
rpm -q --requires lldb | grep python3-lldb
2021-11-16 14:28:27 +00:00
# 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 \
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