Max Brunsfeld
60eacbc7ff
Delete .dot file after successfully generating SVGs
2018-03-05 09:35:12 -08:00
Phil Turnbull
bc192d95ca
Build fuzzer in 'halt' and 'recover' modes
...
Build each language fuzzer in two modes (halt_on_error=true and
halt_on_error=false) and use different timeouts for each fuzzer.
Also merge the run-fuzzer and reproduce scripts so they use identical
values of ASAN_OPTIONS/UBSAN_OPTIONS/etc0
2018-03-02 10:13:13 -08:00
Max Brunsfeld
777aca25c8
Fix errors in test script
2017-12-28 15:49:34 -08:00
Max Brunsfeld
6304a3bcd1
Make it easier to run tests with debug graphs
2017-12-28 12:41:23 -08:00
Phil Turnbull
c57f8ae0a6
Allow fuzzer CFLAGS to be overridden by envrionment
2017-09-14 11:04:19 -04:00
Max Brunsfeld
05066e492e
Fetch fixture grammars on appveyor
2017-08-08 14:47:43 -07:00
Max Brunsfeld
37836f593a
Run tests on windows
2017-08-08 14:07:23 -07:00
Max Brunsfeld
b03e9a636f
Fix configure batch script and add test batch script
2017-08-07 15:36:14 -07:00
Max Brunsfeld
2854983342
Add windows configure script
2017-08-07 12:43:24 -07:00
Max Brunsfeld
e5c3bf742d
Update fixture grammars
2017-08-03 16:32:39 -07:00
Max Brunsfeld
09f4796f6b
Get tests passing w/ new alias API
2017-08-01 14:35:34 -07:00
Max Brunsfeld
0d6ab65a97
Use branches of grammar repos that use new scanner API
2017-07-17 17:35:30 -07:00
Max Brunsfeld
9a04231ab1
Remove length restriction in external scanner serialization API
2017-07-17 17:12:36 -07:00
Max Brunsfeld
34279257f9
Merge pull request #91 from tree-sitter/libFuzzer
...
Add support for fuzzing with libFuzzer
2017-07-17 11:43:01 -07:00
Phil Turnbull
153c2033df
Update list of test grammars
2017-07-14 13:50:42 -07:00
Phil Turnbull
798ef5e4dc
Add libFuzzer support
...
This adds support for fuzzing tree-sitter grammars with libFuzzer. This
currently only works on Linux because of linking issues on macOS. Breifly, the
AddressSanitizer library is dynamically linked into the fuzzer binary and
cannot be found at runtime if built with a compiler that wasn't provided by
Xcode(?). The runtime library is statically linked on Linux so this isn't a
problem.
2017-07-14 13:50:41 -07:00
Max Brunsfeld
21bc50377e
Run make with the right target when building benchmarks on CI
2017-07-06 12:36:57 -07:00
Max Brunsfeld
2b73a30fba
Build benchmarks in release mode
2017-07-06 11:49:32 -07:00
Max Brunsfeld
a64db98218
Rename lib.sh -> scan-build.sh
2017-07-06 10:32:41 -07:00
Max Brunsfeld
78333b70c0
Build benchmarks with scan-build on CI
2017-07-06 10:22:14 -07:00
Max Brunsfeld
c53f9bcbd9
Build benchmarks in Test mode for now
2017-07-05 17:27:50 -07:00
Max Brunsfeld
17bc3dfaf7
Add a benchmark command
...
This command measures the speed of parsing each grammar's examples.
It also uses each grammar to parse all of the *other* grammars' examples
in order to measure error recovery performance with fairly large files.
2017-07-05 14:14:38 -07:00
Max Brunsfeld
ca4db76bb1
Override LINK to call clang++ w/ -fsanitize=address in test script
...
Signed-off-by: Philip Turnbull <philipturnbull@github.com>
2017-06-27 15:44:58 -07:00
Max Brunsfeld
513edec7c1
Merge pull request #77 from philipturnbull/scan-build-fixes
...
Fix errors found by scan-build
2017-06-20 10:15:20 -07:00
Phil Turnbull
7bdb0917d3
Revert "Add standalone scan-build script"
...
This reverts commit 9135d14b81 .
2017-06-19 10:24:40 -04:00
Phil Turnbull
1b9e78add2
Fix formatting and use '-n'
2017-06-19 10:24:08 -04:00
Phil Turnbull
e9bf794cd9
Remove unneeded build step
2017-06-19 10:23:54 -04:00
Phil Turnbull
ee3caafe7b
Use -j2 on the CI boxes
...
The travis-ci trusty container has two cores.
2017-06-16 15:16:40 -04:00
Phil Turnbull
9135d14b81
Add standalone scan-build script
...
For running scan-build outside of CI, e.g. `./script/scan-build -j4`
2017-06-16 15:16:40 -04:00
Phil Turnbull
7171664eec
Disable DeadStores scan-build checker
...
This silences a true, but minor, bug in the external json-parser:
externals/json-parser/json.c:653:37: warning: Value stored to 'b' is never read
b = 0;
^ ~
2017-06-16 15:16:40 -04:00
Phil Turnbull
97cdd8b738
Run scan-build during CI
...
This bumps the travis-ci container image to Trusty so that we have a version of
clang that includes proper support for C++14.
2017-06-16 15:16:29 -04:00
Max Brunsfeld
97bcc86a3a
Use master version of all fixture grammars
2017-03-19 22:19:35 -07:00
Max Brunsfeld
24878277e9
Use new version of python grammar in tests
2017-03-17 17:05:02 -07:00
Max Brunsfeld
6dc0ff359d
Rename spec -> test
...
'Test' is a lot more straightforward of a name.
2017-03-09 20:40:01 -08:00
Max Brunsfeld
9b930748cf
Test against a specific version of the javascript grammar for now
2017-02-07 17:49:31 -08:00
Max Brunsfeld
5c72c1e28b
Fetch python grammar as part of CI
2016-12-20 13:06:16 -08:00
Max Brunsfeld
cfef576a9f
Remove google perftools dependency
2016-11-30 17:23:44 -08:00
Max Brunsfeld
c0fb0c12a8
Don't use boost regex lib on travis
2016-11-18 14:46:53 -08:00
Max Brunsfeld
7968da672f
Upgrade bandit test framework
2016-11-18 13:50:34 -08:00
Max Brunsfeld
4106ecda43
Remove logic for recovering from OOM
2016-11-04 09:18:38 -07:00
Max Brunsfeld
883a7c8266
In script/test, style SVG graphs for readability
2016-08-30 13:02:27 -07:00
Max Brunsfeld
04de7cc208
Make script/test -S flag work when there are assertion failures
2016-08-29 12:37:58 -07:00
Max Brunsfeld
607366a422
Add test script flag for piping stderr to dot to make an svg
2016-08-29 11:51:47 -07:00
Max Brunsfeld
e1a3a1daeb
Import error corpus entries from grammar repos
...
Now that error recovery requires no input for the grammar author, it shouldn't
be tested in the individual grammar repos.
2016-05-28 20:12:02 -07:00
Max Brunsfeld
8bfaa5ffc3
Add directory argument to format script
2016-04-11 23:11:37 -07:00
Max Brunsfeld
5a595d6e70
Clone fixture grammars from new tree-sitter org
2016-02-12 12:47:38 -08:00
Max Brunsfeld
a302ee822a
Add swift runtime memory memory leak to valgrind suppressions
2016-02-02 13:37:23 -08:00
Max Brunsfeld
2da716d659
Update help message for test script
2016-02-02 12:31:13 -08:00
Max Brunsfeld
b1f4b046f5
Test script - allow valgrind to be run w/o the leak check
2016-01-29 17:03:35 -08:00
Max Brunsfeld
ca6dfb81d9
Run valgrind with full leak check
2016-01-28 21:18:41 -08:00
Max Brunsfeld
1543a6c7b0
Handle allocation failures when instantiating documents
2016-01-18 11:32:10 -08:00
Max Brunsfeld
87316f22f3
Wrap all calls to malloc and friends
2016-01-15 15:27:50 -08:00
Max Brunsfeld
04afda2e66
Drop extensions from script filenames
2016-01-15 13:01:19 -08:00
Max Brunsfeld
3bc7045e05
Fix fixtures path in fetch_languages script
2016-01-15 11:46:13 -08:00
Max Brunsfeld
9cc24f3e28
Make test script fail properly
2016-01-15 11:35:35 -08:00
Max Brunsfeld
0f7dbea9a3
Unify test targets, use externally defined languages as fixtures
2016-01-15 11:19:24 -08:00
Max Brunsfeld
4a5deda071
Add tests that compile a grammar and use its parser
2016-01-14 10:11:30 -08:00
Max Brunsfeld
51998ac5bb
In specs, seed random number generator with clock time by default
2015-12-10 21:01:27 -08:00
joshvera
3d9a44d880
Calculate the column and offset separately in TSNode
2015-11-25 13:36:19 -05:00
Max Brunsfeld
673ca411b1
Fix lint errors
2015-09-19 13:19:49 -07:00
Max Brunsfeld
7a71d91fb6
Add configure flag for excluding libprofiler
2015-02-16 22:09:30 -08:00
Max Brunsfeld
d51d0aa5d5
Add linker flag and test script for google-perftools
2015-02-15 21:23:17 -08:00
Max Brunsfeld
5dc08ccce9
Include names of in-progress rules in shift/reduce conflicts
2014-11-05 18:39:50 -08:00
Max Brunsfeld
3649ddb77a
Move valgrind suppressions file into scripts directory
2014-09-10 18:25:09 -07:00
Max Brunsfeld
2e7ffb4d14
Tweak auto-format settings
...
Prefer lines that exceed 80 characters by a small margin to
line breaks in argument lists
2014-09-09 13:15:40 -07:00
Max Brunsfeld
66a50d4e4a
Add separate debug and release configurations in gyp files
...
Disable optimizations in debug mode. Use that for specs.
2014-09-02 22:13:53 -07:00
Max Brunsfeld
1cc64cd95a
Don't use eval in test scripts
2014-08-31 00:40:50 -07:00
Max Brunsfeld
3ea9f709a4
Highlight test filenames when running valgrind
2014-08-30 21:39:03 -07:00
Max Brunsfeld
ccbf4fb5da
Make valgrind part of test scripts
2014-08-30 19:57:15 -07:00
Max Brunsfeld
f1eb9a92a3
Separate .gyp files for libs and tests
2014-07-25 12:55:00 -07:00
Max Brunsfeld
18e918b704
Fix lint errors in public compiler header
2014-07-22 09:03:33 -07:00
Max Brunsfeld
cfd4d423a9
Update lint script to check whitespace
2014-07-21 13:22:00 -07:00
Max Brunsfeld
98cc2f2264
Auto-format all source code with clang-format
2014-07-21 13:20:00 -07:00
Max Brunsfeld
b8d8386e63
Add format script
2014-07-20 22:12:09 -07:00
Max Brunsfeld
02904085c2
Make separate helper scripts for testing compiler and runtime
2014-07-17 22:20:14 -07:00
Max Brunsfeld
4d17da159f
repo name tree_sitter -> tree-sitter
2014-07-13 22:14:03 -07:00
Max Brunsfeld
e953dbaa17
Update submodules recursively in configure script
2014-06-16 13:27:38 -07:00
Max Brunsfeld
21c259df9c
Clean up lint errors
2014-06-09 21:14:38 -07:00
Max Brunsfeld
b4a34dd7c2
Add valgrind helper script
2014-06-09 13:24:30 -07:00
Max Brunsfeld
e8760eee34
Don't check in cpplint
2014-05-09 16:32:57 -07:00
Max Brunsfeld
0d763d229d
cpplint
2014-04-28 21:46:43 -07:00
Max Brunsfeld
c53c0dfe37
Record running time in test script
2014-04-28 08:11:48 -07:00
Max Brunsfeld
a12cd49585
Fix configure script
2014-04-16 21:00:27 -07:00
Max Brunsfeld
02f3fe2b04
Link against libboost_regex correctly on travis
2014-04-11 18:33:53 -07:00
Max Brunsfeld
a79a7435de
Remove remaining trailing whitespace from generated c code
2014-03-29 19:21:42 -07:00
Max Brunsfeld
671f1a1ddc
Start work on javascript grammar
2014-03-24 09:14:29 -07:00
Max Brunsfeld
3aaa08b948
Fix some egregiously long lines
2014-03-09 23:58:25 -07:00
Max Brunsfeld
632a88c8ef
Remove some C-style casts
2014-03-09 22:55:48 -07:00
Max Brunsfeld
de5deeeb69
Remove spurious semicolons
2014-03-09 22:24:52 -07:00
Max Brunsfeld
31a58bc7e4
Make include guards pass cpplint
2014-03-09 22:05:24 -07:00
Max Brunsfeld
c0add4d017
Add cpplint, lint script
2014-03-09 21:37:03 -07:00
Max Brunsfeld
39aa0ccc91
Add script to trim whitespace
2014-03-09 19:49:35 -07:00
Max Brunsfeld
7ff690371e
Add clean script
...
Also rename other scripts
2014-03-03 20:10:48 -08:00
Max Brunsfeld
0815db1d23
Add c++11 flag to gyp file
2014-03-03 19:49:22 -08:00
Max Brunsfeld
67e008d15d
Generate makefile with gyp
...
- Add gyp submodule
- Add script to generate makefile with gyp
- Switch travis build to do this
2014-03-03 13:20:44 -08:00