]> git.proxmox.com Git - pve-installer.git/blob - proxmox-tui-installer/README.md
test: add tests for zfs_arc_max calculations
[pve-installer.git] / proxmox-tui-installer / README.md
1 # proxmox-tui-installer
2
3 ## Testing/debugging
4
5 ### stderr redirection
6
7 If something needs to be printed for debugging (e.g. using `eprintln!()` or
8 `dbg!()`), output redirection can be used. Open a second terminal and get the
9 file name of the terminal using the `tty` command:
10 ```sh
11 $ tty
12 /dev/pts/6
13 ```
14
15 Now, simply run the installer using:
16 ```sh
17 $ cargo run 2>/dev/pts/6
18 ```
19
20 All stderr output will then show up in the other terminal.
21
22 ### Specific terminal size
23
24 To test the installer with a specific output size, the `stty` command can be
25 used. For example, to set it to a standard 80x25 terminal:
26 ```sh
27 $ stty columns 80 rows 25
28 ```