Files
dkl/test-dkl

41 lines
773 B
Plaintext
Raw Normal View History

2025-07-20 18:48:47 +02:00
#! /bin/sh
set -ex
dkl=target/debug/dkl
2025-07-21 13:18:08 +02:00
test=${1:-dynlay}
2025-07-20 18:48:47 +02:00
2025-07-21 13:18:08 +02:00
export RUST_LOG=debug
2025-07-20 18:48:47 +02:00
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-21 01:41:03 +02:00
log-ls)
$dkl log --log-path tmp/log bash ls -l
2025-07-21 01:41:03 +02:00
;;
log-cat)
$dkl log --log-path tmp/log bash cat 20250720_12 20301231_23
;;
2025-07-20 22:30:10 +02:00
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
;;
2025-07-21 01:41:03 +02:00
dynlay)
mkdir -p tmp/system
$dkl dynlay --layers-dir tmp/dynlay --chroot tmp/system kubernetes v1.33.3_containerd.2.0.5
;;
2025-07-20 18:48:47 +02:00
*) echo 1>&2 "unknown test: $test"; exit 1 ;;
esac