Commit Graph

22 Commits

Author SHA1 Message Date
Shlomi Livne
514bead08b tests: Fix output bug in test.py
The change to add a timeout to test.py introduced a bug that caused
thestdout,stderr not to be printed in case of an error. This patch fixes
this bug.

Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
2015-03-26 13:27:49 +02:00
Tomasz Grabiec
dc4eb7af2d tests: Rename map_reduce_test.cc to distributed_test.cc 2015-03-25 09:39:34 +01:00
Shlomi Livne
a10c6681e3 build: fix jenkins/boost test integration
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
2015-03-11 17:07:53 +02:00
Tomasz Grabiec
200f4698b5 tests: Add test for map_reduce() 2015-03-11 13:24:31 +01:00
Shlomi Livne
820ea940ba tests: generate a boost report file that can be parsed by jenkins
Boost XML report files can be parsed by Jenkins and provide a mean for
jenkins to track specific test cases status.

Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
2015-03-11 10:03:21 +02:00
Amnon Heiman
810d8c88d8 Adding httpd tests 2015-03-08 21:55:57 +02:00
Shlomi Livne
1bf71073e6 tests: Add a timeout to limit execution time of tests
Support a timout to assure that we do not have run away tests

Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
2015-03-04 15:06:20 +02:00
Avi Kivity
7f8d88371a Add LICENSE, NOTICE, and copyright headers to all source files.
The two files imported from the OSv project retain their original licenses.
2015-02-19 16:52:34 +02:00
Tomasz Grabiec
f948ee79bd test.py: Add --name filtering option 2015-02-08 10:09:29 +02:00
Tomasz Grabiec
ead03f1b08 test.py: Add --mode parameter for filtering tests 2015-02-08 10:09:29 +02:00
Avi Kivity
fff2920c55 tests: disable address sanitizer alloc/dealloc mismatch test
Generates false positive with new (with_alignment(...)) ...
2015-01-20 12:21:41 +02:00
Avi Kivity
4c3eb49aaf tests: add smp test
Test calling a function, and calling a function that returns an exception.

The second test verifies that cross cpu free works.
2015-01-15 15:19:02 +02:00
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