mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 15:33:16 +01:00
tests: print "mode=standard", "mode=paranoia" progress
We run through everything in normal.t.pl two times, once in "standard" mode and once in "paranoia" mode. Print some context. Also, bail out if file creation fails. Output now looks like this: $ ./test.sh tests/normal.t.pl ... runTests: mode=standard tests/normal.t.pl ... 54/116 runTests: mode=paranoia tests/normal.t.pl ... ok tests/reverse.t.pl .. ok All tests successful. Files=2, Tests=141, 21 wallclock secs ( 0.04 usr 0.00 sys + 20.03 cusr 0.36 csys = 20.43 CPU) Result: PASS
This commit is contained in:
parent
282df21a49
commit
d2ee96d2bd
@ -22,6 +22,7 @@ my $tempDir = $ENV{'TMPDIR'} || "/tmp";
|
||||
sub runTests
|
||||
{
|
||||
my $mode = shift;
|
||||
print STDERR "\nrunTests: mode=$mode\n";
|
||||
|
||||
&newWorkingDir;
|
||||
|
||||
@ -191,8 +192,8 @@ sub truncate
|
||||
sub fileCreation
|
||||
{
|
||||
# create a file
|
||||
qx(df -ah > "$crypt/df.txt" 2> /dev/null);
|
||||
ok( -f "$crypt/df.txt", "file created" );
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user