You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-dev@incubator.apache.org by Lars Corneliussen <me...@lcorneliussen.de> on 2013/04/18 05:29:32 UTC

Re: building from SVN

I have tried to do npanday development on mono a couple of times, but given up every time.

in this case the implementation does the quoting escaping wrong - but i think if you fix that, the next problem will arise:
http://stackoverflow.com/questions/7254509/how-to-escape-single-quotes-in-bash-grep


Am 25.03.2013 um 17:59 schrieb David Durham <da...@gmail.com>:

> Mono JIT compiler version 2.10.8 (tarball Sat Oct  6 23:22:30 UTC 2012)
> Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
> www.mono-project.com
>        TLS:           __thread
>        SIGSEGV:       altstack
>        Notifications: epoll
>        Architecture:  amd64
>        Disabled:      none
>        Misc:          softdebug
>        LLVM:          supported, not enabled.
>        GC:            Included Boehm (with typed GC and Parallel Mark)
> 
> 
> Linux 3.7.10-1-ARCH #1 SMP PREEMPT Thu Feb 28 09:50:17 CET 2013 x86_64 GNU/Linux
> 
> Thanks,
> Dave
> 
> 
> On Fri, Mar 22, 2013 at 8:30 PM, Brett Porter <br...@apache.org> wrote:
>> What operating system and version of Mono are you using? Others may have more input, as most of my NPanday work is done on a Windows virtual machine.
>> 
>> Regards,
>> Brett
>> 
>> On 22/03/2013, at 3:05 PM, David Durham <da...@gmail.com> wrote:
>> 
>>> Hi all,
>>> 
>>> I'm getting the following error when I checkout from SVN and run
>>> bootstrap.sh.  Anyone available to help?  Thanks.
>>> 
>>> 
>>> Running npanday.executable.execution.switches.SwitchFormatTest
>>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.581 sec
>>> Running npanday.executable.execution.QuotingAndEscapingBehaviourTest
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
>>> Running npanday.executable.execution.CommandExecutorTest
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c asdfasdf]
>>> [ERROR]  | /bin/sh: asdfasdf: command not found
>>> [INFO]  +--[ FAILED, result = 127, error output = true]
>>> Result is 127
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c mkdir
>>> /home/ddurham/work/npanday/npanday/components/dotnet-executable/target/test-resources/sampledirectory]
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c mkdir
>>> '/home/ddurham/work/npanday/npanday/components/dotnet-executable/target/test-resources/sample
>>> directory']
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo
>>> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]
>>> [INFO]  | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
>>> [INFO]  +--[ DONE ]
>>> npanday.executable.execution.UnifiedShellCommandExecutor@69a0bc8a
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo x]
>>> [INFO]  | x
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo 'a b']
>>> [INFO]  | a b
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_simple_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo 'a \' b']
>>> [ERROR]  | /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
>>> [ERROR]  | /bin/sh: -c: line 1: syntax error: unexpected end of file
>>> [INFO]  +--[ FAILED, result = 1, error output = true]
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_simple_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c asdfasdf]
>>> [ERROR]  | /bin/sh: asdfasdf: command not found
>>> [INFO]  +--[ FAILED, result = 127, error output = true]
>>> Result is 127
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c mkdir
>>> /home/ddurham/work/npanday/npanday/components/dotnet-executable/target/test-resources/sampledirectory]
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c mkdir
>>> '/home/ddurham/work/npanday/npanday/components/dotnet-executable/target/test-resources/sample
>>> directory']
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo
>>> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]
>>> [INFO]  | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
>>> [INFO]  +--[ DONE ]
>>> npanday.executable.execution.UnifiedShellCommandExecutor@45544e03
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo x]
>>> [INFO]  | x
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo 'a b']
>>> [INFO]  | a b
>>> [INFO]  +--[ DONE ]
>>> Executing with x_unified_custom_quoting
>>> [INFO]  +--[ RUNNING: /bin/sh -c echo 'a \' b']
>>> [ERROR]  | /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
>>> [ERROR]  | /bin/sh: -c: line 1: syntax error: unexpected end of file
>>> [INFO]  +--[ FAILED, result = 1, error output = true]
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Executing with x_unified_custom_quoting
>>> Tests run: 46, Failures: 2, Errors: 2, Skipped: 0, Time elapsed: 0.378
>>> sec <<< FAILURE!
>>> 
>>> Results :
>>> 
>>> Failed tests:
>>> testCommandArgWithSpaces[0](npanday.executable.execution.CommandExecutorTest):
>>> (cmd.standardOut == expected). Values: expected = "a b"
>>> testCommandArgWithSpaces[1](npanday.executable.execution.CommandExecutorTest):
>>> (cmd.standardOut == expected). Values: expected = "a b"
>>> 
>>> Tests in error:
>>> testCommandArgWithEmbeddedSingleQuotes_middle[0](npanday.executable.execution.CommandExecutorTest):
>>> NPANDAY-040-001: Could not execute: Command = /bin/sh -c echo 'a \'
>>> b', Result = 1
>>> testCommandArgWithEmbeddedSingleQuotes_middle[1](npanday.executable.execution.CommandExecutorTest):
>>> NPANDAY-040-001: Could not execute: Command = /bin/sh -c echo 'a \'
>>> b', Result = 1
>>> 
>>> Tests run: 51, Failures: 2, Errors: 2, Skipped: 0
>> 
>> --
>> Brett Porter
>> brett@apache.org
>> http://brettporter.wordpress.com/
>> http://au.linkedin.com/in/brettporter
>> http://twitter.com/brettporter
>> 
>> 
>> 
>> 
>>