sipb-www
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f99a9a8
)
Search $PATH for "validate", since the test does.
author
Amitai Schlair
<schmonz-web-ikiwiki@schmonz.com>
Wed, 1 Oct 2014 19:06:24 +0000
(15:06 -0400)
committer
Amitai Schlair
<schmonz-web-ikiwiki@schmonz.com>
Wed, 1 Oct 2014 19:06:24 +0000
(15:06 -0400)
"validate" is a very generic command name, and it validates against
an old standard, so the value of this test is questionable.
t/html.t
patch
|
blob
|
history
diff --git
a/t/html.t
b/t/html.t
index 3faf44154203aaa88a0bef7e1ad152311497747b..84c561fa87e380ca63c6cf902e0f87192f5892c5 100755
(executable)
--- a/
t/html.t
+++ b/
t/html.t
@@
-7,8
+7,8
@@
my @pages;
BEGIN {
@pages=qw(index features news plugins/map security);
- if (
! -x "/usr/bin/validate"
) {
- plan skip_all => "
/usr/bin/validate
html validator not present";
+ if (
system("command -v validate >/dev/null") != 0
) {
+ plan skip_all => "html validator not present";
}
else {
plan(tests => int @pages + 2);