aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-19test/vim: remove test involving g~Marc André Tanner2-4/+0
This test does not seem to be stable on the GitHub macOS CI.
2020-10-25test/core: add labs(3) implementation for TIS analyzerMarc André Tanner1-0/+5
While the ACSL specification for the function prototype is present, the actual implementation is missing. Not sure why?
2020-10-24text/core: add basic test for branching of revision treeMarc André Tanner1-0/+68
2020-10-24text/core: skip failing I/O test on CygwinMarc André Tanner1-0/+4
Cygwin does seemingly not support overlapping mmap(2) regions.
2020-10-23text/core: add basic test for linear text_{earlier,later}Marc André Tanner1-0/+14
2020-10-23text/core: test all load/save method combinationsMarc André Tanner1-10/+14
This should trigger the re-mapping case during file save.
2020-10-23text/core: add basic undo/redo sanity check for empty fileMarc André Tanner1-0/+4
2020-10-23text/core: fix undo test name numberingMarc André Tanner1-2/+2
2020-10-23test/core: add basic array_{peek,pop} testMarc André Tanner1-2/+7
2020-10-20test/core: add time(3) stub for tis-interpreterMarc André Tanner1-0/+9
Not sure why a deterministic stub implementation is not provided by the CI environment[1], even though the public tis-interpreter repositories contain relevant code[2,3]. [1] https://github.com/TrustInSoft-CI/TrustInSoft-CI/issues/12 [2] https://github.com/TrustInSoft/tis-kernel/blob/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/share/tis-interpreter/common_time.c#L148 [3] https://github.com/TrustInSoft/tis-interpreter/blob/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/tis-interpreter/common_helpers/common_time.c#L138
2020-10-20test/core: avoid puts("") to print a new lineMarc André Tanner1-2/+2
2020-10-20test/core: fix relative #include directiveMarc André Tanner1-1/+1
The correct location is ensured by specifying the desired include directory (-I flag) to the compiler driver.
2020-10-10test: adapt source list in MakefilesMarc André Tanner2-2/+2
2020-09-29test: add array.c source dependency for core text data structureMarc André Tanner2-2/+2
2020-09-20test/vim: set an UTF-8 localeMarc André Tanner1-0/+1
This is consistent with the vis and sam specific tests which already use the same value. See also ee0edf4e662c588075b53185987183343f27621c and 2751b370cfa2be7ca21620f807ac3e04ce653c28.
2020-08-31test/vim: add test for word text objects with symbolsMarc André Tanner2-0/+33
2020-07-27test/vis: remove entire text object testMarc André Tanner3-17/+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 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