Skip to content

Commit

Permalink
docs: fix test documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderbird committed Jan 3, 2022
1 parent 75e0775 commit 38c26e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions Unix/cloc_submodule_test
Submodule cloc_submodule_test added at f64709
15 changes: 9 additions & 6 deletions tests/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ To run the tests:
cd ../Unix
make test

Unless you see a clear error message, all tests have been executed
successfully.

Tests 21 through 24 in t/01_opts.t exercise cloc's ability to work
with git submodules (specifically, to ignore code in these). If
you're working with a git repo clone you will need to update the
you're working with a git repo clone you will need to clone the
submodule via
git submodule init
git submodule update
issued within your cloc working directory to get the tests to pass.
The submodule will populate the directory
tests/inputs/issues/131/cloc_submodule_test/
cd ../Unix
git clone https://github.com/AlDanial/cloc_submodule_test.git
If the directory already exists, then update by
git pull

0 comments on commit 38c26e8

Please sign in to comment.