File: run-esprima

package info (click to toggle)
python-esprima 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,528 kB
  • sloc: javascript: 42,618; python: 5,728; sh: 12; makefile: 3
file content (19 lines) | stat: -rwxr-xr-x 882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /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