mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
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.
20 lines
414 B
Python
Executable File
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()
|