project: the repository skeleton
The SMS app for imsd's net.catcrafts.IMS1.Messaging interface starts here: the licence (GPL-3.0-only), FUNDING.yml, README and AGENTS, a project.cpp with the three build products (imsd-messages-core: std and Crafter.DB; imsd-messages-bus: GLib; the imsd-messages executable), their module units as stubs, the version constant, the bundled Noto Sans font with its OFL text, and the first test. This commit is the base every later range is reviewed against. Tested: crafter-build builds the three products and --version answers, crafter-build test passes the one test, lint and format --check are clean on every text rule and on the AST rules for the eleven files without a global module fragment; the four files that include gio/gio.h are not parsed by the lint driver's libclang (no C++ standard library on its include path: 'type_traits' file not found), which is a Crafter.Build matter.
This commit is contained in:
commit
3d635a6f9d
22 changed files with 1173 additions and 0 deletions
25
tests/Number/main.cpp
Normal file
25
tests/Number/main.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// Number normalisation: the raw address a user types or the network sends
|
||||
// becomes the conversation key (E.164 for numbers; short codes and
|
||||
// alphanumeric senders verbatim). At this point only the harness exists:
|
||||
// the test checks that the core links and the version constant is set.
|
||||
import std;
|
||||
import ImsdMessages;
|
||||
|
||||
namespace {
|
||||
|
||||
std::int32_t failures = 0;
|
||||
|
||||
void Check(bool ok, std::string_view what) {
|
||||
std::println("{} {}", ok ? "PASS" : "FAIL", what);
|
||||
if (!ok) ++failures;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main() {
|
||||
Check(!ImsdMessages::version.empty(), "the version constant is set");
|
||||
return failures == 0 ? 0 : 1;
|
||||
}
|
||||
Loading…
Reference in a new issue