Permalink
Browse files

OPy regtest.

I made a snapshot of all relevant files in opy/_regtest/src.

opy/regtest.sh has shell functions to compile everything.

opy/dis-md5.golden.txt is the golden data, which I verified on two
machines.  Everything is deterministic!
  • Loading branch information...
Andy Chu
Andy Chu committed Mar 18, 2018
1 parent 9b90653 commit 4876154fe682a49d4296638f5f3408e19ff78fa6
Showing with 67,431 additions and 22 deletions.
  1. +8 −7 .gitignore
  2. +222 −0 opy/_regtest/dis-md5.golden.txt
  3. +439 −0 opy/_regtest/src/Lib/posixpath.py
  4. +213 −0 opy/_regtest/src/UserDict.py
  5. +128 −0 opy/_regtest/src/__future__.py
  6. 0 opy/_regtest/src/__init__.py
  7. +695 −0 opy/_regtest/src/_abcoll.py
  8. 0 opy/_regtest/src/_devbuild/__init__.py
  9. 0 opy/_regtest/src/_devbuild/gen/__init__.py
  10. +894 −0 opy/_regtest/src/_devbuild/gen/osh_asdl.py
  11. +96 −0 opy/_regtest/src/_devbuild/gen/osh_help.py
  12. +252 −0 opy/_regtest/src/_devbuild/gen/runtime_asdl.py
  13. +39 −0 opy/_regtest/src/_devbuild/gen/types_asdl.py
  14. +204 −0 opy/_regtest/src/_weakrefset.py
  15. +185 −0 opy/_regtest/src/abc.py
  16. 0 opy/_regtest/src/asdl/__init__.py
  17. +19 −0 opy/_regtest/src/asdl/arith_ast.py
  18. +197 −0 opy/_regtest/src/asdl/arith_ast_test.py
  19. +246 −0 opy/_regtest/src/asdl/arith_parse.py
  20. +223 −0 opy/_regtest/src/asdl/arith_parse_test.py
  21. +613 −0 opy/_regtest/src/asdl/asdl_.py
  22. +86 −0 opy/_regtest/src/asdl/asdl_demo.py
  23. +36 −0 opy/_regtest/src/asdl/const.py
  24. +294 −0 opy/_regtest/src/asdl/encode.py
  25. +37 −0 opy/_regtest/src/asdl/encode_test.py
  26. +570 −0 opy/_regtest/src/asdl/format.py
  27. +49 −0 opy/_regtest/src/asdl/format_test.py
  28. +399 −0 opy/_regtest/src/asdl/gen_cpp.py
  29. +135 −0 opy/_regtest/src/asdl/gen_python.py
  30. +309 −0 opy/_regtest/src/asdl/py_meta.py
  31. +18 −0 opy/_regtest/src/asdl/py_meta_test.py
  32. +230 −0 opy/_regtest/src/asdl/tdop.py
  33. +118 −0 opy/_regtest/src/asdl/visitor.py
  34. +66 −0 opy/_regtest/src/atexit.py
  35. 0 opy/_regtest/src/benchmarks/__init__.py
  36. +14 −0 opy/_regtest/src/benchmarks/fake_libc.py
  37. +93 −0 opy/_regtest/src/benchmarks/pytrace.py
  38. +67 −0 opy/_regtest/src/benchmarks/time.py
  39. +104 −0 opy/_regtest/src/benchmarks/virtual_memory.py
  40. 0 opy/_regtest/src/bin/__init__.py
  41. +623 −0 opy/_regtest/src/bin/oil.py
  42. +88 −0 opy/_regtest/src/bin/opy_.py
  43. +148 −0 opy/_regtest/src/build/app_deps.py
  44. +27 −0 opy/_regtest/src/build/app_deps_test.py
  45. +59 −0 opy/_regtest/src/build/c_module_srcs.py
  46. +40 −0 opy/_regtest/src/build/c_module_toc.py
  47. +51 −0 opy/_regtest/src/build/make_zip.py
  48. +340 −0 opy/_regtest/src/build/quick_ref.py
  49. +97 −0 opy/_regtest/src/build/runpy_deps.py
  50. +11 −0 opy/_regtest/src/build/setup.py
  51. +14 −0 opy/_regtest/src/build/setup_fastlex.py
  52. +7 −0 opy/_regtest/src/build/testdata/future_import.py
  53. +80 −0 opy/_regtest/src/build/testdata/hello.py
  54. +13 −0 opy/_regtest/src/build/testdata/lib.py
  55. +1,113 −0 opy/_regtest/src/codecs.py
  56. +743 −0 opy/_regtest/src/collections.py
  57. +434 −0 opy/_regtest/src/copy.py
  58. +201 −0 opy/_regtest/src/copy_reg.py
  59. 0 opy/_regtest/src/core/__init__.py
  60. +195 −0 opy/_regtest/src/core/alloc.py
  61. +55 −0 opy/_regtest/src/core/alloc_test.py
  62. +480 −0 opy/_regtest/src/core/args.py
  63. +182 −0 opy/_regtest/src/core/args_test.py
  64. +268 −0 opy/_regtest/src/core/braces.py
  65. +149 −0 opy/_regtest/src/core/braces_test.py
  66. +1,266 −0 opy/_regtest/src/core/builtin.py
  67. +43 −0 opy/_regtest/src/core/builtin_test.py
  68. +1,533 −0 opy/_regtest/src/core/cmd_exec.py
  69. +137 −0 opy/_regtest/src/core/cmd_exec_test.py
  70. +815 −0 opy/_regtest/src/core/completion.py
  71. +287 −0 opy/_regtest/src/core/completion_test.py
  72. +631 −0 opy/_regtest/src/core/expr_eval.py
  73. +215 −0 opy/_regtest/src/core/glob_.py
  74. +122 −0 opy/_regtest/src/core/glob_test.py
  75. +445 −0 opy/_regtest/src/core/id_kind.py
  76. +172 −0 opy/_regtest/src/core/id_kind_gen.py
  77. +103 −0 opy/_regtest/src/core/id_kind_test.py
  78. +392 −0 opy/_regtest/src/core/legacy.py
  79. +160 −0 opy/_regtest/src/core/legacy_test.py
  80. +262 −0 opy/_regtest/src/core/lexer.py
  81. +343 −0 opy/_regtest/src/core/lexer_gen.py
  82. +50 −0 opy/_regtest/src/core/lexer_gen_test.py
  83. +46 −0 opy/_regtest/src/core/lexer_test.py
  84. +160 −0 opy/_regtest/src/core/libstr.py
  85. +45 −0 opy/_regtest/src/core/libstr_test.py
  86. +660 −0 opy/_regtest/src/core/process.py
  87. +148 −0 opy/_regtest/src/core/process_test.py
  88. +116 −0 opy/_regtest/src/core/reader.py
  89. +52 −0 opy/_regtest/src/core/reader_test.py
  90. +819 −0 opy/_regtest/src/core/state.py
  91. +294 −0 opy/_regtest/src/core/state_test.py
  92. +354 −0 opy/_regtest/src/core/tdop.py
  93. +207 −0 opy/_regtest/src/core/test_builtin.py
  94. +71 −0 opy/_regtest/src/core/test_lib.py
  95. +146 −0 opy/_regtest/src/core/ui.py
  96. +265 −0 opy/_regtest/src/core/util.py
  97. +46 −0 opy/_regtest/src/core/util_test.py
  98. +569 −0 opy/_regtest/src/core/word.py
  99. +109 −0 opy/_regtest/src/core/word_compile.py
  100. +935 −0 opy/_regtest/src/core/word_eval.py
  101. +25 −0 opy/_regtest/src/core/word_eval_test.py
  102. +19 −0 opy/_regtest/src/core/word_test.py
  103. +225 −0 opy/_regtest/src/dis.py
  104. +145 −0 opy/_regtest/src/dummy_thread.py
  105. +157 −0 opy/_regtest/src/encodings/__init__.py
  106. +527 −0 opy/_regtest/src/encodings/aliases.py
  107. +42 −0 opy/_regtest/src/encodings/utf_8.py
  108. +100 −0 opy/_regtest/src/functools.py
  109. +113 −0 opy/_regtest/src/genericpath.py
  110. +667 −0 opy/_regtest/src/gettext.py
  111. +221 −0 opy/_regtest/src/hashlib.py
  112. +484 −0 opy/_regtest/src/heapq.py
  113. +90 −0 opy/_regtest/src/io.py
  114. +93 −0 opy/_regtest/src/keyword.py
  115. +139 −0 opy/_regtest/src/linecache.py
  116. +2,065 −0 opy/_regtest/src/locale.py
  117. +1,744 −0 opy/_regtest/src/logging/__init__.py
  118. +71 −0 opy/_regtest/src/native/fastlex_test.py
  119. +94 −0 opy/_regtest/src/native/libc_test.py
  120. 0 opy/_regtest/src/oil/__init__.py
  121. +192 −0 opy/_regtest/src/opcode.py
  122. +1,704 −0 opy/_regtest/src/optparse.py
  123. 0 opy/_regtest/src/opy/__init__.py
  124. 0 opy/_regtest/src/opy/byterun/__init__.py
  125. +43 −0 opy/_regtest/src/opy/byterun/execfile.py
  126. +237 −0 opy/_regtest/src/opy/byterun/pyobj.py
  127. +1,066 −0 opy/_regtest/src/opy/byterun/pyvm2.py
  128. +658 −0 opy/_regtest/src/opy/byterun/test_basic.py
  129. +168 −0 opy/_regtest/src/opy/byterun/test_exceptions.py
  130. +393 −0 opy/_regtest/src/opy/byterun/test_functions.py
  131. +345 −0 opy/_regtest/src/opy/byterun/test_with.py
  132. +97 −0 opy/_regtest/src/opy/byterun/vmtest.py
  133. +477 −0 opy/_regtest/src/opy/callgraph.py
  134. +55 −0 opy/_regtest/src/opy/callgraph_demo.py
  135. +28 −0 opy/_regtest/src/opy/callgraph_test.py
  136. 0 opy/_regtest/src/opy/compiler2/__init__.py
  137. +1,419 −0 opy/_regtest/src/opy/compiler2/ast.py
  138. +23 −0 opy/_regtest/src/opy/compiler2/consts.py
  139. +76 −0 opy/_regtest/src/opy/compiler2/future.py
  140. +88 −0 opy/_regtest/src/opy/compiler2/misc.py
  141. +192 −0 opy/_regtest/src/opy/compiler2/opcode.py
  142. +769 −0 opy/_regtest/src/opy/compiler2/pyassem.py
  143. +26 −0 opy/_regtest/src/opy/compiler2/pyassem_test.py
  144. +1,547 −0 opy/_regtest/src/opy/compiler2/pycodegen.py
  145. +410 −0 opy/_regtest/src/opy/compiler2/symbols.py
  146. +70 −0 opy/_regtest/src/opy/compiler2/symbols_test.py
  147. +48 −0 opy/_regtest/src/opy/compiler2/syntax.py
  148. +1,578 −0 opy/_regtest/src/opy/compiler2/transformer.py
  149. +113 −0 opy/_regtest/src/opy/compiler2/visitor.py
  150. 0 opy/_regtest/src/opy/misc/__init__.py
  151. +18 −0 opy/_regtest/src/opy/misc/ccompile.py
  152. +39 −0 opy/_regtest/src/opy/misc/determinism.py
  153. +248 −0 opy/_regtest/src/opy/misc/inspect_pyc.py
  154. +31 −0 opy/_regtest/src/opy/misc/pgen_ast.py
  155. +66 −0 opy/_regtest/src/opy/misc/py_ast.py
  156. +56 −0 opy/_regtest/src/opy/misc/stdlib_compile.py
  157. +372 −0 opy/_regtest/src/opy/opy_main.py
  158. +4 −0 opy/_regtest/src/opy/pgen2/__init__.py
  159. +106 −0 opy/_regtest/src/opy/pgen2/driver.py
  160. +222 −0 opy/_regtest/src/opy/pgen2/grammar.py
  161. +206 −0 opy/_regtest/src/opy/pgen2/parse.py
  162. +400 −0 opy/_regtest/src/opy/pgen2/pgen.py
  163. +85 −0 opy/_regtest/src/opy/pgen2/token.py
  164. +579 −0 opy/_regtest/src/opy/pgen2/tokenize.py
  165. +827 −0 opy/_regtest/src/opy/pytree.py
  166. +2 −0 opy/_regtest/src/opy/testdata/hello_py2.py
  167. +2 −0 opy/_regtest/src/opy/testdata/hello_py2_print.py
  168. +1 −0 opy/_regtest/src/opy/testdata/hello_py3.py
  169. +28 −0 opy/_regtest/src/opy/tests/genexpr.py
  170. +12 −0 opy/_regtest/src/opy/tests/genexpr_simple.py
  171. +295 −0 opy/_regtest/src/opy/tools/astgen.py
  172. +52 −0 opy/_regtest/src/opy/tools/compile.py
  173. +38 −0 opy/_regtest/src/opy/tools/demo.py
  174. +80 −0 opy/_regtest/src/opy/tools/regrtest.py
  175. +43 −0 opy/_regtest/src/opy/tools/stacktest.py
  176. +52 −0 opy/_regtest/src/opy/util_opy.py
  177. +742 −0 opy/_regtest/src/os.py
  178. 0 opy/_regtest/src/osh/__init__.py
  179. +185 −0 opy/_regtest/src/osh/arith_parse.py
  180. +170 −0 opy/_regtest/src/osh/arith_parse_test.py
  181. +34 −0 opy/_regtest/src/osh/ast_gen.py
  182. +110 −0 opy/_regtest/src/osh/ast_lib.py
  183. +272 −0 opy/_regtest/src/osh/bool_parse.py
  184. +126 −0 opy/_regtest/src/osh/bool_parse_test.py
  185. +1,555 −0 opy/_regtest/src/osh/cmd_parse.py
  186. +1,303 −0 opy/_regtest/src/osh/cmd_parse_test.py
  187. +524 −0 opy/_regtest/src/osh/lex.py
  188. +247 −0 opy/_regtest/src/osh/lex_test.py
  189. +205 −0 opy/_regtest/src/osh/meta.py
  190. +145 −0 opy/_regtest/src/osh/parse_lib.py
  191. +1,239 −0 opy/_regtest/src/osh/word_parse.py
  192. +518 −0 opy/_regtest/src/osh/word_parse_test.py
  193. +1,397 −0 opy/_regtest/src/pickle.py
  194. +591 −0 opy/_regtest/src/pkgutil.py
  195. +1,620 −0 opy/_regtest/src/platform.py
  196. +439 −0 opy/_regtest/src/posixpath.py
  197. +340 −0 opy/_regtest/src/re.py
  198. +290 −0 opy/_regtest/src/runpy.py
  199. +5 −0 opy/_regtest/src/spec/bin/argv.py
  200. +8 −0 opy/_regtest/src/spec/bin/printenv.py
  201. +28 −0 opy/_regtest/src/spec/bin/read_from_fd.py
  202. +28 −0 opy/_regtest/src/spec/bin/show_fd_table.py
  203. +23 −0 opy/_regtest/src/spec/bin/stdout_stderr.py
  204. +36 −0 opy/_regtest/src/spec/coproc.py
  205. +596 −0 opy/_regtest/src/sre_compile.py
  206. +264 −0 opy/_regtest/src/sre_constants.py
  207. +836 −0 opy/_regtest/src/sre_parse.py
  208. +96 −0 opy/_regtest/src/stat.py
  209. +656 −0 opy/_regtest/src/string.py
  210. +3 −0 opy/_regtest/src/struct.py
  211. +981 −0 opy/_regtest/src/test/sh_spec.py
  212. +104 −0 opy/_regtest/src/test/sh_spec_test.py
  213. +602 −0 opy/_regtest/src/test/wild_report.py
  214. +430 −0 opy/_regtest/src/textwrap.py
  215. 0 opy/_regtest/src/tools/__init__.py
  216. +35 −0 opy/_regtest/src/tools/csv_concat.py
  217. +157 −0 opy/_regtest/src/tools/deps.py
  218. +1,211 −0 opy/_regtest/src/tools/osh2oil.py
  219. +82 −0 opy/_regtest/src/tools/osh2oil_test.py
  220. +320 −0 opy/_regtest/src/traceback.py
  221. +86 −0 opy/_regtest/src/types.py
  222. +422 −0 opy/_regtest/src/warnings.py
  223. +458 −0 opy/_regtest/src/weakref.py
  224. +369 −0 opy/_regtest/src/web/table/csv2html.py
  225. +3 −15 opy/build.sh
  226. +16 −0 opy/common.sh
  227. +83 −0 opy/regtest.sh
View
@@ -1,13 +1,14 @@
*.swp
*.pyc
.vagrant
_chroot
_tmp
_bin
_build
_devbuild
_deps
_release
_chroot/
_tmp/
_bin/
_build/
_devbuild/
!opy/_regtest/src/_devbuild/
_deps/
_release/
libc.so
fastlex.so
# Python build support

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 4876154

Please sign in to comment.