1.5 KiB
1.5 KiB
-
Spec requirements integration test coverage
- Add log function
- Output begins with
[log] - Only prints if
DEBUGis set
- Output begins with
- Add interactive pkg tests (INS v0 B2.5)
- Get su command from
$XDG_CONFIG_HOME/tori/tori.conf- Default to
su -c - Validation
- Valid path or in
PATH - Executability
- [-]
trueexits with status 0 (see note 3)
- Valid path or in
- Default to
- Add logging
- Print each command executed, not just package names
- Case with no packages provided
- Prints a message
- MUST NOT run any system commands
- Get su command from
- Unrecognized command: exit code 1
- Command
user: print the output ofwhoami
- Add log function
-
Refactorings
- Simplify and analyze
System.File - Simplify Reader
- Simplify and analyze
-
Additionals
- Create interface files
- Expand unit tests coverage
- Try out doc generation
Notes
- INS = Iganaq Napkin Spec: https://brew.bsd.cafe/tori/iganaq#specification
- INS v0 B2.5 "MUST NOT run any system commands" is only testable if we wrap command execution properly in e.g. a list containing all executed commands and ensure no command is ever executed without being appended to it
- INS v0 A3.4 "running 'true' with exit code 0" requires the user to input their password every time. This should be dropped from the spec instead