Commit Graph

10 Commits

Author SHA1 Message Date
Tomasz Grabiec
cbe6169d36 test.py: speed up allocator test when running tests in fast mode 2014-12-03 13:15:09 +01:00
Avi Kivity
8e47ed8b06 tests: whitelist allocator_test 2014-11-15 12:19:37 -08:00
Tomasz Grabiec
05d89f1ab9 tests: add output_stream_test 2014-11-15 12:11:11 -08:00
Tomasz Grabiec
42b20cdad1 test.py: print output from test on error 2014-11-13 22:22:01 +02:00
Pekka Enberg
6723c0cbdd apps/memcache => apps/memcached
The protocol is called the "memcache protocol" but the server should
follow the same naming convention as httpd does.

It should not be a big deal but it annoys the hell out of simple people
like myself who have their brain hard-wired to type the final "d"...

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2014-10-21 17:30:14 +03:00
Tomasz Grabiec
09faeff196 tests: distinguish between fast and slow tests
Most of the tests are fast and they cover most of the
functionality. The slow minority of tests takes significantly more
time to run. Developers should run tests frequently in order to get
feedback on correctness of their changes. The test runner
distinguishes now between fast and slow tests. When given '--fast'
switch it skips tests marked as slow.

$ time ./test.py
[8/8] PASSED tests/memcache/test.py --mode release
OK.

real	0m33.084s
user	0m0.501s
sys	0m0.271s

$ time ./test.py --fast
[8/8] PASSED tests/memcache/test.py --mode release --fast
OK.

real	0m1.012s
user	0m0.464s
sys	0m0.247s
2014-10-18 12:59:50 +02:00
Tomasz Grabiec
45772b9ab7 test.py: run memcache with --smp 1
It doesn't support more than one CPU yet. The symptom is that TCP
connections will have a chance of hanging when they're routed to the
CPU on which memcache doesn't run.
2014-10-16 09:11:08 +02:00
Tomasz Grabiec
50feeef580 tests: memcache: introduce end-to-end tests
These tests exercise memcache instance using a real client. The
test_memcache.py suite can be run against any memcache instance which
conforms to the ASCII protocol.
2014-10-15 15:59:42 +02:00
Tomasz Grabiec
6a31f3762c tests: memcache: add test for ASCII parser 2014-10-15 15:59:42 +02:00
Tomasz Grabiec
c4d18b6ae6 tests: introduce test runner script
To run all unit tests:

  $ ./test.py
  [3/6] RUNNING build/release/tests/sstring_test
2014-10-15 15:50:46 +02:00