1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-30 05:39:12 +02:00

Run all tests on tempfs rather than local disk.

This commit is contained in:
David Steele 2017-10-22 13:11:03 -04:00
parent e1cb9ae86a
commit 9b98c2e7d6
3 changed files with 9 additions and 1 deletions

View File

@ -104,6 +104,10 @@
<p>Warnings in C builds treated as errors.</p>
</release-item>
<release-item>
<p>Run all tests on tempfs rather than local disk.</p>
</release-item>
<release-item>
<p>Remove Debian test repo after PostgreSQL 10 release.</p>
</release-item>

2
test/Vagrantfile vendored
View File

@ -1,6 +1,6 @@
Vagrant.configure(2) do |config|
config.vm.provider :virtualbox do |vb|
vb.memory = 2048
vb.memory = 4096
vb.cpus = 8
end

View File

@ -335,7 +335,11 @@ eval
push(@{$oyProcess}, undef);
}
executeTest("sudo umount ${strTestPath}", {bSuppressError => true});
executeTest("sudo rm -rf ${strTestPath}/*");
$oStorageTest->pathCreate($strTestPath, {strMode => '0770', bIgnoreExists => true});
executeTest("sudo mount -t tmpfs -o size=2560M test ${strTestPath}");
$oStorageTest->pathCreate($strCoveragePath, {strMode => '0770', bIgnoreMissing => true, bCreateParent => true});
}