diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-04-28 17:59:39 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-29 14:26:24 +0200 |
commit | 1aa6fe1eb9788d663fa22c80c71941e736e7c122 (patch) | |
tree | 0ca1562cbb6174b174614da6c397a6b8428b6305 /web | |
parent | 408acaef5d944e46dab9dfb750139fc497ae44c8 (diff) | |
download | mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.tar mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.tar.gz mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.tar.bz2 mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.tar.lz mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.tar.xz mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.tar.zst mbuto-1aa6fe1eb9788d663fa22c80c71941e736e7c122.zip |
demo: Add some updated kselftests examples using -C and -T
...and, while at it, use @ to denote a enter key in demo scripts.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'web')
-rwxr-xr-x | web/demo.sh | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/web/demo.sh b/web/demo.sh index ff3bf66..5d3b31a 100755 --- a/web/demo.sh +++ b/web/demo.sh @@ -10,8 +10,11 @@ # Author: Stefano Brivio <sbrivio@redhat.com> setup_common() { - export PS1='$ ' tmux new-session -d -s mbuto + tmux send-keys -t mbuto 'PS1="$ "' + tmux send-keys -t mbuto C-m + tmux send-keys -t mbuto clear + tmux send-keys -t mbuto C-m tmux set -t mbuto window-status-format '#W' tmux set -t mbuto window-status-current-format '#W' @@ -25,7 +28,7 @@ setup_common() { } SCRIPT_base=' -kvm -kernel /boot/vmlinuz-$(uname -r) -initrd $(./mbuto) \ +kvm -kernel /boot/vmlinuz-$(uname -r) -initrd $(mbuto) \ -nodefaults -nographic -append console=ttyS0 -serial stdio ## echo Hello from the guest! @@ -38,10 +41,29 @@ ls # make -j $(nproc) ################ -kvm -kernel arch/x86/boot/bzImage -initrd $(../mbuto/mbuto -p kselftests) \ + +kvm -kernel arch/x86/boot/bzImage -initrd $(mbuto -p kselftests -C timens) \ + -m 4096 -cpu host -nodefaults -nographic -append console=ttyS0 -serial stdio +#################### +@ +##### +reset +## + +mbuto -f test.img -p kselftests -T timers:rtcpie +################# +kvm -kernel arch/x86/boot/bzImage -initrd test.img \ + -m 4096 -cpu host -nodefaults -nographic -append console=ttyS0 -serial stdio +##### +@ +####################### +reset +## + +kvm -kernel arch/x86/boot/bzImage -initrd $(mbuto -p kselftests) \ -m 4096 -cpu host -nodefaults -nographic -append console=ttyS0 -serial stdio -######################################## -- +############################################# +@ ################################################################################ ' @@ -76,8 +98,9 @@ script() { for line in $(eval printf '%s\\\n' \$SCRIPT_${1}); do unset IFS case ${line} in - "#"*) sleep ${#line} ;; - *) cmd_write "${line}" ;; + "@") tmux send-keys -t mbuto C-m ;; + "#"*) sleep ${#line} ;; + *) cmd_write "${line}" ;; esac IFS=' ' @@ -117,5 +140,4 @@ for demo in base kselftests; do eval teardown_${demo} gzip -fk9 ${demo}.cast - scp ${demo}.cast ${demo}.cast.gz mbuto.sh:/var/www/mbuto/static/ done |