MMD Test Suite

1 view
Skip to first unread message

cringer

unread,
Oct 13, 2009, 6:27:00 AM10/13/09
to MultiMarkdown Discussion List
Hello,

is MMD installed correctly on my system? I can not run the test suite.

MMD is installed in the following:
/Library/Application\ Support/MultiMarkdown

When I run

./MarkdownTest.pl --script /Library/Application\ Support/MultiMarkdown/
bin/MultiMarkdown.pl --tidy

it says: -bash: ./MarkdownTest.pl: No such file or directory

and when I run
/Users/chd/Desktop/Inbox/MMD-Test-Suite/MarkdownTest.pl

it says: 'Tests' is not a directory.


I use MMD with scrivener and it works for the preinstalled .xslt , but
I needed a customized one, which did not work. Do I have to install
the newest release of MDD into scrivener directly?

Best regards,
Chris

Jerry Krinock

unread,
Oct 13, 2009, 1:45:33 PM10/13/09
to MultiMarkdown Discussion List

On 2009 Oct 13, at 03:27, cringer wrote:

> MMD is installed in the following:
> /Library/Application\ Support/MultiMarkdown
>
> When I run
>
> ./MarkdownTest.pl --script /Library/Application\ Support/
> MultiMarkdown/
> bin/MultiMarkdown.pl --tidy
>
> it says: -bash: ./MarkdownTest.pl: No such file or directory

What is the working directory from which you run that command?

If you don't know what a 'working directory' is, let us know and
someone will give you Unix Newbie Advice.

Jerry Krinock

unread,
Oct 13, 2009, 3:13:16 PM10/13/09
to MultiMarkdown Discussion List

On 2009 Oct 13, at 11:07, Christian Dietrich wrote:

> I know now how to change and verify the working directory("cd" and
> "pwd").

OK, then. You should understand that

> When I run
>
> ./MarkdownTest.pl --script /Library/Application\ Support/
> MultiMarkdown/
> bin/MultiMarkdown.pl --tidy

your command is looking for a file named "MarkdownTest.pl" in the
current working directory

> it says: -bash: ./MarkdownTest.pl: No such file or directory


and saying that there is no such file or directory in the current
working directory. Is there?

Christian Dietrich

unread,
Oct 13, 2009, 3:36:49 PM10/13/09
to MultiMarkdown Discussion List
I am now in the Working Directory with the MarkdownTest.pl and can run
the test now.

I had another mistake in the path-name (mind the gap):
WRONG: ~/Library/Application \Support/...
RIGHT: ~/Library/Application\ Support/...

Now all the tests fail as the path name isn´t resolved properly:
"Tidyness ... sh: /Users/chd/Library/Application: No such file or
directory
FAILED"

But now I am out of ideas...

Jerry Krinock

unread,
Oct 13, 2009, 7:46:09 PM10/13/09
to MultiMarkdown Discussion List

On 2009 Oct 13, at 12:36, Christian Dietrich wrote:

>
> I am now in the Working Directory with the MarkdownTest.pl and can run
> the test now.
>
> I had another mistake in the path-name (mind the gap):
> WRONG: ~/Library/Application \Support/...
> RIGHT: ~/Library/Application\ Support/...
>
> Now all the tests fail as the path name isn´t resolved properly:
> "Tidyness ... sh: /Users/chd/Library/Application: No such file or
> directory
> FAILED"

Well, you see it's the same problem popping up in a different place.
Notice that it's looking for a path that ends in Application. Notice
that the next character should be a space, and the next word should be
"Support", etc., etc. Aha!

I believe that in your command,

./MarkdownTest.pl --script /Library/Application\ Support/MultiMarkdown/
bin/MultiMarkdown.pl --tidy

You need to quote the path instead of using a backslash

./MarkdownTest.pl --script '/Library/Application Support/MultiMarkdown/
bin/MultiMarkdown.pl' --tidy

If that doesn't work, try this:

./MarkdownTest.pl '--script /Library/Application Support/MultiMarkdown/
bin/MultiMarkdown.pl' --tidy

Or try " instead of '.

Reply all
Reply to author
Forward
0 new messages