Terminal emulator with all the bells and whistles https://www.enlightenment.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Boris Faure 2ffbe38d43 termptyesc: support aliases for cursor Up/Left + tests 4 years ago
..
README.md tests: add first tests + test framework 5 years ago
cbt.sh termptyesc: extract CBT handler to its own function + tests 4 years ago
cha.sh termptyesc: CHA has to take into account DECOM + tests 4 years ago
cnl.sh tests: avoid using $ in printf 5 years ago
colors.sh tests/colors: use \033 in printf instead of \x1b 4 years ago
cpl.sh tests: avoid using $ in printf 5 years ago
ctc.sh termptyesc: handle CTC + tests 4 years ago
cup.sh tests: CUP: test going outside margins 4 years ago
cursor-movements-alias.sh termptyesc: support aliases for cursor Up/Left + tests 4 years ago
cursor-movements.sh termptyesc: support aliases for cursor Up/Left + tests 4 years ago
cursor-shape-0.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-1.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-2.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-3.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-4.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-5.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-6.sh tests: on cursor shapes and regen tests.results 5 years ago
cursor-shape-7.sh tests: on cursor shapes and regen tests.results 5 years ago
da.sh termptyesc: export DA handler to its own function + tests 4 years ago
dch.sh tests: avoid using $ in printf 5 years ago
decaln.sh tests: ensure DECALN moves cursor to 0;0 4 years ago
decawm.sh tests: avoid using $ in printf 5 years ago
decbi.sh termptyesc: support DECFI 5 years ago
deccara-no-rectangular-no-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 5 years ago
deccara-no-rectangular-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 5 years ago
deccara-rectangular-no-restrict-cursor.sh termptyesc: handle deccara in its rectangular form + tests 5 years ago
deccara-rectangular-restrict-cursor.sh termptyesc: handle deccara in its rectangular form + tests 5 years ago
deccra.sh termptyesc: support DECCRA + tests 4 years ago
decera-decfra-extra.sh tests: avoid using $ in printf 5 years ago
decera-no-restrict-cursor.sh tests: avoid using $ in printf 5 years ago
decera-restrict-cursor.sh tests: avoid using $ in printf 5 years ago
decfi.sh termptyesc: refuse no value on decfra on the character to fill up + tests 5 years ago
decfra-decera-default-values-no-restrict-cursor.sh termptyesc: refuse no value on decfra on the character to fill up + tests 5 years ago
decfra-decera-default-values-restrict-cursor.sh termptyesc: refuse no value on decfra on the character to fill up + tests 5 years ago
decfra-no-restrict-cursor.sh tests: avoid using $ in printf 5 years ago
decfra-restrict-cursor.sh tests: avoid using $ in printf 5 years ago
decic-decdc.sh termptyesc: support DECIC/DECDC + tests 4 years ago
decrara-no-rectangular-no-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 5 years ago
decrara-no-rectangular-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 5 years ago
decrara-rectangular-no-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 5 years ago
decrara-rectangular-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 5 years ago
decsclm.sh tests: avoid using $ in printf 5 years ago
decst8c.sh termptyesc: support DECST8C + tests 4 years ago
dl.sh termptyesc: DL moves the cursor to left margin + tests 4 years ago
dsr-cpr.sh termptyesc: DSR-CPR takes cursor restriction into account + test 5 years ago
dsr-deccksr.sh termptyesc: add support DSR-DECCKSR + test 5 years ago
dsr-dir.sh termptyesc: handle DSR-DIR (Data Integrity Report) + test 5 years ago
dsr-kbd.sh tytest: add write buffer to checksum 5 years ago
dsr-msr.sh termptyesc: support DSR-MSR (0 Macro Space) + test 5 years ago
dsr-os.sh termptyesc: support DSR-OS + test 5 years ago
dsr-pp.sh termpty: support DSR-PP (Printer Port) + test 5 years ago
dsr-udk.sh termptyesc: support DSR-UDK + test 5 years ago
ech.sh termptyesc: extract ECH handler to its own function + test 4 years ago
ed-0.sh termptyesc: move ED handler to its own functions + add tests 4 years ago
ed-1.sh termptyesc: move ED handler to its own functions + add tests 4 years ago
ed-2.sh termptyesc: move ED handler to its own functions + add tests 4 years ago
ed-3.sh termptyesc: move ED handler to its own functions + add tests 4 years ago
ed-4.sh termptyesc: move ED handler to its own functions + add tests 4 years ago
el.sh termptyesc: export EL handler to its own function + add tests 4 years ago
fonts.sh tests: add tests on fonts: normal/italic/blod/bolditalic/fraktur/encircled 5 years ago
hpa.sh termptyesc: CHA and HPA are the same 4 years ago
hvp.sh tests: add some on HVP 4 years ago
ich.sh tests: ICH with amount=0 4 years ago
il.sh tests: add missing il.sh 4 years ago
rep.sh termptyesc: extract REP handler to its own function + tests 4 years ago
run_tests.sh tests/termptyesc: handle DECSACE 5 years ago
sd.sh termptyesc: extract SD/SU to their own functions 4 years ago
sgr-leading-trailing-semicolon.sh termptyesc: handle CSI_ARG_ERROR in some SGR. 5 years ago
sgr-long.sh termptyesc: 98/108 are not valid color codes + test 5 years ago
sgr-truecolors.sh termptyesc: fix truecolors parsing + tests 5 years ago
su.sh termptyesc: extract SD/SU to their own functions 4 years ago
tabs.sh tests: add one on tabs 5 years ago
tbc.sh termptyesc: extract TBC to its own function + tests 4 years ago
tests.results termptyesc: support aliases for cursor Up/Left + tests 4 years ago
text_append_after_right_margin.sh termptyops: do not wrap to left margin when already past right margin 4 years ago
uts.sh termptyesc: support Unset Tab Stop (only VTE so far) + tests 4 years ago
vpa.sh termptyesc: export VPA handler to its own function + tests 4 years ago
xterm-osc-0-title-icon.sh termptyesc: act like xterm, do not report title/icon-name 5 years ago
xterm-osc-1-icon.sh termptyesc: act like xterm, do not report title/icon-name 5 years ago
xterm-osc-2-title.sh termptyesc: act like xterm, do not report title/icon-name 5 years ago

README.md

Very small test framework for Terminology

Goal

Avoid regressions in Terminology's code that parse and interprets escape codes.

Dependencies

  • tytest, compiled with -D tests=true when running meson
  • a posix shell

Tytest

tytest is a simple binary that takes escape codes in input and output an md5 sum. This checksum is computed on the state of terminology after parsing and interpreting those escape codes.

Test cases

Test cases are simple shell scripts that output escape codes.

How to run the tests

A shell script called run_tests.sh is provided to run all the tests given in a test results file. See run_tests.sh --help for more information.

Test results file

When running a test through tytest, an md5 sum is computed. This checksum is stored with the name of the test in a file called tests.results. If terminology's behaviour changed, then the checksum will change. This will be noticed by run_tests.sh and will show those tests as failed.