Files
dkl/test-dkl
2025-07-20 18:48:52 +02:00

29 lines
454 B
Bash
Executable File

#! /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