mirror of
https://github.com/str4d/rage.git
synced 2025-04-03 19:07:42 +03:00
rage: Add CLI test exposing bug with single-line identity files
Specifically, a single line and no trailing newline.
This commit is contained in:
parent
d76c85d585
commit
303fa6ebe1
2 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBHUGc3Zlhpekp0K012aXdu
|
||||
T1VZN0lmWlRmNjdLYVB4RldkTFVLTkNDUXlBCmJjRUcrM3E0a0U0N3IyK1JsTitG
|
||||
dHVTd0N6TVFRTWgzdG5uSzJmNm9YMTgKLT4gQXQ1WWAtZ3JlYXNlIDxodGFSVHJg
|
||||
IFg0cWYsO0ogZ2Fzc1EKZGtPSTB3Ci0tLSBKazRIaHJxdnNJcHpyclRkQjg3QW5r
|
||||
SVE2MHdtWkErYTNrNWJibWd1bmNBCkK9FoOkiLB93gD79vNed8L3LM9rhKm5qma2
|
||||
lSiwRx/aM1DKaZO0CMmYQkoM2tPReA==
|
||||
-----END AGE ENCRYPTED FILE-----
|
|
@ -0,0 +1,7 @@
|
|||
bin.name = "rage"
|
||||
args = "-d -i - file.age.txt"
|
||||
stdin = "AGE-SECRET-KEY-1SRQGS50G584HFA5JG9D6D9S6639VVHJUE5XHHKJET9DRU76HK4RQP0X5Q3"
|
||||
stdout = """
|
||||
Test plaintext.
|
||||
"""
|
||||
stderr = ""
|
Loading…
Add table
Add a link
Reference in a new issue