lldb/python-embedded-interpreter/test.sh
Tulio Magno Quites Machado Filho ffe7fa64b2 Update lldb output in LLVM 17.0
There have been a few changes that require to modify the regexes used in
lldb-std-vector-prettyprint and in python-embedded-interpreter.
2023-08-09 19:08:51 -03:00

19 lines
414 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_PACKAGE" | grep python3-lldb
# Sanity test
g++ -g test.cpp
lldb -b -o 'breakpoint set --file test.cpp --line 8' \
-o run -o 'p i' -o 'p f'\
-- a.out | tee lldb.log
test `grep \
-e '(int) \($0 = \)\?1' \
-e '(float) \($1 = \)\?1' \
lldb.log \
| wc -l` -eq 2
rm lldb.log