Changeset f866d15 for tests/test.py


Ignore:
Timestamp:
Sep 28, 2020, 5:00:45 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
21c3ea1
Parents:
40c81e5
Message:

test.py now warns if an .expect file is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/test.py

    r40c81e5 rf866d15  
    366366                failed = 0
    367367
     368                # check if the expected files aren't empty
     369                if not options.regenerate_expected:
     370                        for t in tests:
     371                                if is_empty(t.expect()):
     372                                        print('WARNING: test "{}" has empty .expect file'.format(t.target()), file=sys.stderr)
     373
    368374                # for each build configurations, run the test
    369375                with Timed() as total_dur:
Note: See TracChangeset for help on using the changeset viewer.