From 6707614b91d5ed195c69f9351febca2bc2dbac83 Mon Sep 17 00:00:00 2001 From: joshjms Date: Fri, 30 Jan 2026 18:17:02 +0800 Subject: [PATCH] add add.cpp in test_files Signed-off-by: joshjms --- scripts/run_lime.sh | 2 +- tests/test_files/add.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/test_files/add.cpp diff --git a/scripts/run_lime.sh b/scripts/run_lime.sh index 0024f21..c2af39e 100755 --- a/scripts/run_lime.sh +++ b/scripts/run_lime.sh @@ -32,7 +32,7 @@ LIME_MAX_OPEN_FILES="16" LIME_STACK_LIMIT_BYTES="8388608" LIME_USE_CPUS="0" LIME_USE_MEMS="0" -LIME_STDIN="" +LIME_STDIN="6 7" LIME_ROOTFS_PATH="images/gcc-15-bookworm" LIME_BIND_MOUNTS_JSON="[\"/tmp/lime_test_compile_input:/tmp/input:ro\", \"/tmp/lime_test_exec_input:/tmp/output\"]" LIME_USE_OVERLAYFS="true" diff --git a/tests/test_files/add.cpp b/tests/test_files/add.cpp new file mode 100644 index 0000000..0631429 --- /dev/null +++ b/tests/test_files/add.cpp @@ -0,0 +1,11 @@ +#include + +int main() { + int a, b; + std::cin >> a >> b; + + int c = a + b; + std::cout << c << std::endl; + + return 0; +}