mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 19:08:35 +03:00
pySim-trace has no test coverage yet. Let's use a script to run a GSAMTAP pcacp through it and check that no exceptions are raised. Related: OS#6094 Change-Id: Icfabfa7c59968021eef0399991bd05b92467d8d2
21 lines
545 B
Bash
Executable File
21 lines
545 B
Bash
Executable File
#/bin/bash
|
|
|
|
PYSIM_TRACE=../pySim-trace.py
|
|
GSMTAP_TRACE=pySim-trace_test_gsmtap.pcapng
|
|
|
|
echo "pySim-trace_test - a test program to test pySim-trace.py"
|
|
echo "========================================================"
|
|
|
|
$PYSIM_TRACE gsmtap-pyshark-pcap -f $GSMTAP_TRACE
|
|
if [ $? -ne 0 ]; then
|
|
echo ""
|
|
echo "========================================================"
|
|
echo "Testrun with $GSMTAP_TRACE failed."
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "========================================================"
|
|
echo "trace parsed without problems -- everything ok!"
|
|
|