tests/run-tests: Prepare test card before executing the tests
All tests need a physical card to be inserted in a reader. This card may have a different IMSI and/or ICCID id set than the one that is expected by the tests. Since sysmo-usim-tool.sjs1.py unconditionally displays IMSI and ICCID we find those parameters in every .out file. In order to run the unit-tests without changing the .out files very often or having to manually prepare a test card we should write the expected IMSI and ICCID before each testsuite is executed. - Add a script to the testsuite that prepares the testcard, run this script from run-tests before the actual tests are executed. Change-Id: I470f4f7d5facab277b6e78252bac7cc4d1fbc6bb Related: OS#3376
This commit is contained in:
parent
12f0d25693
commit
75342b86d1
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./test-data
|
||||
|
||||
echo "================ PREPARING TEST CARD ================"
|
||||
$TOOL -a $ADMPIN -I $ICCID
|
||||
$TOOL -a $ADMPIN -J $IMSI
|
||||
echo "================ TEST CARD PREPARED ================="
|
||||
echo ""
|
|
@ -11,6 +11,9 @@ fi
|
|||
TMP=`tempfile`
|
||||
NUM_FAIL=0
|
||||
|
||||
# prepare test card
|
||||
./prepare
|
||||
|
||||
for T in $TESTS; do
|
||||
echo "==> Executing Testcase $T"
|
||||
EXPOUT=${T%%.sh}.out
|
||||
|
|
Loading…
Reference in New Issue