commit | 02f1cd9b2fc4d18f098c89e356119a3a5ea793eb | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Wed Oct 27 12:09:06 2021 -0700 |
committer | Ed Tanous <ed@tanous.net> | Thu Oct 28 16:12:16 2021 +0000 |
tree | 48fed2f5d8e37619987f44fe19538a4d80e03738 | |
parent | 9d832618c74052bd445d6e8b3461946f3c431ca3 [diff] |
Rearrange meson file and remove redundant tests Currently, we build several test binaries. This gives a pattern that every time we add a new test suite, we add a new binary, which doesn't scale all that well as we start getting more unit tests. This commit moves all unit tests into a single binary called "bmcweb_unit_tests", which also allows simplifying some logic around dependencies and src files. Tested: Code builds as it did before, unit tests run and pass, and show the same number of atoms tested. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I95aba1a351ee6a94d7ecc6e1401e35ce2c696e49
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja coverage -C builddir test
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.