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®
|
||||
|
||||
import std;
|
||||
import Calc;
|
||||
|
|
|
|||
|
|
@ -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 Calc;
|
||||
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 Crafter.Build;
|
||||
|
|
@ -44,18 +44,15 @@ int main() {
|
|||
}
|
||||
// The import resolves to the dependency's interface, not a local one.
|
||||
if (!app.implementations[0].moduleDependencies.empty()) {
|
||||
std::println(std::cerr, "expected no local module deps, got {}",
|
||||
app.implementations[0].moduleDependencies.size());
|
||||
std::println(std::cerr, "expected no local module deps, got {}", app.implementations[0].moduleDependencies.size());
|
||||
return 1;
|
||||
}
|
||||
if (app.implementations[0].externalModuleDependencies.size() != 1) {
|
||||
std::println(std::cerr, "expected 1 external module dep, got {}",
|
||||
app.implementations[0].externalModuleDependencies.size());
|
||||
std::println(std::cerr, "expected 1 external module dep, got {}", app.implementations[0].externalModuleDependencies.size());
|
||||
return 1;
|
||||
}
|
||||
if (app.implementations[0].externalModuleDependencies[0].first->name != "Calc") {
|
||||
std::println(std::cerr, "expected external dep 'Calc', got '{}'",
|
||||
app.implementations[0].externalModuleDependencies[0].first->name);
|
||||
std::println(std::cerr, "expected external dep 'Calc', got '{}'", app.implementations[0].externalModuleDependencies[0].first->name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -81,8 +78,7 @@ int main() {
|
|||
|
||||
auto run = RunCommandWithTimeout(bin.string(), std::chrono::seconds(10));
|
||||
if (run.exitCode != 0 || run.timedOut || run.crashed) {
|
||||
std::println(std::cerr, "exe did not exit cleanly: exit={} output={}",
|
||||
run.exitCode, run.output);
|
||||
std::println(std::cerr, "exe did not exit cleanly: exit={} output={}", run.exitCode, run.output);
|
||||
return 1;
|
||||
}
|
||||
if (run.output != "7") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue