impl apply-config, logger and log
This commit is contained in:
28
test-dkl
Executable file
28
test-dkl
Executable 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
|
||||
|
Reference in New Issue
Block a user