Files
dkl/test-dkl

32 lines
624 B
Plaintext
Raw Normal View History

2025-07-20 18:48:47 +02:00
#! /bin/sh
set -ex
dkl=target/debug/dkl
2025-07-20 22:30:10 +02:00
test=${1:-log-clean}
2025-07-20 18:48:47 +02:00
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
;;
2025-07-20 22:30:10 +02:00
log-ls) $dkl log --log-path tmp/log bash ls ;;
log-cat) $dkl log --log-path tmp/log bash cat 20250720_12 20301231_23 ;;
log-clean)
$dkl log --log-path tmp/log bash ls -l
$dkl log --log-path tmp/log bash cleanup 0
2025-07-20 18:48:47 +02:00
;;
*) echo 1>&2 "unknown test: $test"; exit 1 ;;
esac