Skip to content

Commit

Permalink
make testing multiple interpreters easier
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Mar 28, 2011
1 parent 87750ab commit a9302d6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Readme
@@ -1,9 +1,7 @@
This is a json parser, written in ruby.
It has no dependencies other than ruby.
It is tested using:
ruby 1.8.7 (2010-06-23 patchlevel 299)
ruby 1.9.2p180 (2011-02-18 revision 30909)
rubinius 1.2.3 (1.8.7 release 2011-03-15 JI)
See the file tested-on for a complete list
of ruby interpreters used for testing.

This library is intended to be "vendored".
It is not a gem; instead, copy okjson.rb
Expand All @@ -24,9 +22,7 @@ Other patches likely won't.

To Test:

$ ./test
$ RUBY=rbx ./test
$ RUBY=/opt/ruby192/bin/ruby ./test
$ ./rubies ruby rbx /opt/ruby192/bin/ruby

(Note: these tests originated at
https://github.com/genki/json
Expand Down
18 changes: 18 additions & 0 deletions rubies
@@ -0,0 +1,18 @@
#!/bin/bash

set -e

try() {
RUBY=$1 ./test >&2
$1 -v
}

{
echo -n "This commit was tested "
date
echo using the following ruby interpreters:

for r in $*
do try $r
done
} >tested-on
5 changes: 5 additions & 0 deletions tested-on
@@ -0,0 +1,5 @@
This commit was tested Mon Mar 28 03:28:59 PDT 2011
using the following ruby interpreters:
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
rubinius 1.2.3 (1.8.7 release 2011-03-15 JI) [x86_64-unknown-linux-gnu]

0 comments on commit a9302d6

Please sign in to comment.