added global test

This commit is contained in:
2018-10-27 16:54:33 +02:00
parent a049d1963d
commit e73d0d9b71
3 changed files with 287 additions and 0 deletions

29
test/Makefile Normal file
View File

@@ -0,0 +1,29 @@
CC=gcc
CFLAG= -c -g -O -DDEBUG -I ../interpreter -o
objects=../interpreter/stack.o \
../interpreter/interpreter/core_methods.o \
../interpreter/interpreter/interpreter.o \
../interpreter/method_dispatcher/method_dispatcher.o \
main.o
all: clean lib $(objects) test
clean:
- rm code.bin
- rm main
lib:
cd ../interpreter && make -s
%.o: %.c
$(CC) $(CFLAG) $@ $<
main: main.o
$(CC) -O -g $(objects) -o main
test: main code.bin
cd ../assembler && make test
valgrind ./main
code.bin:
python3 test.py