services: add a test service to test bshell

This commit is contained in:
2026-05-31 17:35:30 +01:00
parent 82b3c597f1
commit 54d5d9dca7
4 changed files with 30 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
rosetta_add_misc_service(
NAME bshell-test
CFG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bshell-test.service)
rosetta_service_add_file(
NAME bshell-test
SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/test.bshell
DEST_DIR /sbin)
sysroot_add_service(
NAME bshell-test
BIN_DIR /usr/bin
SVC_DIR /etc/herdd/services)
bsp_add_service(
NAME bshell-test
BIN_DIR /usr/bin
SVC_DIR /etc/herdd/services)
+9
View File
@@ -0,0 +1,9 @@
# vim ft=toml
[unit]
description = "BShell Test Script"
[service]
exec = [
"/usr/bin/bshell",
"/sbin/test.bshell"
]
+2
View File
@@ -0,0 +1,2 @@
$x = "Jonh"
echo "Hello, $x!"