It is test scripts of chainer and dockerfiles for its test environment.
- CuPy (when GPU mode)
- nvidia-docker
- Docker (>=1.7)
- CUDA 8.0
Run test scripts with options that specify the environment to test.
$ ./run_multi_test.py --base=ubuntu16_py35 --numpy=1.9 --cuda=cuda80 --cudnn=cudnn5-cuda8 --type=gpu
These test scripts create Dockerfile
, make containers, and run appropriate test scripts.
run_test.py
: Build and run test scripts. It includes unit tests with commonly-used environment settings, tests for examples and ones for documents.- Test Scripts:
test.sh
: Chainer unitteststest_example.sh
: Chainer examplestest_prev_example.sh
: Chainer examples from previous version (to test API compatibility)test_doc.sh
: Chainer documentstest_cupy.sh
: CuPy unitteststest_cupy_example.sh
: CuPy examplestest_cupy_doc.sh
: CuPy documents
- Test Scripts:
-
run_install_test.py
: Installation test.- Test Scripts:
build_sdist.sh
: build sdist for Chainertest_install.sh
: install Chainer
- Test Scripts:
-
run_multi_test.py
: Build and run test scripts. It can test all combinations of environment setting; convenient to run tests against specific environment manually.- Test Scripts:
test.sh
: GPU modetest_cpu.sh
: CPU mode
- Test Scripts:
-
run_combination_test.py
: Build and run test scripts. Environment combination (e.g., base operating system, CUDA/cuDNN version, etc.) are randomly determined by--id
; mainly expected for use with CI.- Test Scripts:
test.sh
: GPU modetest_cpu.sh
: CPU mode
- Test Scripts:
-
run_docker_test.py
: Test Dockerfile of Chainer.- Test Scripts: none
-
run_cupy_install_test.py
: CuPy equivalent ofrun_install_test.py
- Test Scripts:
build_sdist_cupy.sh
: build sdist for CuPytest_cupy_install.sh
: install CuPy
- Test Scripts:
-
run_cupy_combination_test.py
: CuPy equivalent ofrun_combination_test.py
- Test Scripts:
test_cupy.sh
- Test Scripts:
Make a multi-configuration project.
In the matrix configuration, define variables (axis) that corresponds to the argument of scripts and kick the script (run_*.py
) with the variable.