Skip to content

Commit 6b34bde

Browse files
committed
improve test script name clarity; expand test docs; cleanup docker run script
1 parent 0fb1922 commit 6b34bde

File tree

4 files changed

+17
-26
lines changed

4 files changed

+17
-26
lines changed

test/README

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
To run the tests across a selection of Ubuntu LTS versions:
1+
There are a few ways to run the python-magic tests
22

3-
docker build -t "python_magic/xenial:latest" -f test/Dockerfile_xenial .
4-
docker build -t "python_magic/bionic:latest" -f test/Dockerfile_bionic .
5-
docker build -t "python_magic/focal:latest" -f test/Dockerfile_focal .
6-
7-
docker run python_magic/xenial:latest
8-
docker run python_magic/bionic:latest
9-
docker run python_magic/focal:latest
3+
1. `pytest` will run the test suite against your default version of python
4+
2. `./test/run_all_versions.py` will run the tests against all installed versions of python.
5+
3. `./test/run_all_docker_test.sh` will run against a variety of different Linux distributions, using docker.
106

test/run_all_docker_test.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
set -e
4+
set -x
5+
6+
ROOT=$(dirname $0)/..
7+
cd $ROOT
8+
9+
for f in test/docker/*; do
10+
H=$(docker build -q -f ${f} .)
11+
docker run --rm $H
12+
done
13+
File renamed without changes.

test_docker.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)