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 35 36 37 38 39 40 41 42 43
|
# Test suite for imediff and git-ime
This directory contains files to test imediff and git-ime.
## Test code used by dh_test and autopkgtest
* `test_unittest_all.py`
* Run a set of test to see its diff logics are valid
* `./_diff23.py` -- test with files (file_a, file_b file_c)
* `./_imediff.py` -- test with imediff in this source.
* `../src/imediff/diff3lib.py` -- doctest
* `../src/imediff/lines2lib.py` -- doctest
## Test codes manually run as you write and update codes
* `./90_local_imediff_tests.sh`
* Run a set of test to see its diff logic are valid
* `./_diff23.py` -- test with files (file_a, file_b file_c)
* `./_imediff.py` -- test with imediff in this source.
* Run a subset of the test normally run by unittest via
`./test_unittest_all.py` without using unittest.
* Python path is adjusted as: `export PYTHONPATH=../src`
* `./90_local_git_ime_tests.sh`
* Run a set of test to see its git ime are valid
* Use local shell code `../usr/bin/git-ime.in`
* `90_local_imediff_unittest.sh`
* Run `./test_unittest_all.py` using of the local python module code.
* `./00_local_imediff.sh`
* Run the local python module code with user provided arguments
* Effectively the same test run by unittest via `./test_unittest_all.py`
* `./00_local_git_ime.sh`
* Run the local shell code `../usr/bin/git-ime` with user provided arguments
* Path is adjusted as: `export PATH=../usr/bin/:$PATH`
These are meant to be executed in this directory.
## NOTE
For Debian package building, dh_auto_test isn't run from here. It looks like a
copy of test/ directory as test and a copy of src/imediff directory as imediff
are created at .pybuild/cpython3_*.*/ where the current directory is moved to.
Notable thing is that when test/ directories are copied, symlinks are copied as files.
|