aboutsummaryrefslogtreecommitdiff
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup repo, reinit in shEuAndreh2023-04-144-153/+2
|
* src/*.c: Add newline between function return type and its nameEuAndreh2021-08-271-13/+55
| | | | | | | | | | | | | The purpose of this change is two-fold: - make function and variable declarations grep-friendly (one can use a pattern /^fn_name/ to find the definition); - make the lines shorter, so less functions need to have their arguments span over many lines. This is more grep-friendly both for finding the function definition, but also for matching on the return type of the function or the variable. Update tests/c-lint.sh to enforce this.
* public/makefile.svg: Start generating it with makefile2graph and graphvizEuAndreh2021-08-232-0/+0
|
* tests/c-lint.sh: Use grep exit status instead of empty string outputEuAndreh2021-08-221-2/+3
|
* tests/dev-integration.sh: Fix calls to executable and testEuAndreh2021-08-221-4/+3
|
* Have a single top-level main for running unit-testsEuAndreh2021-08-222-5/+4
| | | | | | | | | | | | | | | | | | | Instead of each .c file becoming a self-standing .t executable file, and being run for executing the unit tests local to the file, now each .c becomes a .to object (akin to a .o object, but one where the -DTEST flag is given to the compiler). After that, all the .to objects are linked together in a gistatic-tests executable, in a equivalent way that all .o files get linked together in a gistatic executable. This change was necessary in order to allow dependencies between objects. The next task will be making a tar of a repository tree checkout, and src/gistatic.{o,to} will start depending on src/tar.{o,to}. If each file has its own main function when -DTEST is given, then I wont be able to link them together. I took the opportunity that I had to change the Makefile, and I improved the dependency between targets and dependencies greatly. From what I can tell now, it is correct.
* src/gistatic.c: Remove .logo bogus color attributeEuAndreh2021-08-222-8/+0
|
* src/gistatic.c: Suppress "Download" and "Commit message" columns from tags ↵EuAndreh2021-08-221-6/+0
| | | | table in refs.html
* tests/build-sample.sh: Also build $PWDEuAndreh2021-08-211-1/+1
|
* src/tests-lib.c: Move testing helper function and share it with other filesEuAndreh2021-08-212-2/+0
|
* src/gistatic.c: Add dark mode CSS media queryEuAndreh2021-08-202-10/+78
|
* tests/c-lint.sh: Add more strict linting rulesEuAndreh2021-08-191-0/+22
|
* tests/build-sample.sh: Add, to be included in the "check" targetEuAndreh2021-08-191-0/+9
|
* tests/assert-catgets.sh: Mark as executableEuAndreh2021-08-191-0/+0
|
* tests/: Move refs.html to sub-directoryEuAndreh2021-08-174-3/+136
|
* src/gistatic.c: Add <meta name="description" .../> to HTML <head>EuAndreh2021-08-172-2/+4
|
* src/gistatic.c: Split alt messages of index and repository pagesEuAndreh2021-08-171-1/+3
|
* src/gistatic.c: Keep default <a> underline lookEuAndreh2021-08-171-5/+0
| | | | | This is more accessible, as the links have the extra visual queue that they're links.
* aux/, tests/lib.sh: UpdateEuAndreh2021-08-171-7/+8
|
* Add stub src/tar.cEuAndreh2021-08-071-0/+1
|
* tests/dev-integration.sh: Use a single "disable" declarationEuAndreh2021-08-061-5/+1
|
* mv aux/assert-catgets.sh tests/assert-catgets.shEuAndreh2021-08-061-0/+67
|
* tests/dev-integration.sh: Address ShellCheck offensesEuAndreh2021-08-061-2/+9
|
* src/gistatic.c: Trim trailing newline of description filesEuAndreh2021-08-052-2/+0
|
* tests/: Add integration tests, also test with ValgrindEuAndreh2021-08-057-0/+548
|
* Move tests/resources{ => /repositories}/repo*EuAndreh2021-08-0563-0/+0
|
* tests/resources/*: Embed Git repositories directlyEuAndreh2021-08-0463-0/+2940
| | | | Implements #question-5414aee2-031a-5759-2a22-d572ee899ac0.
* Remove submodulesEuAndreh2021-08-042-0/+0
|
* tests/submodules/: Add submodule repositories for unit and (future) ↵EuAndreh2021-07-312-0/+0
| | | | integration tests
* Remove tests/cli-opts.shEuAndreh2021-05-311-0/+0
|
* Add empty tests/cli-opts.shEuAndreh2021-03-061-0/+0