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 ca9616bad8 termptyesc: extract SD/SU to their own functions 4 years ago
..
README.md tests: add first tests + test framework 4 years ago
cha.sh termptyesc: CHA has to take into account DECOM + tests 4 years ago
cnl.sh tests: avoid using $ in printf 4 years ago
colors.sh tests: add one on colors 4 years ago
cpl.sh tests: avoid using $ in printf 4 years ago
cup.sh tests: CUP: test going outside margins 4 years ago
cursor-movements.sh tests/cursor-movements.sh: test cursor up for real 4 years ago
cursor-shape-0.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-1.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-2.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-3.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-4.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-5.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-6.sh tests: on cursor shapes and regen tests.results 4 years ago
cursor-shape-7.sh tests: on cursor shapes and regen tests.results 4 years ago
dch.sh tests: avoid using $ in printf 4 years ago
decaln.sh tests: ensure DECALN moves cursor to 0;0 4 years ago
decawm.sh tests: avoid using $ in printf 4 years ago
decbi.sh termptyesc: support DECFI 4 years ago
deccara-no-rectangular-no-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 4 years ago
deccara-no-rectangular-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 4 years ago
deccara-rectangular-no-restrict-cursor.sh termptyesc: handle deccara in its rectangular form + tests 4 years ago
deccara-rectangular-restrict-cursor.sh termptyesc: handle deccara in its rectangular form + tests 4 years ago
deccra.sh termptyesc: support DECCRA + tests 4 years ago
decera-decfra-extra.sh tests: avoid using $ in printf 4 years ago
decera-no-restrict-cursor.sh tests: avoid using $ in printf 4 years ago
decera-restrict-cursor.sh tests: avoid using $ in printf 4 years ago
decfi.sh termptyesc: refuse no value on decfra on the character to fill up + tests 4 years ago
decfra-decera-default-values-no-restrict-cursor.sh termptyesc: refuse no value on decfra on the character to fill up + tests 4 years ago
decfra-decera-default-values-restrict-cursor.sh termptyesc: refuse no value on decfra on the character to fill up + tests 4 years ago
decfra-no-restrict-cursor.sh tests: avoid using $ in printf 4 years ago
decfra-restrict-cursor.sh tests: avoid using $ in printf 4 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 4 years ago
decrara-no-rectangular-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 4 years ago
decrara-rectangular-no-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 4 years ago
decrara-rectangular-restrict-cursor.sh termptyesc: DECCRARA/DECRARA when not in rectangle mode + tests 4 years ago
decsclm.sh tests: avoid using $ in printf 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 4 years ago
dsr-deccksr.sh termptyesc: add support DSR-DECCKSR + test 4 years ago
dsr-dir.sh termptyesc: handle DSR-DIR (Data Integrity Report) + test 4 years ago
dsr-kbd.sh tytest: add write buffer to checksum 4 years ago
dsr-msr.sh termptyesc: support DSR-MSR (0 Macro Space) + test 4 years ago
dsr-os.sh termptyesc: support DSR-OS + test 4 years ago
dsr-pp.sh termpty: support DSR-PP (Printer Port) + test 4 years ago
dsr-udk.sh termptyesc: support DSR-UDK + 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 4 years ago
ich.sh tests: ICH with amount=0 4 years ago
il.sh tests: add missing il.sh 4 years ago
run_tests.sh tests/termptyesc: handle DECSACE 4 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. 4 years ago
sgr-long.sh termptyesc: 98/108 are not valid color codes + test 4 years ago
sgr-truecolors.sh termptyesc: fix truecolors parsing + tests 4 years ago
su.sh termptyesc: extract SD/SU to their own functions 4 years ago
tabs.sh tests: add one on tabs 4 years ago
tests.results termptyesc: extract SD/SU to their own functions 4 years ago
xterm-osc-0-title-icon.sh termptyesc: act like xterm, do not report title/icon-name 4 years ago
xterm-osc-1-icon.sh termptyesc: act like xterm, do not report title/icon-name 4 years ago
xterm-osc-2-title.sh termptyesc: act like xterm, do not report title/icon-name 4 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.