Public Access
- 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
30 lines
802 B
C++
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();
|
|
}
|