summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-26test/vis: remove z> testsMarc André Tanner
2020-07-26test/vis: remove z< testsMarc André Tanner
2020-07-26test/vis: remove z- testsMarc André Tanner
2020-07-26test/vis: remove z+ testsMarc André Tanner
2020-07-26test/vis: remove pairwise selection intersectionMarc André Tanner
2020-07-26test/vis: remove pairwise selection union z|Marc André Tanner
2020-07-26test/vis: use ~ instead of ! to complement selectionMarc André Tanner
2020-07-26test/vim: use g~ instead of ~ to swap caseMarc André Tanner
2020-07-26test/fuzz: add @ dump command to print data structureMarc André Tanner
2020-07-26test/fuzz: add % command to print data structure memory informationMarc André Tanner
2020-07-25Add basic text benchmarking infrastructureMarc André Tanner
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é Tanner
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é Tanner
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é Tanner
Fix #23
2020-05-30test/fuzz: simplify MakefileMarc André Tanner
2020-05-14test/fuzz: add libfuzzer target for text data structureMarc André Tanner
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é Tanner
2020-05-14test/fuzz: add missing CFLAGSMarc André Tanner
2020-05-13test/vim: remove test which fails on macOSMarc André Tanner
2020-05-13test/core: add basic save/load tests involving linksMarc André Tanner
2020-05-13test/core: add basic save/load sanity testsMarc André Tanner
2020-05-13test/core: remove unused variableMarc André Tanner
2020-05-13test/core: instruct memory sanitizer to track memory originMarc André Tanner
2020-05-13test/core: fix memory leak in array testMarc André Tanner
2020-05-13test/core: update ccan tap moduleMarc André Tanner
Syncs to last upstream change d1a951b82386391b82e48b32403891f85e253565 of the tap module.
2020-05-11test/core: fix compilation with gcc 10Marc André Tanner
Newer gcc rejects multiple definitions of global variables. Fix #21
2020-02-25Revert "test/vis: use C.UTF-8 locale"Marc André Tanner
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é Tanner
2020-02-22test/util: fix compilation with old libtermkey versionsMarc André Tanner
2020-02-22Merge branch 'vis-interop-tests' of https://github.com/x1ddos/vis-testMarc André Tanner
2020-02-21test/vis: add a couple lua-vis interop testsalex
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 scriptalex
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é Tanner
2020-02-13test/util: list all enum values to fix compiler warningMarc André Tanner
2020-02-13test/sam: add test for anchor behavior involving new linesMarc André Tanner
2020-02-13test/vim: skip tests if vim is not availableMarc André Tanner
2020-02-13test/vis: use C.UTF-8 localeMarc André Tanner
2020-02-13Fix compiler warningsMarc André Tanner
2018-05-22test/vim: remove case related testsMarc André Tanner
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é Tanner
2018-05-16Merge branch 'test-cleanup' of https://github.com/paride/vis-testMarc André Tanner
2018-05-15test/vim: remove tests for obsolete featuresMarc André Tanner
Adjust to removed/changed functionality.
2018-05-03Check that /etc/shadow is actually not readableParide Legovini
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 Legovini
Fixes: #13.
2018-04-15Explicitly add ISC licenseMarc André Tanner
Close #14
2018-03-29test/vis: delete test depending on external sed(1) invocationMarc André Tanner
2018-02-19test/sam: add regression test to delete empty lines using x g/^$/ dMarc André Tanner
2018-01-26test/vis: adapt verbatim insertion test to new <C-v><C-m> behaviourMarc André Tanner
2017-07-13test/lua: adapt tests to changes in Lua APIMarc André Tanner
2017-07-09test/vis: add more tests for selection operationsMarc André Tanner