Skip to content
Snippets Groups Projects
Commit b9465933 authored by Thomas Wood's avatar Thomas Wood
Browse files

Fix js test suite for path change, error if t262 missing

parent b81026f9
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,10 @@ jsjsref: generator
$(MAKE) -C jsref
test_init:
git submodule update --init test/test262
npm install
test: generator
test: jsjsref
node_modules/.bin/mocha
.PHONY: publish jsjsref generator test_init test
......@@ -38,12 +38,10 @@ before(function(done) {
walk(test262path)
.pipe(filter.obj(file => file.stats.isFile() && file.path.endsWith(".js")))
.on('readable', function() {
var item;
while((item = this.read())) { tests.push(item.path); }
})
.on('data', (item) => { tests.push(item.path); })
.on('end', function() {
describe("test262", function() {
if (tests.length === 0) { throw new Error("Unable to find any test262 tests (uninitialised git submodule?)") }
tests.forEach(item => {
describe(item, function() {
// Preseed test arguments with safe defaults
......
......@@ -2,7 +2,7 @@
var esprima = require('esprima');
var esprimaToAST = require('../esprima-to-ast.js').esprimaToAST;
var JsInterpreter = require('../generator/tests/jsref/assembly.js');
var JsInterpreter = require('../jsref/assembly.js');
require('./parser.js');
var test262tests = require('./helpers/test262.js');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment