impl apply-config, logger and log

This commit is contained in:
Mikaël Cluseau
2025-07-20 18:48:47 +02:00
parent ff0bb1c074
commit b1bf8f3fb8
9 changed files with 698 additions and 28 deletions

28
test-dkl Executable file
View File

@ -0,0 +1,28 @@
#! /bin/sh
set -ex
dkl=target/debug/dkl
test=${1:-log}
export RUST_LOG=debug
case $test in
apply-config)
$dkl apply-config -P tmp/test-system -F '*.crt'
;;
logger)
$dkl logger --log-path tmp/log --with-prefix -- bash -c 'echo stdout; echo 1>&2 stderr'
tree tmp/log
cat tmp/log/bash.log
;;
log)
$dkl log --log-path tmp/log bash 20250720_12 20250720_16
;;
*) echo 1>&2 "unknown test: $test"; exit 1 ;;
esac