Files
scylladb/tests/memcache/test.py
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

20 lines
414 B
Python
Executable File

#!/usr/bin/env python3
import time
import subprocess
import sys
if len(sys.argv) < 2:
print('Usage: %s <path-to-memcache>' % sys.argv[0])
memcache_path = sys.argv[1]
mc = subprocess.Popen([memcache_path])
print('Memcache started.')
try:
time.sleep(0.1)
print('Starting tests...')
subprocess.check_call(['tests/memcache/test_memcache.py'])
finally:
print('Killing memcache...')
mc.kill()