Hi,
I'm reviewing tests.
|
# create a file |
|
qx(date > "$crypt/df.txt"); |
|
ok( -f "$crypt/df.txt", "file created" ) || BAIL_OUT("file create failed"); |
|
|
|
# ensure there is an encrypted version. |
|
my $c = encName("df.txt"); |
|
cmp_ok( length($c), '>', 8, "encrypted name ok" ); |
|
ok( -f "$raw/$c", "encrypted file $raw/$c created" ); |
|
|
|
# check contents |
|
my $count = qx(grep -c crypt-$$ "$crypt/df.txt"); |
|
isnt(scalar($count), 0, "encrypted file readable"); |
I'm not sure to understand grep -c crypt-$$, looks strange.
What is it intended to test ?
@rfjakob any idea ?
Thx 👍
Hi,
I'm reviewing tests.
encfs/integration/normal.t.pl
Lines 248 to 259 in 7fc3730
I'm not sure to understand
grep -c crypt-$$, looks strange.What is it intended to test ?
@rfjakob any idea ?
Thx 👍