Commit Graph

96 Commits

Author SHA1 Message Date
38c59bbde6 Add boost::stacktrace implementation of generate_stacktrace 2023-10-20 15:41:32 -04:00
0b1218184b Add ctest build target that runs unit tests in correct dir.
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
Fix a C++ TEST() macro that was passing on quotes to variable contents.
2023-10-20 15:15:16 -04:00
1dd17011b7 Tweak page responsive layout, and add font scaling.
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
Add build system integration.

Close #14 - Stylesheets, more layout details
Close #15 - Add copyright and legal info in footer
Close #12 - Design and implement a static page with readable, responsibe
layout
2023-10-20 14:31:04 -04:00
b788f5bf78 Finalize clean, simple layout, using bootstrap.
Add styling to make the page look like beige paper, and
use fonts such as Berkeley Mono and IBM Plex Sans to
give it a printed appearance.

Define colorscheme in :root variables so that dark mode
would be easy to implement with @media queries.

Work #13 - Add static content.
Work #14 - Stylesheets, more layout details.
2023-10-20 14:31:04 -04:00
91716158e3 Complete responsive design of the page, with the cutoff being < 768. Will explore what this looks like on a 4K monitor some time in the future.
Work #13
Close #12
2023-10-20 14:31:04 -04:00
0322abce02 Create a static page template with bootstrap support and responsive design 2023-10-20 14:31:04 -04:00
1f94a910fe Create scaffolding for more complex code. Add environment parsing
Some checks failed
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
2023-10-13 15:59:54 -04:00
1669afa459 Improve code readability for last commit
Some checks failed
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
work #8
2023-10-09 23:13:56 -04:00
8331a0e5e4 Work #8: Add C++ symbol demangling with clang's cxxabi.h header 2023-10-09 23:13:56 -04:00
6925f82235 Work #8 - FreeBSD: strip <> from the symbol names 2023-10-09 23:13:56 -04:00
8b4a4ac16a Work #8 - Add demangling support to generate_stacktrace 2023-10-09 23:13:56 -04:00
5df2237153 Work #8 - Exception class with stack tracing support 2023-10-09 23:13:56 -04:00
15f62893f6 Testing the cgi-interface's STDIN and environment variables 2023-10-09 23:13:40 -04:00
bac90f2c43 Move some Catch2 configuration calls closer to the FetchContent call 2023-10-09 23:12:38 -04:00
6968c36cbe Fix use string and cout instead of wstring and wcout
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
2023-09-24 06:54:08 -04:00
fe990c04de Fix broken HTML tag, add meta charset info
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
2023-09-24 07:32:02 -04:00
5675c644ff Fix: widechar support
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-24 07:23:03 -04:00
be6001ba89 Fix: .clang-format listed the same key twice 2023-09-24 07:21:02 -04:00
bdb8c2c924 Fix: Content-Type capitalization, added first HTML output to main() 2023-09-24 07:20:49 -04:00
83bf58765a Fix FreeBSD builds; make boost/execinfo conditional requirements depending on OS
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
2023-09-23 01:27:08 -04:00
bb6bf7231a Add boost::system library linkage
Some checks failed
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
2023-09-20 21:48:20 -04:00
a4a0268aed Relicense as BSD-2 clause, fix cmake + ninja, cmake + make integration 2023-09-20 21:48:06 -04:00
8b11c65ce6 unofficial test: main() outputs HTTP text
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
2023-09-20 20:40:21 -04:00
2b090cab33 Make exception::what() virtual 2023-09-20 20:39:45 -04:00
9462225693 add cmake and ninja support to vim integration
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-19 22:58:31 -04:00
add045c405 Begin work on #8 - Add exception class with backtrace support
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
Additionally:
- Separate src and header files
2023-09-12 22:39:21 -04:00
23226526e3 Close #9 - prevent in-source builds 2023-09-12 20:35:14 -04:00
27ae5f4bae Improve CMake comments and formatting 2023-09-12 16:40:06 -04:00
26bf6f6be2 Merge pull request 'use find_package integration in FetchContent' (#7) from sdaveb-find_pkg into main
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
Reviewed-on: #7

Closes #6
2023-09-12 06:33:53 +00:00
6d3980f9ed Fix syntax, conditional target_set_properties
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-12 02:09:28 -04:00
340e29c29c Update CMakeLists.txt
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
Switch to official way to inhegrate official packages with FetchContent
2023-09-12 05:49:26 +00:00
ed36afdfe5 Switch to static linking to libmdml
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-12 01:23:04 -04:00
e1ad49453f Various build system changes and improvements.
close #1 - Set minimium C version to GNU17 and C++ to C++17
close #2 - use system-installed catch2 if it's available
close #3 - fix the artifacts/bin artifacts/lib division
close #4 - add clang-format support
2023-09-12 01:14:37 -04:00
5e9c3e6c58 Fix subtle bug, test names included quotes, which broke ctest
All checks were successful
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-11 01:23:25 -04:00
512a1c29a3 Fix first unit test, basically hello world
Some checks reported errors
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
2023-09-11 01:07:08 -04:00
e00bd548e4 Update cmark library name, so it links the static version 2023-09-11 01:02:40 -04:00
71d1aee43a Remove cmark unit tests from build, and enable only static lib builds 2023-09-11 00:59:44 -04:00
568524614f Switch from maddy as markdown engine to cmark, the commonmark refernece implementation
Some checks failed
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-11 00:36:55 -04:00
026e34c38d Set CFLAGS and CXXFLAGS to known values instead of CMake defaults
Some checks failed
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
2023-09-10 21:12:03 -04:00
4ebe86c508 Integrate the run-test.sh script with ctest
Some checks failed
buildbot/mdml-cgi-darwin-macos-builder Build started.
buildbot/mdml-cgi-linux-podman-builder Build done.
buildbot/mdml-cgi-freebsd-jail-builder Build done.
2023-09-08 02:16:56 -04:00
46f402e256 Add support for ctest and catch2 test integration. 2023-09-08 02:09:58 -04:00
4595101675 Use catch2 cmake integration 2023-09-08 01:35:15 -04:00
a337c87900 Define unit test and application binary subdirs. See details.
CMakeLists.txt:
- Increase minimum CMake version.
- Try to conditionally enable testing if mdml is not used as a
  dependency
- Switch from github git checkouts for FetchContent, to HTTP zip files,
  for quicker dependency fetching
- Add Catch2 test framework
- Set CMAKE_ARCHIVE_OUTPUT_DIRECTORY to make packaging easier
- Add subdirectories for app and unit tests

src/CMakeLists.txt:
- Make libmdml a shared library.
2023-09-08 00:57:08 -04:00
5777d15e2c Add run-tests.sh
Some checks failed
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
2023-09-03 05:14:02 +00:00
3bb3c4bbbe Set up cmake and dependencies
Some checks reported errors
buildbot/mdml-cgi-freebsd-jail-builder Build done.
buildbot/mdml-cgi-darwin-macos-builder Build done.
buildbot/mdml-cgi-linux-podman-builder Build done.
2023-08-31 19:55:47 -04:00
247cb456d4 Initial commit 2023-08-31 23:52:00 +00:00