aboutsummaryrefslogtreecommitdiff
path: root/src/tests-lib.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-22src/gistatic.c: Remove unused MSGsEuAndreh2-16/+8
2021-08-22TODOs.md: Add #task-218e2893-c2d3-caa5-b0e3-cde70b31a3f7EuAndreh1-0/+3
2021-08-22aux/ci/report.sh: Fix missing close tagEuAndreh1-1/+2
2021-08-22Have a single top-level main for running unit-testsEuAndreh9-76/+74
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.
2021-08-22src/gistatic.c: Remove .logo bogus color attributeEuAndreh3-12/+0
2021-08-22src/gistatic.c: Suppress "Download" and "Commit message" columns from tags ↵EuAndreh2-33/+1
table in refs.html
2021-08-21src/gistatic.c: repo_refs_({tag => tags}|{branch => branches})_eachEuAndreh1-4/+4
2021-08-21src/gistatic.c: create functions for loops; encode refs.html page dynamic ↵EuAndreh1-165/+196
content
2021-08-21tests/build-sample.sh: Also build $PWDEuAndreh1-1/+1
2021-08-21src/gistatic.c: Use <OBJECT>_<PART>_<VERB> nomenclature for function namesEuAndreh1-15/+15
2021-08-21Makefile: Run assert-catgets.sh for all C filesEuAndreh1-1/+1
2021-08-21aux/: UpdateEuAndreh5-34/+41
2021-08-21src/tests-lib.c: Move testing helper function and share it with other filesEuAndreh7-31/+58
2021-08-21TODOs.md: Add #task-a0634ded-968e-bce5-3fef-8e1c5e3aab35EuAndreh1-0/+3
2021-08-20TODOs.md: Add #task-9eb2fad6-359b-f221-7dec-490acebe80f5EuAndreh1-0/+3
2021-08-20TODOs.md: Add #task-2ac45f7a-7152-d296-ab36-b0f60e2db3cbEuAndreh1-0/+3
2021-08-20TODOs.md: Mark #task-07c14c08-3757-ced7-36f8-d1ec5c437633 as DONEEuAndreh1-1/+5
2021-08-20src/gistatic.c: Add dark mode CSS media queryEuAndreh3-15/+117
2021-08-20Makefile: Generate build samples before running the testsEuAndreh1-1/+1
This way even with failing tests one can see the interactive evolution of the generated HTML files.
2021-08-20TODOs.md: Mark #task-2e2ad57f-9c31-69d8-e3d9-2708c2b73403 as DONEEuAndreh1-1/+4
2021-08-20TODOs.md: Mark #task-d6cab5ad-0405-5190-f918-766b81daf8c0 as DONEEuAndreh1-1/+11
2021-08-20TODOs.md: s/tar.xz/tar.gz/EuAndreh1-1/+1
2021-08-20src/gistatic.c: s/snapshots/tarballs/EuAndreh1-9/+9
2021-08-20TODOs.md: Mark #task-62a25249-fc96-2774-9df9-663216fc6a0c as DONEEuAndreh1-1/+7
2021-08-20Makefile: Copy libgistatic.a and gistatic.h on "install" targetEuAndreh1-3/+8
2021-08-20src/gistatic.c: Handle overflow of size_t valuesEuAndreh1-6/+73
2021-08-20src/gistatic.c: Reword comment on date formatEuAndreh1-1/+1
2021-08-19src/gistatic.c: Write actual usage and help textsEuAndreh2-5/+30
2021-08-19src/gistatic.c: Include usage message on -h flagEuAndreh1-1/+1
2021-08-19aux/workflow/: Remove unused favicon.png, make favicon.svg a symlinkEuAndreh2-2/+2
2021-08-19.gitignore: Add libgistatic.a and src/config.hEuAndreh1-2/+4
2021-08-19Makefile: Adapt to multiple C sources, generate src/config.h and libgistatic.aEuAndreh1-16/+40
2021-08-19src/gistatic.c: Enforce fn(void) ruleEuAndreh1-11/+14
2021-08-19src/gistatic.c: Move main() to src/main.cEuAndreh3-6/+19
2021-08-19src/tar.{h,c}: Add src/tar.hEuAndreh2-1/+9