Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assignment_2
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esp-ws20
assignment_2
Commits
f1e24521
Commit
f1e24521
authored
Nov 19, 2020
by
Kilian Payer
Browse files
Options
Downloads
Patches
Plain Diff
fix testrunner and add make targets
parent
af96b7df
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+12
-2
12 additions, 2 deletions
Makefile
testrunner
+0
-0
0 additions, 0 deletions
testrunner
with
12 additions
and
2 deletions
Makefile
100644 → 100755
+
12
−
2
View file @
f1e24521
CC
:=
clang
CC
:=
clang
CCFLAGS
:=
-Wall
-Wextra
-Werror
-pedantic
-std
=
c17
CCFLAGS
:=
-Wall
-Wextra
-Werror
-pedantic
-std
=
c17
ASSIGNMENT
:=
a2
ASSIGNMENT
:=
a
ss
2
.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
"[
\0
33[36mINFO
\0
33[0m] Executing binary..."
@
echo
"[
\0
33[36mINFO
\0
33[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
"[
\0
33[36mINFO
\0
33[0m] Executing testrunner..."
@
echo
"[
\0
33[36mINFO
\0
33[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
"[
\0
33[36mINFO
\0
33[0m] Executing testrunner..."
./testrunner
-c
test.toml
-m
char
testbyword
:
all
##
runs public testcases on the project compares output word by word
@
echo
"[
\0
33[36mINFO
\0
33[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
"[
\0
33[36mINFO
\0
33[0m] Executing testrunner..."
./testrunner
-c
test.toml
-v
help
:
##
prints the help text
help
:
##
prints the help text
@
echo
"Usage: make
\0
33[36m<TARGET>
\0
33[0m"
@
echo
"Usage: make
\0
33[36m<TARGET>
\0
33[0m"
@
echo
"Available targets:"
@
echo
"Available targets:"
...
...
This diff is collapsed.
Click to expand it.
testrunner
+
0
−
0
View file @
f1e24521
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment