Commit Graph

43 Commits

Author SHA1 Message Date
Kartik Agaram 6e1eeeebfb 5485 - promote SubX to top-level 2019-07-27 17:47:59 -07:00
Kartik Agaram 46b6e2a349 4255 2018-06-07 23:30:54 -07:00
Kartik Agaram 17d3003df8 4254 2018-06-06 10:09:34 -07:00
Kartik Agaram 53172ce13a 4253 - support running just a single C test
We've had this ability for Mu scenarios forever.
2018-06-06 09:27:44 -07:00
Kartik Agaram 8f97725d00 4252 2018-06-06 08:56:50 -07:00
Kartik K. Agaram fa708f553a 4162 2017-12-22 00:45:48 -08:00
Kartik K. Agaram ec99eb7a2a 3966 2017-07-09 14:34:17 -07:00
Kartik K. Agaram 6573fe1f1a 3965 - get rid of the teardown() function
Instead of setup() and teardown() we'll just use a reset() function from
now on, which will bring the machine back to a good state before each
test or run, and also before exit (to avoid memory leaks).
2017-07-09 14:25:48 -07:00
Kartik K. Agaram 6ff9413c5d 3964 - eliminate one global from the test harness
I'm in the process of making it more self-contained so I can use it in
another project.
2017-07-09 13:55:32 -07:00
Kartik K. Agaram 3e31f29a5b 3907 - standardize test failure messages 2017-06-15 10:45:03 -07:00
Kartik K. Agaram a802f0cedc 3749 2017-03-02 04:41:24 -08:00
Kartik K. Agaram 9a81d7460f 3561 2016-10-22 16:56:07 -07:00
Kartik K. Agaram c02478c401 3558 2016-10-22 16:27:36 -07:00
Kartik K. Agaram 6a9d8191df 3557 2016-10-22 16:22:17 -07:00
Kartik K. Agaram eef0251c59 3532
Coalesce all the management of number of failed scenarios.
2016-10-20 20:22:12 -07:00
Kartik K. Agaram 6c96a437ce 3522 2016-10-19 22:10:35 -07:00
Kartik K. Agaram f2043a7324 3433 2016-10-01 23:14:17 -07:00
Kartik K. Agaram 60c566eaac 3291
Stop double-counting failing tests in some situations.
2016-09-02 00:42:43 -07:00
Kartik K. Agaram 5f05e954ee 3273
Undo 3272. The trouble with creating a new section for constants is that
there's no good place to order it since constants can be initialized
using globals as well as vice versa. And I don't want to add constraints
disallowing either side.

Instead, a new plan: always declare constants in the Globals section
using 'extern const' rather than just 'const', since otherwise constants
implicitly have internal linkage (http://stackoverflow.com/questions/14894698/why-does-extern-const-int-n-not-work-as-expected)
2016-08-28 18:37:57 -07:00
Kartik K. Agaram c7fde8d4e4 3272
Move global constants into their own section since we seem to be having
trouble linking in 'extern const' variables when manually cleaving mu.cc
into separate compilation units.
2016-08-28 17:08:01 -07:00
Kartik K. Agaram 1ba81b0f57 3270
Clean up the Globals section so that we can generate extern declarations
for all globals out using this command after we carve it out into
globals.cc:

  grep ';' globals.cc |perl -pwe 's/[=(].*/;/' |perl -pwe 's/^[^\/# ]/extern $&/' > globals.h

The first perl command strips out initializers. The second prepends
'extern'. This simplistic approach requires each global definition to
lie all on one line.
2016-08-28 15:21:12 -07:00
Kartik K. Agaram 5a9e3a119d 3177
Systematize all the newlines while displaying test progress.
2016-08-13 17:17:24 -07:00
Kartik K. Agaram 0ca996fad6 3165 2016-08-10 09:12:11 -07:00
Kartik K. Agaram 385ff13617 3027 2016-06-02 10:40:06 -07:00
Kartik K. Agaram b24eb4766a 2773 - switch to 'int'
This should eradicate the issue of 2771.
2016-03-13 20:26:47 -07:00
Kartik K. Agaram b5ab709c53 2700 - fail tests on unexpected errors or warnings 2016-02-25 07:31:20 -08:00
Kartik K. Agaram ad6eb92329 2697 2016-02-24 18:08:20 -08:00
Kartik K. Agaram 6c1376f830 2095
Finally terminate the experiment of keeping debug prints around. I'm
also going to give up on maintaining counts.

What we really need is two kinds of tracing:
  a) For tests, just the domain-specific facts, organized by labels.
  b) For debugging, just transient dumps to stdout.
b) only works if stdout is clean by default.

Hmm, I think this means 'stash' should be the transient kind of trace.
2015-08-28 23:25:21 -07:00
Kartik K. Agaram 37537bf347 1965 - don't die on '-' ingredient
Thanks Caleb Couch.
2015-08-10 11:15:28 -07:00
Kartik K. Agaram 6179649e43 1641
Snapshot in switching editor-data.cursor to editor-data.before-cursor.
But I have trouble coercing events to touch events, even though using
the integer tag 2 for the conversion works.
2015-06-24 17:43:45 -07:00
Kartik K. Agaram afa42503cd 1474 - another warning 2015-05-26 15:48:35 -07:00
Kartik K. Agaram 40be252286 1437 2015-05-23 12:54:06 -07:00
Kartik K. Agaram 047296d811 1434 - support all unicode spaces 2015-05-23 12:35:05 -07:00
Kartik K. Agaram ac0e9db526 1391 - avoid unsigned integers 2015-05-17 02:22:41 -07:00
Kartik K. Agaram 304963834d 1389 2015-05-16 23:17:42 -07:00
Kartik K. Agaram 65ccad4c6e 1388 2015-05-16 21:24:47 -07:00
Kartik K. Agaram 0f125d5ff1 1387 2015-05-16 21:24:21 -07:00
Kartik K. Agaram 683d53ca26 1358 - inform shell of test failure 2015-05-12 17:40:04 -07:00
Kartik K. Agaram 827898fc1b 1357 - temporarily revert floating-point support 2015-05-12 17:10:33 -07:00
Kartik K. Agaram 3663ca6c2d 1356 - snapshot #2: floating point support
I added one test to check that divide can return a float, then hacked at
the rippling failures across the entire entire codebase until all tests
pass. Now I need to look at the changes I made and see if there's a
system to them, identify other places that I missed, and figure out the
best way to cover all cases. I also need to show real rather than
encoded values in the traces, but I can't use value() inside reagent
methods because of the name clash with the member variable. So let's
take a snapshot before we attempt any refactoring. This was non-trivial
to get right.

Even if I convince myself that I've gotten it right, I might back this
all out if I can't easily *persuade others* that I've gotten it right.
2015-05-12 17:00:19 -07:00
Kartik K. Agaram 54e4548dd1 1354 2015-05-12 08:47:06 -07:00
Kartik K. Agaram 5798a11bf0 1343 2015-05-11 10:04:16 -07:00
Kartik K. Agaram b96af395b9 1276 - make C++ version the default
I've tried to update the Readme, but there are at least a couple of issues.
2015-05-05 21:17:24 -07:00