Skip to content

Commit

Permalink
Add Fabrice Bellard's QuickJS to the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
fstirlitz committed Oct 24, 2019
1 parent 6f1568a commit 8022c30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq make gcc
- PACKAGE=duktape-2.4.0; ( cd /opt && wget "https://duktape.org/$PACKAGE.tar.xz" && tar xf "$PACKAGE.tar.xz" && make -C "$PACKAGE/" -f Makefile.cmdline DEFINES=-DDUK_CMDLINE_FILEIO && sudo install -Dm755 "$PACKAGE/duk" /usr/local/bin/duk && rm -rf "$PACKAGE.tar.xz" "$PACKAGE/" )
- PACKAGE=quickjs-2019-09-18; ( cd /opt && wget "https://bellard.org/quickjs/$PACKAGE.tar.xz" && tar xf "$PACKAGE.tar.xz" && make -C "$PACKAGE/" qjs && sudo install -Dm755 "$PACKAGE/qjs" /usr/local/bin/qjs && rm -rf "$PACKAGE.tar.xz" "$PACKAGE/" )
- PACKAGE=Rhino1_7R4_RELEASE; wget https://github.com/mozilla/rhino/archive/$PACKAGE.zip && unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip
- PACKAGE=Rhino1_7R4_RELEASE; echo -e '#!/bin/sh\njava -jar /opt/Rhino1_7R4_RELEASE/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino
- PACKAGE=ringojs-0.9; wget http://ringojs.org/downloads/$PACKAGE.zip && unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip
Expand Down
6 changes: 6 additions & 0 deletions test/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
return (new TextDecoder('utf-8')).decode(readFile(filename));
})(mod, filename);
}

// QuickJS
if (typeof __loadScript !== 'undefined') {
__loadScript(filename);
return root[mod];
}
};

var Spec = load('Spec', './lib/spec')
Expand Down
6 changes: 6 additions & 0 deletions testem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ launchers:
command: cd test; duk runner.js
protocol: tap

quickjs:
command: cd test; qjs --std runner.js
protocol: tap

launch_in_ci:
- node
- ringo
- rhino
- duktape
- quickjs

launch_in_dev:
- Opera
Expand All @@ -44,5 +49,6 @@ launch_in_dev:
- rhino
- rhino1.7R5
- duktape
- quickjs
- nashorn
- d8

0 comments on commit 8022c30

Please sign in to comment.