Skip to content
Snippets Groups Projects
Commit f1e24521 authored by Kilian Payer's avatar Kilian Payer
Browse files

fix testrunner and add make targets

parent af96b7df
No related branches found
No related tags found
No related merge requests found
Makefile 100644 → 100755
CC := clang CC := clang
CCFLAGS := -Wall -Wextra -Werror -pedantic -std=c17 CCFLAGS := -Wall -Wextra -Werror -pedantic -std=c17
ASSIGNMENT := a2 ASSIGNMENT := ass2
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
.PHONY: clean bin run test help .PHONY: clean bin run test help
...@@ -20,10 +20,20 @@ run: all ## runs the project with default config ...@@ -20,10 +20,20 @@ run: all ## runs the project with default config
@echo "[\033[36mINFO\033[0m] Executing binary..." @echo "[\033[36mINFO\033[0m] Executing binary..."
./$(ASSIGNMENT) ./$(ASSIGNMENT)
test: all ## runs public testcases on the project test: all ## runs public testcases on the project compares output line by line
@echo "[\033[36mINFO\033[0m] Executing testrunner..." @echo "[\033[36mINFO\033[0m] Executing testrunner..."
./testrunner -c test.toml ./testrunner -c test.toml
testbychar: all ## runs public testcases on the project compares output char by char
@echo "[\033[36mINFO\033[0m] Executing testrunner..."
./testrunner -c test.toml -m char
testbyword: all ## runs public testcases on the project compares output word by word
@echo "[\033[36mINFO\033[0m] Executing testrunner..."
./testrunner -c test.toml -m word
testprint: all ## runs public testcases on the project compares output line by line, prints to terminal
@echo "[\033[36mINFO\033[0m] Executing testrunner..."
./testrunner -c test.toml -v
help: ## prints the help text help: ## prints the help text
@echo "Usage: make \033[36m<TARGET>\033[0m" @echo "Usage: make \033[36m<TARGET>\033[0m"
@echo "Available targets:" @echo "Available targets:"
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment