diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-16 14:41:10 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-16 14:41:10 +0000 |
commit | 0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471 (patch) | |
tree | 5c0d0406aa228d3d547f0293a438e2d49f762d12 /src/testdir/README.txt | |
parent | 6df0f2759d12ec0bc999b2963ecea4387a2bc516 (diff) |
Update runtime files
Diffstat (limited to 'src/testdir/README.txt')
-rw-r--r-- | src/testdir/README.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/testdir/README.txt b/src/testdir/README.txt index d3f11b23ee..22db398051 100644 --- a/src/testdir/README.txt +++ b/src/testdir/README.txt @@ -58,3 +58,45 @@ feature. These cannot use the "assert" functions, therefore they consist of a They modify the file and the result gets writtein in the test.out file. This is then compared with the .ok file. If they are equal the test passed. If they differ the test failed. + + +RUNNING THE TESTS: + +To run a single test from the src directory: + + $ make test_<name> + +The below commands should be run from the src/testdir directory. + +To run a single test: + + $ make test_<name>.res + +The file 'messages' contains the messages generated by the test script. If a +test fails, then the test.log file contains the error messages. If all the +tests are successful, then this file will be an empty file. + +To run a single test function from a test script: + + $ ../vim -u NONE -S runtest.vim <test_file>.vim <function_name> + +To run all the tests: + + $ make + +To run the test on MS-Windows using the MSVC nmake: + + > nmake -f Make_dos.mak + +To run the tests with GUI Vim: + + $ make GUI_FLAG=-g + + or + + $ make VIMPROG=../gvim + +To cleanup the temporary files after running the tests: + + $ make clean + |