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
|
|
|
|
2022-07-04 17:42:30 +00:00
|
|
|
# Sanity test
|
2021-03-02 10:39:53 +00:00
|
|
|
g++ -g test.cpp
|
2018-09-21 04:31:47 +00:00
|
|
|
|
2022-07-04 17:42:30 +00:00
|
|
|
lldb -b -o 'breakpoint set --file test.cpp --line 9' \
|
|
|
|
-o run -o 'p i' -o 'p f'\
|
|
|
|
-- a.out | tee lldb.log
|
2021-03-02 13:55:51 +00:00
|
|
|
|
|
|
|
test `grep \
|
2022-07-04 17:42:30 +00:00
|
|
|
-e '(int) $0 = 1' \
|
|
|
|
-e '(float) $1 = 1' \
|
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
|