-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #521 from str4d/374-pipe-input-with-passphrase
rage: Allow piping input when encrypting with passphrase on Unix
- Loading branch information
Showing
6 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
#[test] | ||
fn cli_tests() { | ||
trycmd::TestCases::new().case("tests/cmd/*/*.toml"); | ||
let tests = trycmd::TestCases::new(); | ||
|
||
tests.case("tests/cmd/*/*.toml"); | ||
|
||
#[cfg(unix)] | ||
tests.case("tests/unix/*/*.toml"); | ||
|
||
#[cfg(not(unix))] | ||
tests.case("tests/windows/*/*.toml"); | ||
} |
16 changes: 16 additions & 0 deletions
16
rage/tests/unix/rage/encrypt-passphrase-without-file-argument.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
bin.name = "rage" | ||
args = "-p" | ||
status = "failed" | ||
stdin = "" | ||
stdout = "" | ||
stderr = """ | ||
Error: Parsing Error: Error { input: "", code: Tag } | ||
[ Did rage not do what you expected? Could an error be more useful? ] | ||
[ Tell us: https://str4d.xyz/rage/report ] | ||
""" | ||
|
||
# We get an error from the `pinentry` crate because we've passed a real but invalid binary | ||
# that does not speak the pinentry protocol. | ||
[env.add] | ||
PINENTRY_PROGRAM = "true" |
File renamed without changes.