aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-07-26test/vis: remove z> testsMarc André Tanner3-25/+0
2020-07-26test/vis: remove z< testsMarc André Tanner3-25/+0
2020-07-26test/vis: remove z- testsMarc André Tanner3-25/+0
2020-07-26test/vis: remove z+ testsMarc André Tanner3-25/+0
2020-07-26test/vis: remove pairwise selection intersectionMarc André Tanner3-25/+0
2020-07-26test/vis: remove pairwise selection union z|Marc André Tanner3-25/+0
2020-07-26test/vis: use ~ instead of ! to complement selectionMarc André Tanner2-2/+2
2020-07-26test/vim: use g~ instead of ~ to swap caseMarc André Tanner1-1/+1
2020-07-26test/fuzz: add @ dump command to print data structureMarc André Tanner1-0/+8
2020-07-26test/fuzz: add % command to print data structure memory informationMarc André Tanner1-0/+12
2020-07-25Add basic text benchmarking infrastructureMarc André Tanner1-0/+128
This adds a new bench command to the interactive shell initially used for fuzzing with AFL. The syntax is: > b op pos [count] where op is either: i (insert) d (delete) r (replace) m (set/get mark) and pos is one of: ^ (start) | (middle) $ (end) % (random) - (consecutively from end to start) + (consecutively from start to end) ~ (stripes with fixed distance) Hence the following would perform 100 insertions at random positions: > b i % 100 Note however, that the used pseudo-random number generator is currently not seeded, meaning multiple execution will start with the same state, making them comparable. Timing is currently performed using monotonic clock_gettime(2).
2020-07-12test/sam: set LANG=en_US.UTF-8Marc André Tanner1-0/+2
Conceptually C.UTF-8 would be the correct setting. However, it is currently not supported by upstream glibc (albeit patched in by various distriubtions e.g. Debian, Ubuntu and Fedora). The vis specific tests already use the same locale, hence it is not a new dependency and the Debian CI script has been adapted accordingly in martanne/vis@b0192ce. Fix #25
2020-07-11test: move failing sam tests to visMarc André Tanner8-2/+2
Contrary to sam we do currently not change the buffer if the external command fails. Fix #24
2020-07-11test/core: let make clean remove generated filesMarc André Tanner1-0/+1
Fix #23
2020-05-30test/fuzz: simplify MakefileMarc André Tanner1-2/+4
2020-05-14test/fuzz: add libfuzzer target for text data structureMarc André Tanner5-6/+37
This reuses the existing fuzzing driver initially written for afl-fuzz. As a consequence, quite a bit of stdio code is involved which is probably not optimal.
2020-05-14test/fuzz: fix compilation by adapting to newer APIMarc André Tanner1-2/+2
2020-05-14test/fuzz: add missing CFLAGSMarc André Tanner1-2/+2
2020-05-13test/vim: remove test which fails on macOSMarc André Tanner3-15/+0
2020-05-13test/core: add basic save/load tests involving linksMarc André Tanner1-0/+22
2020-05-13test/core: add basic save/load sanity testsMarc André Tanner1-5/+46
2020-05-13test/core: remove unused variableMarc André Tanner1-1/+0
2020-05-13test/core: instruct memory sanitizer to track memory originMarc André Tanner1-1/+1
2020-05-13test/core: fix memory leak in array testMarc André Tanner1-0/+1
2020-05-13test/core: update ccan tap moduleMarc André Tanner1-2/+2
Syncs to last upstream change d1a951b82386391b82e48b32403891f85e253565 of the tap module.
2020-05-11test/core: fix compilation with gcc 10Marc André Tanner2-1/+3
Newer gcc rejects multiple definitions of global variables. Fix #21
2020-02-25Revert "test/vis: use C.UTF-8 locale"Marc André Tanner1-1/+1
Apparently the C.UTF-8 locale is not yet supported by upstrem glibc. As a result this breaks the tests on distributions such as Arch Linux which use unmodified glibc. This reverts commit 92ee4fc43fd750246bbc1529082c0c0c8d9f233e. Fix #20
2020-02-22test/vim: add info about skipped testsMarc André Tanner1-0/+1
2020-02-22test/util: fix compilation with old libtermkey versionsMarc André Tanner1-2/+1
2020-02-22Merge branch 'vis-interop-tests' of https://github.com/x1ddos/vis-testMarc André Tanner8-0/+20
2020-02-21test/vis: add a couple lua-vis interop testsalex8-0/+20
The tests assert that the entire file text is written to disk even if mutated in a vis.events.FILE_SAVE_PRE hooks.
2020-02-21vis: allow tests to have an optional lua scriptalex1-0/+9
The script named after <test-name>.lua, if exists, is run just before loading and executing <test-name>.keys. This allows tests to inject Lua code in the running vis instance to help augment the test environment. For instance, a test could listen to vis.events.FILE_SAVE_PRE events and mutate file text.
2020-02-17test/core: avoid compiler warning about zero length format stringMarc André Tanner1-2/+2
2020-02-13test/util: list all enum values to fix compiler warningMarc André Tanner1-5/+8
2020-02-13test/sam: add test for anchor behavior involving new linesMarc André Tanner2-0/+2
2020-02-13test/vim: skip tests if vim is not availableMarc André Tanner1-3/+7
2020-02-13test/vis: use C.UTF-8 localeMarc André Tanner1-1/+1
2020-02-13Fix compiler warningsMarc André Tanner2-1/+6
2018-05-22test/vim: remove case related testsMarc André Tanner2-2/+0
They were bogus. All vim related test cases should be considered as deprecated, they should eventually be migrated/rewritten to only depend on vis.
2018-05-16Merge branch 'check-shadow-permissions' of https://github.com/paride/vis-testMarc André Tanner1-1/+1
2018-05-16Merge branch 'test-cleanup' of https://github.com/paride/vis-testMarc André Tanner2-0/+2
2018-05-15test/vim: remove tests for obsolete featuresMarc André Tanner5-7/+8
Adjust to removed/changed functionality.
2018-05-03Check that /etc/shadow is actually not readableParide Legovini1-1/+1
In some chrooted build enviroments the build/test process runs with UID=0. In these cases the "Opening file without sufficient permissions" test fails, as /etc/shadow is readable. Let's perform it only if it is actually not readable.
2018-04-15make clean: actually cleanup everythingParide Legovini2-0/+2
Fixes: #13.
2018-04-15Explicitly add ISC licenseMarc André Tanner1-0/+13
Close #14
2018-03-29test/vis: delete test depending on external sed(1) invocationMarc André Tanner3-5/+0
2018-02-19test/sam: add regression test to delete empty lines using x g/^$/ dMarc André Tanner2-0/+18
2018-01-26test/vis: adapt verbatim insertion test to new <C-v><C-m> behaviourMarc André Tanner1-2/+1
2017-07-13test/lua: adapt tests to changes in Lua APIMarc André Tanner2-51/+51
2017-07-09test/vis: add more tests for selection operationsMarc André Tanner36-0/+295