Files
solvecraft/harness/cpp/stubs/sm_api_test_examples_stub.cpp
T
bherbruck 5c01824151 harness/cpp: CMake build of upstream SMLib/SM_API reference kernel
Static libs (no TBB, -O2 -ffp-contract=off -fPIC) into bin/cpp/lib,
compile_commands.json and ffi.env for solidcore-ffi, SM_API_test_app and
prog_test_app with a stub for the two Examples-based SM_API tests, and a
runner that mirrors the upstream relative TestFiles layout under bin/cpp/run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 14:32:04 -04:00

28 lines
988 B
C++

// solidcore harness stub (not upstream code).
//
// Replaces, in the SM_API_test_app build only:
// upstream/tests/SM_API_test/src/TestSmBooleanBoundsExample.cpp
// upstream/tests/SM_API_test/src/TestSmSTEPDerivativesExample.cpp
// Both compile code from upstream/Examples/ (boolean_bounds.cpp,
// step_derivatives.cpp), which is outside the source allow-list of the
// solidcore port, so they are not built. Each stub prints a SKIPPED marker
// and returns SM_SUCCESS; the runner therefore counts them as "Successful",
// and plan/baseline.md subtracts them from the pass count.
#include "StdAfx.h"
#include "SM_API_test.h"
#include <cstdio>
SmStatus TestSmBooleanBoundsExample()
{
std::printf("\nSOLIDCORE-STUB SKIPPED: TestSmBooleanBoundsExample (needs upstream/Examples)\n");
return SM_SUCCESS;
}
SmStatus TestSmSTEPDerivativesExample()
{
std::printf("\nSOLIDCORE-STUB SKIPPED: TestSmSTEPDerivativesExample (needs upstream/Examples)\n");
return SM_SUCCESS;
}