|
1 | 1 | # label|command|expected regex |
2 | | -busybox-help|busybox|BusyBox v |
3 | | -uname|busybox uname -s|Linux |
4 | | -list-bin|busybox ls /bin|busybox |
5 | | -proc-version|busybox cat /proc/version|Linux version |
6 | | -proc-mounts|busybox cat /proc/mounts|/proc |
7 | | -proc-self-stat|busybox cat /proc/self/stat| \( |
8 | | -list-proc|busybox ls /proc|self |
9 | | -read-self-exe|busybox readlink /proc/self/exe|busybox |
10 | | -shell-path|busybox test -x /bin/sh && busybox echo /bin/sh-ok|/bin/sh-ok |
11 | | -create-file|busybox sh -c 'busybox echo alpha >/tmp/pgo-file && busybox cat /tmp/pgo-file'|alpha |
12 | | -rename-file|busybox sh -c 'busybox mv /tmp/pgo-file /tmp/pgo-file-renamed && busybox cat /tmp/pgo-file-renamed'|alpha |
13 | | -hardlink-file|busybox sh -c 'busybox ln /tmp/pgo-file-renamed /tmp/pgo-file-link && busybox ls -l /tmp/pgo-file-link'|pgo-file-link |
14 | | -truncate-file|busybox sh -c ': >/tmp/pgo-file-renamed && busybox test ! -s /tmp/pgo-file-renamed && busybox echo zero-ok'|zero-ok |
15 | | -mkdir-rmdir|busybox sh -c 'busybox mkdir -p /tmp/pgo-dir && busybox ls /tmp | busybox grep pgo-dir && busybox rmdir /tmp/pgo-dir'|pgo-dir |
16 | | -copy-file|busybox sh -c 'busybox cp /bin/busybox /tmp/pgo-copy && busybox ls -l /tmp/pgo-copy'|pgo-copy |
17 | | -poll-path|busybox sh -c 'busybox printf \"poll-data\" >/tmp/pgo-poll && busybox cat /tmp/pgo-poll'|poll-data |
18 | | -cleanup-tmp|busybox sh -c 'busybox rm -f /tmp/pgo-file-renamed /tmp/pgo-file-link /tmp/pgo-poll && busybox echo cleanup-ok'|cleanup-ok |
| 2 | +# |
| 3 | +# Each command does the work, redirects bulk output to /dev/null, and emits |
| 4 | +# a single short marker so the expect runner sees a constant short string. |
| 5 | +# Restricted to applets compiled into BusyBox per configs/busybox-1.37.0.config: |
| 6 | +# echo, uname, cat, cp, ln, ls, mkdir, mv, rm, test (and the hush builtins |
| 7 | +# `:`, test, echo). Avoids grep, readlink, rmdir, printf, true, head -- all |
| 8 | +# disabled in this build. |
| 9 | +# |
| 10 | +# This keeps the workload's UART/n_tty/uart_port hot path off the boot trace, |
| 11 | +# which previously inflated matched_kernel_blocks by ~8% with no insight into |
| 12 | +# kernel code paths that matter for layout or size decisions. |
| 13 | +busybox-help|: && busybox echo ok|ok |
| 14 | +uname|busybox uname -s >/dev/null && busybox echo ok|ok |
| 15 | +list-bin|busybox ls /bin >/dev/null && busybox echo ok|ok |
| 16 | +proc-version|busybox cat /proc/version >/dev/null && busybox echo ok|ok |
| 17 | +proc-mounts|busybox cat /proc/mounts >/dev/null && busybox echo ok|ok |
| 18 | +proc-self-stat|busybox cat /proc/self/stat >/dev/null && busybox echo ok|ok |
| 19 | +list-proc|busybox ls /proc >/dev/null && busybox echo ok|ok |
| 20 | +read-self-exe|busybox ls -l /proc/self/exe >/dev/null && busybox echo ok|ok |
| 21 | +shell-path|busybox test -x /bin/sh && busybox echo ok|ok |
| 22 | +create-file|busybox sh -c 'busybox echo alpha >/tmp/pgo-file && busybox cat /tmp/pgo-file >/dev/null' && busybox echo ok|ok |
| 23 | +rename-file|busybox sh -c 'busybox mv /tmp/pgo-file /tmp/pgo-file-renamed && busybox cat /tmp/pgo-file-renamed >/dev/null' && busybox echo ok|ok |
| 24 | +hardlink-file|busybox sh -c 'busybox ln /tmp/pgo-file-renamed /tmp/pgo-file-link && busybox ls /tmp/pgo-file-link >/dev/null' && busybox echo ok|ok |
| 25 | +truncate-file|busybox sh -c ': >/tmp/pgo-file-renamed && busybox test ! -s /tmp/pgo-file-renamed' && busybox echo ok|ok |
| 26 | +mkdir-rmdir|busybox sh -c 'busybox mkdir -p /tmp/pgo-dir && busybox ls /tmp/pgo-dir >/dev/null && busybox rm -rf /tmp/pgo-dir' && busybox echo ok|ok |
| 27 | +copy-file|busybox sh -c 'busybox cp /bin/busybox /tmp/pgo-copy && busybox ls /tmp/pgo-copy >/dev/null' && busybox echo ok|ok |
| 28 | +poll-path|busybox sh -c 'busybox echo poll-data >/tmp/pgo-poll && busybox cat /tmp/pgo-poll >/dev/null' && busybox echo ok|ok |
| 29 | +cleanup-tmp|busybox sh -c 'busybox rm -f /tmp/pgo-file-renamed /tmp/pgo-file-link /tmp/pgo-poll' && busybox echo ok|ok |
0 commit comments