gen_index_cxx.py 293 B

1234567891011
  1. from sys import argv
  2. from re import sub
  3. print("#include \"testlib.h\"");
  4. print("void run_upstream_tests() {")
  5. for path in argv[1:]:
  6. name = sub('/', '_', path.split('.')[0])
  7. print(" extern void %s();" % name)
  8. print(" clean_slate();")
  9. print(" %s();" % name)
  10. print("}")