Skip to content

Commit

Permalink
Merge branch 'master' into traceback-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
singul4ri7y authored Aug 24, 2024
2 parents 3d28aff + 0fd6a1e commit aa54e0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,18 @@ Flag | Effect
./run-tests -k | Run all tests even if some tests are failing
./run-tests -o gtest | The gtest output format might be easier to read if you are using print statements for debugging.

For convenience, when the test script is run without any parameters, it also runs the linter at the end.
For convenience, when the test script is run without any busted parameters, it also runs the linter at the end.

#### Testing garbage collection

Doing proper GC testing takes longer, so we have a special mode for doing that.
For testing garbage collection more carefully, set the `EXTRACFLAGS`
environment variable to "-DHARDMEMTESTS" for the `run-tests` script. For
example:

```sh
$ EXTRACFLAGS="-DHARDMEMTESTS" ./run-tests
```

### Running the benchmarks suite

Expand Down
5 changes: 3 additions & 2 deletions run-tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# HOW TO USE: This is a wrapper around busted. The command-line arguments are the same.
# HOW TO USE: This is a wrapper around busted. Pass "gc" as the first argument for testing the
# garbage collector. Except for "gc", the command-line arguments are the same of busted
#
# EXAMPLES:
# ./run-tests
Expand All @@ -19,7 +20,7 @@ FLAGS=(--verbose --no-keep-going)

# To speed things up, we tell the C compiler to skip optimizations. (It's OK, the CI still uses -O2)
# Also, add some compiler flags to verify standard compliance.
export CFLAGS='-O0 -std=c99 -Wall -Werror -Wundef -Wno-unused'
export CFLAGS="-O0 -std=c99 -Wall -Werror -Wundef -Wno-unused $EXTRACFLAGS"

if [ "$#" -eq 0 ]; then
if command -v parallel >/dev/null; then
Expand Down

0 comments on commit aa54e0e

Please sign in to comment.