Include CLI reply helpers in moderation and retry fixtures
This commit is contained in:
1 parent
70c7d5b478
commit
69c612bf35
2 files changed
+3
No files matched your search
@@ -13,6 +13,7 @@ from test_serial_wifi_sessions import SANITIZER_FLAGS
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
HARNESS = r'''
|
||||
#include <helpers/CLIReplyText.h>
|
||||
#include <helpers/FloodGroupPlainText.h>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
@@ -34,6 +34,7 @@ class RetryCrPresetsTest(unittest.TestCase):
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include "src/helpers/CLIReplyText.h"
|
||||
#define constrain(x, low, high) ((x) < (low) ? (low) : (x) > (high) ? (high) : (x))
|
||||
struct NodePrefs {
|
||||
uint8_t retry_preset, direct_retry_attempts, direct_retry_enabled;
|
||||
@@ -150,6 +151,7 @@ int main() {
|
||||
source.write_text(generated, encoding="ascii")
|
||||
binary = work / "retry-cr"
|
||||
result = subprocess.run([compiler, "-std=c++17", "-Wall", "-Wextra",
|
||||
"-I", str(ROOT),
|
||||
str(source), "-o", str(binary)],
|
||||
capture_output=True, text=True, timeout=60)
|
||||
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
|
||||
|
||||
Reference in new issue
Block a user