Files
roro9stack/test/test_version/test_version.cpp
T
twislaandClaude Sonnet 5.5 18285c3212
CI / build (pull_request) Failing after 1m59s
Site / build (pull_request) Successful in 9s
Add uname, /uname and scp (key or masked password) in the Shell
- uname in the console and /uname in IRC: the firmware, its version and the chip
- scp: one file between the card and a trusted server, over SSH, with the
  device's key or a password asked (masked) in the Shell
- shared libssh helpers in src/platform/libssh_util
- README, user guide, command reference and a how-to updated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0162FokPdvY2KsS4NBfwyWPk
2026-10-09 19:01:36 +02:00

30 lines
802 B
C++

#include <unity.h>
#include <cstring>
#include "version.h"
void setUp() {}
void tearDown() {}
void test_version_is_never_empty() {
TEST_ASSERT_TRUE(std::strlen(roro::versionString()) > 0);
}
void test_product_name() {
TEST_ASSERT_EQUAL_STRING("roro9stack", roro::kProductName);
}
void test_uname_has_name_version_and_architecture() {
std::string expected = std::string("roro9stack ") + roro::versionString() + " " + roro::architectureString();
TEST_ASSERT_EQUAL_STRING(expected.c_str(), roro::unameString().c_str());
TEST_ASSERT_TRUE(std::strlen(roro::architectureString()) > 0);
}
int main() {
UNITY_BEGIN();
RUN_TEST(test_version_is_never_empty);
RUN_TEST(test_product_name);
RUN_TEST(test_uname_has_name_version_and_architecture);
return UNITY_END();
}