forked from NeoGeographyToolkit/StereoPipelineTest
-
Notifications
You must be signed in to change notification settings - Fork 0
whigg/StereoPipelineTest
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
StereoPipelineTest is a comprehensive, distributed, and fully automated test suite for the Ames Stereo Pipeline (ASP). It attempts to cover most, if not all, of the ways in which ASP can be used, and the test suite should be updated regularly as more functionality is added to ASP. StereoPipelineTest uses the Python pytest framework to run the tests. This framework needs Python >= 2.6. It can be installed as follows: pip install --user pytest pip install --user pytest-xdist pip install --user pytest-timeout or easy_install --prefix ~/.local -U pytest easy_install --prefix ~/.local -U pytest-xdist easy_install --prefix ~/.local -U pytest-timeout The pytest script ends up being installed either in /usr/bin, or in ~/.local/bin (on Linux) or in ~/Library/Python/2.x/bin (on OSX). In either case, the install directory needs to be added to the path. Usage: pytest -n <num cpu> -q -s -r a --tb=no --config <settings file> > report.txt Here, <num cpu> is how many processes to use. The files conftest.py and test_run.py control the behavior of pytest. A sample settings file is provided, named 'pfe.conf'. This file has: 1. The tests to run (wildcard expressions are accepted). 2. The machines to distribute the runs across (they must be accessible via ssh and share disk storage). 3. How many processes to use on each machine (each process in turn uses multiple threads). 4. Environmental variables, such as the path to the ASP executables. Each test needs to be in its own directory. A test is executed by running the script 'run.sh' in that directory, which should create an output directory named 'run'. A 'gold' directory must be present, which has the reference run. At the conclusion of the run, the result in the 'run' directory is compared to the reference in 'gold'. The test will fail if the produced result is different or absent. If a new test is added, the name of the test directory must be listed in the settings file or match the wildcard pattern already present there. Each test must have a 'run.sh' file, and a validation script, named 'validate.sh'. The 'validate.sh' script must return exit status 0 on successful validation, and non-zero otherwise. When tests fail, which is inevitable when something changes, and the new results are deemed acceptable, the 'gold' reference directory needs to be updated by copying the output from the 'run' directory. If the processes is terminated before all tests finish, the last result for each test can be seen by running bin/check_status.py. == Troubleshooting == If pytest is not found, try running source [BINARY_BUILDER_DIR]/auto_build/utils.sh If the --timeout or -n options are missing, that means pytest-xdist or pytest-timeout were not installed or cannot be found. == Tools == There are a number of utilties in the main and bin/ folders which can be useful for working with tests. These include: runs_to_golds.py: Convert all run folders to gold folders or pass in a single test name to just convert the folders for that test. check_status.py: Tries to print the last run status of each test. Use the "--conf-file" argument to limit the list to non-disabled tests.
About
A comprehensive, distributed, and fully automated test suite for the Ames Stereo Pipeline (ASP)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Shell 86.8%
- Perl 6.5%
- Python 3.7%
- MATLAB 3.0%