Annotation of hatari/tests/Makefile, revision 1.1

1.1     ! root        1: # Makefile for testing Hatari features
        !             2: 
        !             3: # Include settings
        !             4: include ../Makefile.cnf
        !             5: 
        !             6: 
        !             7: VALGRIND_OPTS = --leak-check=full --leak-resolution=high \
        !             8:   --free-fill=0 --error-exitcode=1
        !             9: 
        !            10: # Additional include directories:
        !            11: INCFLAGS = -I.. -I../src/includes -I../src/uae-cpu \
        !            12:   -I../src/debug -I../src/falcon
        !            13: 
        !            14: # Set extra flags passed to the compiler
        !            15: CFLAGS += $(INCFLAGS) $(SDL_CFLAGS) $(LDFLAGS)
        !            16: 
        !            17: 
        !            18: TESTS = test-symbols test-evaluate test-breakcond
        !            19: 
        !            20: all: $(TESTS)
        !            21: 
        !            22: # To do mudflap checks, use:
        !            23: #      make clean; make MUDFLAP=1 mudflap
        !            24: #
        !            25: # "-check-initialization" can be used here because these tests don't
        !            26: # handle data initialized in external libraries (like Hatari uses
        !            27: # SDL surface structs initialized by SDL).
        !            28: # 
        !            29: # "-print-leaks" can be used because these tests don't utilize external
        !            30: # libraries which leave their resources behind on exit (like SDL audio
        !            31: # and X locale stuff).
        !            32: mudflap: $(TESTS)
        !            33:        export MUDFLAP_OPTIONS="-viol-gdb -collect-stats -internal-checking -print-leaks -backtrace=8 -check-initialization -wipe-stack -wipe-heap"; \
        !            34:        for test in $^; do ./$$test; echo "Press <Enter>"; read; done
        !            35: 
        !            36: valgrind: $(TESTS)
        !            37:        for test in $^; do valgrind $(VALGRIND_OPTS) ./$$test; done
        !            38: 
        !            39: 
        !            40: test-symbols: test-symbols.c ../src/debug/symbols.c
        !            41:        $(CC) $(CFLAGS) -o $@ $^
        !            42: 
        !            43: test-evaluate: test-evaluate.c ../src/debug/evaluate.c \
        !            44:                ../src/debug/debugcpu.c ../src/falcon/dsp.c \
        !            45:                ../src/debug/symbols.c ../src/str.c \
        !            46:                ../src/debug/breakcond.c test-dummies.c
        !            47:        $(CC) $(CFLAGS) -o $@ $^
        !            48: 
        !            49: test-breakcond: test-breakcond.c ../src/debug/breakcond.c \
        !            50:                ../src/debug/debugcpu.c ../src/falcon/dsp.c \
        !            51:                ../src/debug/symbols.c ../src/str.c \
        !            52:                ../src/debug/evaluate.c test-dummies.c
        !            53:        $(CC) $(CFLAGS) -o $@ $^
        !            54: 
        !            55: 
        !            56: clean:
        !            57:        $(RM) *.o $(TESTS)
        !            58: 
        !            59: distclean: clean
        !            60:        $(RM) *~ *.bak *.orig

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.