summaryrefslogtreecommitdiffstats
path: root/presentation/sections/4-testing.tex
blob: 760c54bb1b7c844a773f9fadca568b0e5d2deb83 (plain) (blame)
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
% public domain. no rights reserved. see
% https://creativecommons.org/publicdomain/zero/1.0/

\section{testing}

\begin{frame}
  \frametitle{testing}
  \pause
  \begin{itemize}
  \item unit testing
  \item manual testing
  \item stress testing
  \end{itemize}
\end{frame}


\subsection{unit testing}

\begin{frame}
  \frametitle{unit testing}
  \begin{itemize}
  \item<2-> nose testing frame work
  \item<3-> not pure TDD
  \item<4-> benefits?
  \end{itemize}
\end{frame}

\begin{frame}[fragile]
  \frametitle{benefits}
  \begin{itemize}
  \item<1-> immediatly verify correctness for ``N'' use cases.
  \item<2-> was useful when testing compatibility on OS X.
{\tiny
\begin{semiverbatim}\onslide<3->
\$ nosetests
...................................
----------------------------------------------------------------------
Ran 35 tests in 62.159s

OK
\end{semiverbatim}
}
  \end{itemize}
\end{frame}


\subsection{manual testing}

\begin{frame}
  \frametitle{manual testing}
  \pause
  \begin{itemize}
  \item combox on two GNU/Linux machines.
  \item combox on GNU/Linux and OS X
  \item combox on GNU/Linux and OS X with USB stick as the third node.
  \end{itemize}
\end{frame}


\begin{frame}[fragile]
  \frametitle{manual testing}
  {\tiny
  \begin{semiverbatim}



                                   +------------------------+
                                   |                        | monitor
                            [------>   Dropbox directory    |----------]
                            |      |                        |          ]
                          c |      +------------------------+          ]
                          o |                                          ] c
  +------------------+    n |      +------------------------+          ] o
  |                  |    t |      |                        |  monitor ] m
  | GNU/Linux / OS X | -----|------>    combox direcory     | ---------] b
  |                  |    a |      |                        |          ] o
  +------------------+    i |      +------------------------+          ] x
                          n |                                          ]
                          s |      +------------------------+          ]
                            |      |                        |  monitor ]
                            [------> Google Drive directory | ---------]
                                   |                        |
                                   +------------------------+

  \end{semiverbatim} }
\end{frame}


\begin{frame}[fragile]
  \frametitle{manual testing}
  {\tiny
  \begin{semiverbatim}
setup i
                                     Internet
                                     @-------@
                                     |       |
                     Dropbox client  | +---+ |  Dropbox client
   combox                     (------> | D | <------)                   combox
  +------------------+  sync  |      | +---+ |      | sync  +------------------+
  |                  <--------       |       |      -------->                  |
  | GNU/Linux (grus) |               |       |              | GNU/Linux (lyra) |
  | debian testing   <--------       |       |      --------> debian stable    |
  +------------------+  sync  |      |       |      | sync  +------------------+
                              |      | +---+ |      |
                              (------> | G | <------)
                     rclone          | +---+ |  rclone
                                     |       |
                                     @-------@


  \end{semiverbatim} }
\end{frame}

\begin{frame}[fragile]
  \frametitle{manual testing}
  {\tiny
  \begin{semiverbatim}
setup ii
                                     Internet
                                     @-------@
                                     |       |
                     Dropbox client  | +---+ |  Dropbox client
   combox                     (------> | D | <------)                   combox
  +------------------+  sync  |      | +---+ |      | sync  +------------------+
  |                  <--------       |       |      -------->                  |
  | GNU/Linux (grus) |               |       |              |      OS X        |
  | debian testing   <--------       |       |      -------->  (10.9, 10.10)   |
  +------------------+  sync  |      |       |      | sync  +------------------+
                              |      | +---+ |      |
                              (------> | G | <------)
                     rclone          | +---+ |  Google Drive client
                                     |       |
                                     @-------@

found bugs #5, #6, #7, #10, #11
(git.ricketyspace.net/combox/plain/TODO.org)
  \end{semiverbatim} }
\end{frame}

\begin{frame}[fragile]
  \frametitle{manual testing}
  {\tiny
  \begin{semiverbatim}
setup iii
                                     Internet
                                     @-------@
                                     |       |
                     Dropbox client  | +---+ |  Dropbox client
   combox                     (------> | D | <------)                   combox
  +------------------+  sync  |      | +---+ |      | sync  +------------------+
  |                  <--------       |       |      -------->                  |
  | GNU/Linux (grus) |               |       |              |      OS X        |
  | debian testing   <--------       |       |      -------->  (10.9, 10.10)   |
  +------------------+  sync  |      |       |      | sync  +------------------+
    |                         |      | +---+ |      |                      |
    |                         (------> | G | <------)                      |
    v                rclone          | +---+ |  Google Drive client        v
 +-----------------+                 |       |                +-----------------+
 |USB stick ZAPHOD |                 @-------@                |USB stick ZAPHOD |
 +-----------------+                                          +-----------------+
  third node                                                          third node


  - modified shard on usb stick must be "touch".
  - file rename/move does not work.
  \end{semiverbatim} }
\end{frame}

\subsection{stress testing}


\begin{frame}[fragile]
  \frametitle{stress testing}
  \pause
  {\tiny
  \begin{semiverbatim}

   1 second delay
        +---+
        |   |
    -   v   v    -            -            -
  - F -  -1s-  - F -  -1s-  - F -  -1s-  - F -
    -            -            -            -    -1s-
------>------------->-------->---------->----->          -
dump script                                            - F -
                                                         -
                                                             -1s-

                                                                 -
   -                                                           - F -
 - F -   20MiB - 90MiB file                                      -
   -
 avg. file size 60MiB                                    |                 |
                                                         |   -         -   |
                                                         | - F -     - F - |
                                                         |   -         -   |
                                                         +_________________+
                                                           combox directory

git.ricketyspace.net/combox-paper/tree/dumper/dump
  \end{semiverbatim} }
\end{frame}


\begin{frame}
  \frametitle{1620MiB dump - 27 files}
  \pause
  \centering
  {\small
  avg. time to split and encrypt $\rightarrow$ 2670.59ms\\
  \pause
  total time to process all files $\rightarrow$ 02m:22s
  }
\end{frame}


\begin{frame}
  \frametitle{5940MiB dump - 99 files}
  \pause
  \centering
  {\small
  avg. time to split and encrypt $\rightarrow$ 2979.64ms ($\uparrow$ 309.049ms)\\
  \pause
  total time to process all files $\rightarrow$ 09m:10s  ($\uparrow$ 6m:48s)
  }
\end{frame}


\begin{frame}
  \frametitle{10800MiB dump - 180 files}
  \pause
  \centering
  {\small
  avg. time to split and encrypt $\rightarrow$ 3423.08ms ($\uparrow$ 443.440ms)\\
  \pause
  total time to process all files $\rightarrow$ 18m:04s ($\uparrow$ 8m:54s)
  }
\end{frame}