This commit is contained in:
parent
a25b0a1ded
commit
8892154b28
70 changed files with 2780 additions and 596 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//SPDX-License-Identifier: LGPL-3.0-only
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module Greeter;
|
||||
import std;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//SPDX-License-Identifier: LGPL-3.0-only
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
import std;
|
||||
import Greeter;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//SPDX-License-Identifier: LGPL-3.0-only
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
import std;
|
||||
import Crafter.Build;
|
||||
|
|
@ -28,15 +28,11 @@ int main() {
|
|||
return 1;
|
||||
}
|
||||
if (cfg.implementations[0].moduleDependencies.size() != 1) {
|
||||
std::println(std::cerr,
|
||||
"expected main.cpp to depend on 1 module, got {}",
|
||||
cfg.implementations[0].moduleDependencies.size());
|
||||
std::println(std::cerr, "expected main.cpp to depend on 1 module, got {}", cfg.implementations[0].moduleDependencies.size());
|
||||
return 1;
|
||||
}
|
||||
if (cfg.implementations[0].moduleDependencies[0]->name != "Greeter") {
|
||||
std::println(std::cerr,
|
||||
"expected dep 'Greeter', got '{}'",
|
||||
cfg.implementations[0].moduleDependencies[0]->name);
|
||||
std::println(std::cerr, "expected dep 'Greeter', got '{}'", cfg.implementations[0].moduleDependencies[0]->name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -56,8 +52,7 @@ int main() {
|
|||
|
||||
auto run = RunCommandWithTimeout(bin.string(), std::chrono::seconds(10));
|
||||
if (run.exitCode != 0 || run.timedOut || run.crashed) {
|
||||
std::println(std::cerr, "binary did not exit cleanly: exit={} output={}",
|
||||
run.exitCode, run.output);
|
||||
std::println(std::cerr, "binary did not exit cleanly: exit={} output={}", run.exitCode, run.output);
|
||||
return 1;
|
||||
}
|
||||
if (run.output != "ok-from-module") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue