1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 01:57:09 +03:00
Commit Graph

30 Commits

Author SHA1 Message Date
Joel Martin
16d5b0c305 runtest: print errors before first prompt.
- Also, remove extraneous ffi module dep in miniMAL.
2017-02-11 12:54:34 -06:00
Joel Martin
0e508fa518 Basic: add read-file. Misc basicpp space savings.
- Add read-file which is similar to read-string but from a file name
  rather than a string. This allows steps 0-2 to load although each
  one eventuall crashes with out of memory after evaluating "123"
  a few times.
- basicpp:
    - Renumber the line numbers so they are ordinally increasing. This
      saves 150 or so bytes because GOTO/GOSUB calls have smaller line
      numbers.
    - Shrink 'IF 123' -> 'IF123' for almost 300 byte savings.[:w
    - Simplify PR_MEMORY_SUMMARY output. Save 75 bytes
- Add missing runtest.py change that allows basic tests to pass.
2016-10-23 22:18:08 -05:00
Joel Martin
a1eb30fcc9 Use more common spelling of deferrable.
Deferable is apprently a less common but correct spelling.
2016-05-10 10:26:39 -05:00
Joel Martin
46e2568944 Makefile/runtest/tests: deferable/optional options
- tests/*: marked with deferable and optional runtest flags. Some
  moving around of tests within different sections to more closely
  align with the guide.
- runtest.py has --deferable/--no-deferable and
  --optional/--no-optional to control whether tests marked as
  deferable and optional are tested.
- Makefile: DEFERABLE and OPTIONAL top level flags to be passed to
  runtest when running tests.
- Also, fix problems in java quoting revealed by step7 test changes.
2016-05-09 21:14:15 -05:00
Dov Murik
0072404965 runtest.py: Repeat failed test cases at the bottom 2015-12-14 22:29:12 -05:00
Joel Martin
f3ea3be300 runtest/travis: make soft mode the default.
Switch runtest.py option to --hard instead of --soft. This changes
tests marked as soft into a hard fail tests.
2015-11-09 21:16:38 -06:00
Joel Martin
595376919b Misc cleanup for midwest.io presentation. 2015-11-07 15:31:25 -06:00
Joel Martin
97e2759994 runtest: split debug/log file. Test stats. 2015-10-30 22:29:18 -05:00
Joel Martin
8d78bc26bf All: fix read/print of \\, and \n 2015-10-30 22:05:49 -05:00
Joel Martin
406761e769 ps: fix self-host and runtest.py parsing issue.
- make sure readline has large enough string for steps2-A
- fix keyword? so that it doesn't leave anything extra on the stack
- fix argparse command line parsing so that that the second '--' on
  the command line is not dropped.
2015-10-12 22:14:45 -05:00
Joel Martin
98af2ae360 runtest.py: add --soft option, refactor test reader.
- also, mark later stepA optional as soft.
2015-10-09 09:31:29 -05:00
Joel Martin
5abaa3dc5e runtest.py: add --log-file option.
For logging the full output from the implementation to a file for
debug purposes.
2015-10-07 11:10:32 -05:00
Joel Martin
d2f0f672f4 runtest.py: allow repeated form in output.
This should fix (or rather, workaround)
https://github.com/kanaka/mal/issues/30 where on OS X the input form
is occasionally echo'd twice for some reason.
2015-03-20 08:40:46 -05:00
Joel Martin
b020aa3e77 runtest: exit when child process exits.
Fixes: https://github.com/kanaka/mal/issues/40

- Simplify exception handling by combining keyboard exception into
  other exception handler. Print out output buffer on all exceptions.
2015-03-19 10:49:36 -05:00
Joel Martin
82acd3de8b runtest: set PERL_RL=false, remove --raw.
Thanks to suggestion from Stephen Thirlwall
(99ec06dd23 (commitcomment-10278903))
2015-03-19 08:00:28 -05:00
Joel Martin
92dcc81529 runtest: set INPUTRC to /dev/null
- try and avoid any strange readline init script settings.
2015-03-18 23:51:14 -05:00
Joel Martin
b3c30da9fc runtest: set pty size to fix readline of long lines.
- Also, add a long line test to step0 tests.
- Fix java step0 arg parsing.
- Fix postscript long line reads (larger buffer)
- Add mal step0_repl
2015-03-18 13:08:08 -05:00
Joel Martin
8caf621154 runtest: set TERM=dumb, remove --mono mode 2015-03-18 08:47:01 -05:00
Joel Martin
10034e8272 runtest.py: Ouput current buffer if keyboard interrupt.
Suggestion on https://github.com/kanaka/mal/issues/40#issuecomment-81015115
by https://github.com/boxed
2015-03-15 10:52:59 -05:00
Joel Martin
ab01be1898 runtest.py: split --no-pty from --mono 2015-03-10 13:30:56 -05:00
james sangho nah
8e4628da2c compatible with python 3 2015-03-07 09:32:23 +13:00
Joel Martin
612bfe4af7 runtest.py: cleanup all grandchildren too.
Launch Popen with process group and kill that instead. Use atexit to
register cleanup function rather than direct calls.
2015-03-02 17:36:09 -06:00
Joel Martin
9a3835358a runtest.py: cleanup and rename --redirect to --mono 2015-03-02 13:41:49 -06:00
Joel Martin
96deb6a966 runtest.py: fix C# and VB tests.
It is an ugly fix, but basically, use regular Popen (without pty) when
using mono, and do hardcoded echo of the commands when they are
sent/written. It could be worse I suppose...
2015-03-02 00:23:58 -06:00
Joel Martin
c53af760df runtest.py: fix cleanup to use kill.
Still doesn't work with C# and VB.
2015-03-01 23:41:32 -06:00
Joel Martin
f6c83b2b80 runtest.py: cleanup orphan test processes. 2015-02-28 16:25:00 -06:00
Joel Martin
7907cd904a runtest.py: order of magnitude faster.
C#, VB and Lua tests are broken though.
2015-02-28 15:41:18 -06:00
Joel Martin
cc021efe10 Add step5/9 tests for impls that support it.
- Also remove broken make/tests/*.mk tests. Not used any more.
2014-04-27 17:58:48 -05:00
Joel Martin
53beaa0a6d CS: add step1_read_print 2014-04-06 22:13:14 -05:00
Joel Martin
3169070063 Current state of mal for Clojure West lighting talk. 2014-03-24 16:32:24 -05:00