forked from public/pysim
tests: move pySim-prog test and its data into a sub directory
We currently have the shell script that performs the test in the tests directory and the related data in pysim-testdata directory. This is confusing, let's have evrything in a dedicated sub directory Change-Id: Ic995a7f600d164fc0be3c2eb8255dbe043429bea Related: OS#6531
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
export PYTHONUNBUFFERED=1
|
export PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
if [ ! -d "./pysim-testdata/" ] ; then
|
if [ ! -d "./tests/" ] ; then
|
||||||
echo "###############################################"
|
echo "###############################################"
|
||||||
echo "Please call from pySim-prog top directory"
|
echo "Please call from pySim-prog top directory"
|
||||||
echo "###############################################"
|
echo "###############################################"
|
||||||
@@ -29,10 +29,10 @@ case "$JOB_TYPE" in
|
|||||||
# Execute automatically discovered unit tests first
|
# Execute automatically discovered unit tests first
|
||||||
python -m unittest discover -v -s tests/unittests
|
python -m unittest discover -v -s tests/unittests
|
||||||
|
|
||||||
# Run the test with physical cards
|
# Run pySim-prog integration tests (requires physical cards)
|
||||||
cd pysim-testdata
|
cd tests/pySim-prog_test/
|
||||||
../tests/pySim-prog_test.sh
|
./pySim-prog_test.sh
|
||||||
cd ..
|
cd ../../
|
||||||
|
|
||||||
# Run pySim-trace test
|
# Run pySim-trace test
|
||||||
tests/pySim-trace_test/pySim-trace_test.sh
|
tests/pySim-trace_test/pySim-trace_test.sh
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
PYSIM_PROG=../pySim-prog.py
|
PYSIM_PROG=../../pySim-prog.py
|
||||||
PYSIM_READ=../pySim-read.py
|
PYSIM_READ=../../pySim-read.py
|
||||||
TEMPFILE=temp.tmp
|
TEMPFILE=temp.tmp
|
||||||
PYTHON=python3
|
PYTHON=python3
|
||||||
|
|
||||||
Reference in New Issue
Block a user