couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaus Trainer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1793) JavaScript Test Runner Fails on master
Date Sun, 12 May 2013 23:03:17 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655670#comment-13655670
] 

Klaus Trainer commented on COUCHDB-1793:
----------------------------------------

I can't think of any UNIX or UNIX-like OS where wc or grep wouldn't be available by default.
(At least no system where people would run CouchDB on.)

I did a quick research on that matter, and found out that both grep and wc have been part
of the POSIX specification for quite a while. See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html
and http://pubs.opengroup.org/onlinepubs/9699919799/utilities/wc.html for reference.

I also checked the "History"-section of the wc and grep utilities each on my OpenBSD 5.2 machine,
where I found the following statements, respectively:
* "A wc utility appeared in version 1 AT&T UNIX."
* "The grep command first appeared in Version 6 AT&T UNIX."

Apparently, wc has been around for a longer time than compared to grep. (I don't think that
makes of any significant difference in our case, though.)

Since wc is simpler, both in its usage here and in general, I'd go for wc.
                
> JavaScript Test Runner Fails on master
> --------------------------------------
>
>                 Key: COUCHDB-1793
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1793
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Klaus Trainer
>            Assignee: Wendall Cada
>         Attachments: 0001-Remove-unnecessary-bashism-from-test-runner.patch
>
>
> Due to a bashism (i.e. use of an array) in line number 100 of the JavaScript test runner
('test/javascript/run.tpl'), the tests won't run on platforms where '/bin/sh' isn't linked
e.g. to '/bin/bash'.
> Here's the error message:
> {{Running javascript tests ...}}
> {{./test/javascript/run: 100: ./test/javascript/run: Syntax error: "(" unexpected (expecting
"fi")}}
> {{make: *** [check-js] Error 2}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message