Commit Graph

25 Commits

Author SHA1 Message Date
Avi Kivity
9639a7207e Merge branch 'master' of github.com:cloudius-systems/seastar into db
Conflicts:
	test.py
2015-03-10 13:06:02 +02:00
Amnon Heiman
810d8c88d8 Adding httpd tests 2015-03-08 21:55:57 +02:00
Shlomi Livne
d5b4ec06d6 tests: add commitlog_test
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
2015-03-08 17:46:16 +02:00
Avi Kivity
5902243dc5 Merge branch 'master' of github.com:cloudius-systems/seastar into db
Global adjustment due to the removal of future<>::rescue().
2015-03-05 11:00:11 +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
Glauber Costa
8015b1c1bb sstable: unit tests
This tests the sstable parsing code. The tables provided as exemple are real
tables, that I was using to test my code manually.

The corrupt tables, however, are corrupted by hand.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
2015-02-26 12:14:20 -05:00
Avi Kivity
83430355c2 Merge branch 'master' of github.com:cloudius-systems/seastar into db
LICENSE moved to LICENSE.seastar, since (at least for now) urchin is
not open source.

Conflicts:
	apps/seastar/main.cc
2015-02-22 16:23:59 +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
6a998e2d78 tests: Add test for parsing and execution of CQL3 queries 2015-02-12 19:40:59 +01:00
Tomasz Grabiec
28915bf673 tests: Add test for applying mutations 2015-02-09 10:28:44 +01:00
Tomasz Grabiec
ee10d9b437 tests: Add test for int32_type string conversions 2015-02-09 10:28:44 +01: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