-
Notifications
You must be signed in to change notification settings - Fork 33
/
.dbwebb.tests
156 lines (105 loc) · 2.94 KB
/
.dbwebb.tests
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# --------------------------------------------------------------------------
#
# Init
#
dbwebb init-me
# --------------------------------------------------------------------------
#
# Kmom01
#
# lab1
cd me/kmom01 && dbwebb recreate lab1
cd me/kmom01/lab1 && python3 answer.py; [[ $? = 42 ]]
dbwebb validate lab1
# hello
test -d me/kmom01/hello
cp -i example/hello/hello.py me/kmom01/hello
cd me/kmom01/hello && python3 hello.py
dbwebb validate hello
# plane
test -d me/kmom01/plane
#cd me/kmom01/ && cp -i hello/hello.py plane/plane.py && cd plane
cd me/kmom01/ && cp -i hello/hello.py plane/plane.py
dbwebb validate plane
# redovisa
test -d me/redovisa
cp -ri example/redovisa/* me/redovisa
dbwebb validate redovisa
# --------------------------------------------------------------------------
#
# Kmom02
#
# lab2
cd me/kmom02 && dbwebb recreate lab2
cd me/kmom02/lab2 && python3 answer.py; [[ $? = 42 ]]
dbwebb validate lab2
# marvin1
test -d me/kmom02/marvin1
cp -i example/marvin/marvin.py me/kmom02/marvin1/
cd me/kmom02/marvin1/
dbwebb validate marvin1
# --------------------------------------------------------------------------
#
# Kmom03
#
# lab3
cd me/kmom03 && dbwebb recreate lab3
cd me/kmom03/lab3 && python3 answer.py; [[ $? = 42 ]]
dbwebb validate lab3
# marvin2
test -d me/kmom03/marvin2
cd me && cp -ri kmom02/marvin1/marvin.py kmom03/marvin2/ && cd kmom03/marvin2
dbwebb validate marvin2
# functions
test -d me/kmom03/functions
# --------------------------------------------------------------------------
#
# Kmom04
#
# lab4
cd me/kmom04 && dbwebb recreate lab4
cd me/kmom04/lab4 && python3 answer.py; [[ $? = 42 ]]
dbwebb validate lab4
# marvin3
test -d me/kmom04/marvin3
cd me && cp -ri kmom03/marvin2/* kmom04/marvin3/ && cd kmom04/marvin3
dbwebb validate marvin3
# list
test -d me/kmom04/list
# --------------------------------------------------------------------------
#
# Kmom05
#
# lab5
cd me/kmom05 && dbwebb recreate lab5
cd me/kmom05/lab5 && python3 answer.py; [[ $? = 42 ]]
dbwebb validate lab5
# marvin4
test -d me/kmom05/marvin4
cd me && cp -ri kmom04/marvin3/* kmom05/marvin4 && cp ../example/emission_data/*.py kmom05/marvin4/ && cd kmom05/marvin4
test -f me/kmom05/marvin4/emission_data.py && test -f me/kmom05/marvin4/emission_data_small.py
dbwebb validate marvin4
# dict/tuple
test -d me/kmom05/warehouse
# --------------------------------------------------------------------------
#
# Kmom06
#
# lab6
cd me/kmom06 && dbwebb recreate lab6
cd me/kmom06/lab6 && python3 answer.py; [[ $? = 42 ]]
dbwebb validate lab6
# analyzer
test -d me/kmom06/analyzer
cd me && cp -i ../example/text/phil.txt kmom06/analyzer/ && cp -i ../example/text/lorum.txt kmom06/analyzer/ && cd kmom06/analyzer/
touch me/kmom06/analyzer/main.py
dbwebb validate analyzer
# file
test -d me/kmom06/file
dbwebb validate me/kmom06/file
# --------------------------------------------------------------------------
#
# Kmom10
#
# exam
test -d me/kmom10/typing