Add pexpect-based interactive testing framework

This adds a new interactive test framework based on Python's pexpect. This
is intended to supplant the TCL expect-based tests.

New tests go in `tests/pexpects/`. As a proof-of-concept, the
pipeline.expect test and the (gnarly) bind.expect test are ported to the
new framework.
This commit is contained in:
ridiculousfish
2020-03-02 15:20:29 -08:00
parent 218fe15264
commit 3b7feb38e9
5 changed files with 613 additions and 12 deletions

View File

@@ -29,6 +29,9 @@ endif()
# Copy littlecheck.py
configure_file(build_tools/littlecheck.py littlecheck.py COPYONLY)
# Copy pexpect_helper.py
configure_file(build_tools/pexpect_helper.py pexpect_helper.py COPYONLY)
# Make the directory in which to run tests.
# Also symlink fish to where the tests expect it to be.
# Lastly put fish_test_helper there too.