Repository navigation
Conversation
|
@gkorland Memory sanitizer disabled: all tests pass now. |
|
|
||
| pytest: | ||
| $(SHOW)MODULE=$(abspath $(TARGET)) ./tests/pytest/tests.sh | ||
| $(SHOW)MODULE=$(abspath $(TARGET)) $(realpath ./tests/pytest/tests.sh) |
There was a problem hiding this comment.
realpath (sadly) still isn't completely portable. Can you use realink -f?
There was a problem hiding this comment.
This in gnu make's realpath, not /bin/realpath. This fortunately works properly.
There was a problem hiding this comment.
@chayim BTW the reason we require realpath here in the first place is because using a relative path causing test.sh not to print program name properly when it detects an error. So this needs to be fixed to (probably something like PROGNAME="$0" at the top).
| if ! command -v redis-server > /dev/null; then | ||
| echo "Cannot find redis-server. Aborting." | ||
| setup_redis_server() { | ||
| if [[ -n $SAN ]]; then |
There was a problem hiding this comment.
${SAN} (etc) makes for safer shell scripts
There was a problem hiding this comment.
So you'd like to wrap any variable reference with {}, even when it's clear we're on the safe side? Wouldn't that hurt readability a bit? BTW I'm more concerned with quoting (in this case bash handles this ok so it can be omited, but in too many cases you do see A=$B).
|
|
||
| TEST=test Run specific test (e.g. test.py:test_name) | ||
| VALGRIND|VG=1 Run with Valgrind | ||
| SAN=type Use LLVM sanitizer (type=address|memory|leak|thread) |
There was a problem hiding this comment.
Do we want to remove leak and thread from the help string in the meantime?
No description provided.