-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
122 lines (103 loc) · 4.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# SOURCE_CODE := student-big-number-optimize.cpp
SOURCE_CODE := student.cpp
run: all
@bin/Debug/parrot
all:
@g++ -Wall -c grader.cpp -o obj/Debug/grader.o
@g++ -Wall -c $(SOURCE_CODE) -o obj/Debug/student.o
@g++ -Wall obj/Debug/grader.o obj/Debug/student.o -o bin/Debug/parrot
test-report: all
$(eval export REPORT=1)
@bin/Debug/parrot < test/subtask1/grader.in.1
@/bin/echo -n "["
@bin/Debug/parrot < test/subtask2/grader.in.1
@bin/Debug/parrot < test/subtask2/grader.in.4
@bin/Debug/parrot < test/subtask2/grader.in.3
@bin/Debug/parrot < test/subtask2/grader.in.2
@/bin/echo -n "]"
@/bin/echo -n "["
@bin/Debug/parrot < test/subtask3/grader.in.2
@bin/Debug/parrot < test/subtask3/grader.in.3
@bin/Debug/parrot < test/subtask3/grader.in.4
@bin/Debug/parrot < test/subtask3/grader.in.1
@/bin/echo -n "]"
@/bin/echo -n "["
@bin/Debug/parrot < test/subtask4/grader.in.3
@bin/Debug/parrot < test/subtask4/grader.in.5
@bin/Debug/parrot < test/subtask4/grader.in.4
@bin/Debug/parrot < test/subtask4/grader.in.2
@bin/Debug/parrot < test/subtask4/grader.in.6
@bin/Debug/parrot < test/subtask4/grader.in.1
@/bin/echo -n "]"
@/bin/echo -n "["
@bin/Debug/parrot < test/subtask5/grader.in.1
@bin/Debug/parrot < test/subtask5/grader.in.2
@bin/Debug/parrot < test/subtask5/grader.in.7
@bin/Debug/parrot < test/subtask5/grader.in.5
@bin/Debug/parrot < test/subtask5/grader.in.4
@bin/Debug/parrot < test/subtask5/grader.in.6
@bin/Debug/parrot < test/subtask5/grader.in.3
@/bin/echo "]"
test-real: all
$(eval export COUNT_BIRD=1)
@/bin/echo -n "1.1 -> "
@bin/Debug/parrot < test/subtask1/grader.in.1
@echo ""
@/bin/echo -n "2.1 -> "
@bin/Debug/parrot < test/subtask2/grader.in.1
@/bin/echo -n "2.2 -> "
@bin/Debug/parrot < test/subtask2/grader.in.2
@/bin/echo -n "2.3 -> "
@bin/Debug/parrot < test/subtask2/grader.in.3
@/bin/echo -n "2.4 -> "
@bin/Debug/parrot < test/subtask2/grader.in.4
@echo ""
@/bin/echo -n "3.1 -> "
@bin/Debug/parrot < test/subtask3/grader.in.1
@/bin/echo -n "3.2 -> "
@bin/Debug/parrot < test/subtask3/grader.in.2
@/bin/echo -n "3.3 -> "
@bin/Debug/parrot < test/subtask3/grader.in.3
@/bin/echo -n "3.4 -> "
@bin/Debug/parrot < test/subtask3/grader.in.4
@echo ""
@/bin/echo -n "4.1 -> "
@bin/Debug/parrot < test/subtask4/grader.in.1
@/bin/echo -n "4.2 -> "
@bin/Debug/parrot < test/subtask4/grader.in.2
@/bin/echo -n "4.3 -> "
@bin/Debug/parrot < test/subtask4/grader.in.3
@/bin/echo -n "4.4 -> "
@bin/Debug/parrot < test/subtask4/grader.in.4
@/bin/echo -n "4.5 -> "
@bin/Debug/parrot < test/subtask4/grader.in.5
@/bin/echo -n "4.6 -> "
@bin/Debug/parrot < test/subtask4/grader.in.6
@echo ""
@/bin/echo -n "5.1 -> "
@bin/Debug/parrot < test/subtask5/grader.in.1
@/bin/echo -n "5.2 -> "
@bin/Debug/parrot < test/subtask5/grader.in.2
@/bin/echo -n "5.3 -> "
@bin/Debug/parrot < test/subtask5/grader.in.3
@/bin/echo -n "5.4 -> "
@bin/Debug/parrot < test/subtask5/grader.in.4
@/bin/echo -n "5.5 -> "
@bin/Debug/parrot < test/subtask5/grader.in.6
@/bin/echo -n "5.6 -> "
@bin/Debug/parrot < test/subtask5/grader.in.5
@/bin/echo -n "5.7 -> "
@bin/Debug/parrot < test/subtask5/grader.in.7
set-verbose:
$(eval export VERBOSE=1)
test-verbose: set-verbose test
test-one: set-verbose all
@echo "64 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255" | bin/Debug/parrot
test: all
@echo "1 1" | bin/Debug/parrot
@echo "10 1 2 3 4 5 6 7 8 9 10" | bin/Debug/parrot
@echo "10 255 255 255 255 255 255 255 255 255 255" | bin/Debug/parrot
@echo "20 0 128 250 10 9 6 7 100 255 100 0 9 8 20 5 77 98 77 100 255" | bin/Debug/parrot
@echo "64 0 128 250 10 9 6 7 100 255 100 0 9 8 20 5 77 98 77 100 255 0 128 250 10 9 6 7 100 255 100 0 9 8 20 5 77 98 77 100 255 0 128 250 10 9 6 7 100 255 100 0 9 8 20 5 77 98 77 100 255 123 153 111 222" | bin/Debug/parrot
@echo "64 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255" | bin/Debug/parrot
PHONY: all test test-report test-real test-one test-verbose