2017-04-30 14:49:46 +02:00
|
|
|
. tests/shlib/common.sh
|
2017-04-30 12:40:29 +02:00
|
|
|
set +x
|
|
|
|
|
|
|
|
vterm_setup() {
|
2017-05-21 01:33:21 +02:00
|
|
|
local vterm_suf="$1" ; shift
|
2017-04-30 12:40:29 +02:00
|
|
|
|
2017-05-21 01:33:21 +02:00
|
|
|
make_test_root "vterm_$vterm_suf"
|
2017-04-30 12:40:29 +02:00
|
|
|
|
2017-05-21 01:33:21 +02:00
|
|
|
mkdir "$TEST_ROOT/path"
|
2017-04-30 12:40:29 +02:00
|
|
|
|
2017-05-21 01:33:21 +02:00
|
|
|
ln -s "$(which "${PYTHON}")" "$TEST_ROOT/path/python"
|
|
|
|
ln -s "$(which bash)" "$TEST_ROOT/path"
|
|
|
|
|
|
|
|
cp -r "$ROOT/tests/terminfo" "$TEST_ROOT"
|
2017-04-30 12:40:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
vterm_shutdown() {
|
2017-05-21 01:33:21 +02:00
|
|
|
rm_test_root
|
2017-04-30 12:40:29 +02:00
|
|
|
}
|