Phase 10: Audit engine reliability and strengthen lifecycle regression tests
This commit is contained in:
parent
4eb2080933
commit
8dd96d3cc5
13 changed files with 394 additions and 5 deletions
16
Makefile
16
Makefile
|
|
@ -241,3 +241,19 @@ test-recovery: $(BUILD_DIR)/test_recovery
|
|||
./$(BUILD_DIR)/test_recovery
|
||||
|
||||
-include $(BUILD_DIR)/tests/integration/test_performance.d $(BUILD_DIR)/tests/integration/test_recovery.d
|
||||
|
||||
# Linux/GNU-compatible linker test; no instrumentation in production objects.
|
||||
$(BUILD_DIR)/test_reliability: $(BUILD_DIR)/tests/integration/test_reliability.o $(BUILD_DIR)/libxtc.a
|
||||
$(CC) $(LDFLAGS) -o $@ $^ -lm -Wl,--wrap=malloc,--wrap=calloc,--wrap=realloc,--wrap=free
|
||||
|
||||
.PHONY: test-reliability test-sanitize analyze
|
||||
test-reliability: test $(BUILD_DIR)/test_reliability
|
||||
./$(BUILD_DIR)/test_reliability
|
||||
|
||||
test-sanitize:
|
||||
ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 UBSAN_OPTIONS=halt_on_error=1 $(MAKE) BUILD_DIR="$(BUILD_DIR)/sanitize" CC=clang CFLAGS="-O1 -g -std=c99 -Wall -Wextra -Wpedantic -Wconversion -Wshadow -Iinclude -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" test-reliability test-recovery
|
||||
|
||||
analyze:
|
||||
$(PYTHON) tools/analyze.py $(CORE_SOURCES)
|
||||
|
||||
-include $(BUILD_DIR)/tests/integration/test_reliability.d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue