lldb/tests/python-embedded-interpreter/test.sh
Jesus Checa Hidalgo 6b3303e41c tests: split tests/python-embedded-interpreter
tests/python-embedded-interpreter now only does a sanity test on lldb,
plus checks that lldb rpm mas the correct dependency on python3-lldb
std::vector test moved to tests/lldb-std-vector-prettyprint.
2022-07-04 19:42:32 +02:00

20 lines
402 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 9' \
-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