A cross-platform, OpenGL terminal emulator.
Go to file
Joe Wilm 66dbd29cd1 Add support for recording/running ref tests
Ref tests use a recording of the terminal protocol and a serialization
of the grid state to check that the parsing and action handling systems
produce the correct result. Ref tests may be recorded by running
alacritty with `--ref-test` and closing the terminal by using the window
"X" button. At that point, the recording is fully written to disk, and a
serialization of important state is recorded. Those files should be
moved to an appropriate folder in the `tests/ref/` tree, and the
`ref_test!` macro invocation should be updated accordingly.

A couple of changes were necessary to make this work:

* Ref tests shouldn't create a pty; the pty was refactored out of the
  `Term` type.
* Repeatable lines/cols were needed; on startup, the terminal is resized
* by default to 80x24 though that may be changed by passing
  `--dimensions w h`.
* Calculating window size based on desired rows/columns and font metrics
  required making load_font callable multiple times.
* Refactor types into library crate so they may be imported in an
  integration test.
* A whole bunch of types needed symmetric serialization and
  deserialization. Mostly this was just adding derives, but the custom
  deserialization of Rgb had to change to a deserialize_with function.

This initially adds one ref test as a sanity check, and more will be
added in subsequent commits. This initial ref tests just starts the
terminal and runs `ll`.
2016-11-19 21:34:11 -08:00
copypasta Implement copypasta::Load for macos::Clipboard 2016-10-08 20:57:30 -07:00
docs Add Summary of ANSI standards for ASCII terminals 2016-05-28 08:39:36 -07:00
font Add support for recording/running ref tests 2016-11-19 21:34:11 -08:00
res Live shader reloading is now a feature 2016-10-27 08:43:23 -07:00
scripts Add script for creating flamegraph with perf 2016-10-08 21:30:21 -07:00
src Add support for recording/running ref tests 2016-11-19 21:34:11 -08:00
tests Add support for recording/running ref tests 2016-11-19 21:34:11 -08:00
.gitignore Add script for creating flamegraph with perf 2016-10-08 21:30:21 -07:00
.travis.yml Pin nightly compiler on travis 2016-08-14 20:13:20 -07:00
Cargo.lock Add support for recording/running ref tests 2016-11-19 21:34:11 -08:00
Cargo.toml Add support for recording/running ref tests 2016-11-19 21:34:11 -08:00
LICENSE-APACHE Add license headers to source files 2016-06-29 20:59:14 -07:00
TASKS.md Update task list 2016-06-06 14:59:45 -07:00
alacritty.yml Make bindings configurable from alacritty.yml 2016-11-17 17:17:54 -08:00
build.rs Add license headers to source files 2016-06-29 20:59:14 -07:00
rustc-version Rustup 2016-11-11 16:55:58 -08:00