5 Commits
Author SHA1 Message Date
Otavio Pontes 3b37d0192e test: Fix errors reported by shellcheck
Shellcheck is a shell script static analysis tool that looks for errors and
programming pitfalls in shell scripts.
Fixing errors reported by running that tool on bats scripts

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2018-10-31 09:51:42 -07:00
Patrick McCarty 67fd7f572b Fix second manpage test
Using `git diff-index` is problematic for this test, because manpages
regenerated by `make` will have a modified mtime, and `git diff-index`
(being a low-level command) does not refresh the file's mtime stored in
the index. Refreshing the mtime and other stat information stored in the
index is something that happens automatically for high-level "porcelain"
commands.

Since `git diff` will suffice for checking that no uncommitted changes
to manpages exist, use it instead.

Also, use the --exit-code option instead to see the diff output in case
of failure.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-08-17 14:18:35 -07:00
Patrick McCarty 7fa6cd4562 Revert "test: remove manpage test"
I root caused the issue with this test (fixed in the next commit).

This reverts commit 4faee3855f.
2018-08-17 14:18:35 -07:00
Matthew Johnson 4faee3855f test: remove manpage test
This test is unreliable and fails seemingly randomly in our CI.
Restarting our tests always makes the test pass.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-08-15 17:22:51 -07:00
Icarus Sparry 9123c5199a Add test to ensure man pages are up to date
Current idea is to have the manual pages stored in the repo in nroff
format, as well as restructured test format. Users can just use the
nroff. Add test to ensure that the pages match.

Fixes #316
Fixes #425

Make sure that running "make" hasn't fixed the local manual pages but
not checked them in.

Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
2018-04-24 17:37:13 -07:00