2021-11-16 14:28:27 +00:00
|
|
|
#!/bin/sh -eux
|
2018-09-21 04:31:47 +00:00
|
|
|
|
2021-11-16 14:28:27 +00:00
|
|
|
# Verify the formal side of things, lldb should really depend on its Python bits.
|
2022-02-15 07:15:50 +00:00
|
|
|
rpm -q --requires "$LLDB_PACKAGE" | grep python3-lldb
|
2018-09-21 04:31:47 +00:00
|
|
|
|
2021-11-16 14:28:27 +00:00
|
|
|
# Then verify things actually works.
|
2021-03-02 10:39:53 +00:00
|
|
|
g++ -g test.cpp
|
2018-09-21 04:31:47 +00:00
|
|
|
|
2021-03-02 13:55:51 +00:00
|
|
|
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 {' \
|
2018-09-21 04:31:47 +00:00
|
|
|
-e '\[0\] = 2' \
|
2021-03-02 13:55:51 +00:00
|
|
|
lldb.log \
|
2018-09-21 04:31:47 +00:00
|
|
|
| wc -l` -eq 2
|
2021-03-02 19:54:50 +00:00
|
|
|
|
|
|
|
rm lldb.log
|