File: README.md

package info (click to toggle)
jsonnet 0.20.0%2Bds-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 16,776 kB
  • sloc: cpp: 23,318; python: 1,788; javascript: 1,003; ansic: 885; sh: 745; makefile: 194; java: 140
file content (15 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Test programs

Run `./run_tests.sh` to run the full suite and report results.

The tests are executed with very aggressive garbage collection parameters.  A full garbage
collection cycle is run on every allocation.  This means if an object is freed by the GC but still
referenced (because the reference was not from the stack / heap) then the error can be caught in
valgrind.

The output of each test (merging `stdout` and `stderr` with `2>&1`) should match its .golden file.  If a
test has no `.golden` file, the test should return "true".  If a test's name begins with "error." then
its exit code is expected to be 1, otherwise it should be 0.

If a test is changed, and its golden output needs to be updated (e.g. line numbers in stack traces
no-longer match up) then run `./refresh_golden.sh <thetest.jsonnet>`