RethinkDB native connector work, minor fixes.
This commit is contained in:
11
ext/librethinkdbxx/test/gen_index_cxx.py
Normal file
11
ext/librethinkdbxx/test/gen_index_cxx.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from sys import argv
|
||||
from re import sub
|
||||
|
||||
print("#include \"testlib.h\"");
|
||||
print("void run_upstream_tests() {")
|
||||
for path in argv[1:]:
|
||||
name = sub('/', '_', path.split('.')[0])
|
||||
print(" extern void %s();" % name)
|
||||
print(" clean_slate();")
|
||||
print(" %s();" % name)
|
||||
print("}")
|
||||
Reference in New Issue
Block a user