Conformance tests fail to run on Windows (but okay on OS X + Linux)
Closed this issue · 4 comments
Affects: RDiscount 2.1.6
Environment: Ruby 1.9.3p392
cd test/MarkdownTest_1.0.3
RUBYLIB=C:/Users/davidf/dev/rdiscount/lib ./MarkdownTest.pl --script='C:/Users/d
avidf/dev/rdiscount/bin/rdiscount' --tidy
rake aborted!
Command failed with status (127): [RUBYLIB=C:/Users/davidf/dev/rdiscount/lib ...
]
It appears that the Rakefile assumes that /
is the path separator character, which is incorrect on Windows.
The standard Ruby tests are unaffected.
There are a few problems:
(1) The rake test:conformance
runs a shell command that Windows doesn't understand.
- Linux:
RUBYLIB=C:/Users/davidf/dev/rdiscount/lib ./MarkdownTest.pl --script='C:/Users/davidf/dev/rdiscount/bin/rdiscount' --tidy
- Windows:
set RUBYLIB=C:/Users/davidf/dev/rdiscount/lib && .\MarkdownTest.pl --script='C:/Users/davidf/dev/rdiscount/bin/rdiscount' --tidy
(2) The MarkdownTest.pl
script itself makes reference to ./Markdown.pl
instead of .\Markdown.pl
.
The former I can fix myself. The latter should be fixed upstream.
@rtomayko: I'm having some trouble locating the original upstream source of the MarkdownTest.pl script.
- The 1.0 version seems to have come from this mailing list post.
- But I'm not sure about the 1.0.3 version or any later version since then. There appears to be a non-authoritative 1.0.3 version on CPAN.
Do you know where MarkdownTest's authoritative upstream repository is?
I think it's sufficient that the conformance tests run on OS X and Linux. I don't anticipate any Windows-specific issues that would be revealed by running them on Windows.
Fixing this issue requires a Windows-compatible version of Markdown.pl
, but no authoritative source for this file could be identified. Therefore it is frozen and this issue cannot be resolved.
As mentioned before, I find it sufficient that the conformance tests (and Markdown.pl
) run successfully on OS X and Linux. I just hope that Markdown.pl
doesn't break later, as there is no way to fix it.
Closing.