#! /bin/sh
set -e
set -x

esprima --help
esprima --version

# Testing all the files for all arguments combinations takes quite a
# while.  Instead, here is a file selection obtained by fair dice roll:
# 	$ find test -name '*.js' | sort --random-sort | head -n 8

esprima test/fixtures/ES6/template-literals/unclosed-nested.js
esprima --comment test/fixtures/ES6/template-literals/unclosed.js
esprima --attachComment test/fixtures/es2017/async/regular-identifier/async-arrow-parameter2.js
esprima --loc test/fixtures/es2017/async/methods/class-static-async-get.js
esprima --range test/fixtures/ES6/destructuring-assignment/array-pattern/nested-assignment.js
esprima --raw test/fixtures/statement/iteration/unterminated-do-while.js
esprima --tokens test/fixtures/JSX/invalid-attribute-value-trail.js
esprima --tokenize test/fixtures/expression/primary/literal/string/migrated_0009.js
