File: run_tests.sh

package info (click to toggle)
indexed-gzip 0.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 412 kB
  • sloc: ansic: 1,495; python: 601; makefile: 28
file content (34 lines) | stat: -rwxr-xr-x 913 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#
# This script is called via .travis.yml. It is not intended
# to be called in any other manner.
#

# Get the path to this script
script_dir=`dirname $0`
pushd $script_dir > /dev/null
script_dir=`pwd`
pushd .. > /dev/null
igzip_dir=`pwd`
popd     > /dev/null
popd     > /dev/null

# 32 bit platform test has to be run in a docker container
if [ "$TEST_SUITE" == "32bittest" ]; then

    PYTHON_VERSION=$(python --version 2>&1)
    PYTHON_VERSION=${PYTHON_VERSION#* }

    docker run --rm \
           -e PYTHON_VERSION="$PYTHON_VERSION" \
           -e INDEXED_GZIP_TESTING=1 \
           -v $igzip_dir:/indexed_gzip \
           32bit/ubuntu:16.04 \
           /indexed_gzip/.ci/run_32bit_test.sh

# Run standard test suite
else
    export INDEXED_GZIP_TESTING=1
    python setup.py develop;
    pytest -v -s -m "$TEST_SUITE" -k "$TEST_PATTERN" --nelems "$NELEMS" --niters "$NITERS" $EXTRA_ARGS;
fi