Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 755 Bytes

autogenerated-tests.md

File metadata and controls

31 lines (23 loc) · 755 Bytes

Autogenerated Tests

Prev | Table of Contents | Next

There is some code to randomly generate test cases. For now, these autogenerated test cases are limited to a small number of arithmetic expressions, almost all of which demonstrate variability on at least one flag.

This tool requires an additional python package dependency, numpy.

pip install numpy

To run this generator, you will probably want an already initialized flit test directory (let's say it is located at project/flit-tests).

FLiT/gensrc/gensrc.py --outdir project/flit-tests/tests 1

Prev | Table of Contents | Next