Added to_6.3.0 downgrade test to test harness
This commit is contained in:
parent
373b5ffb4f
commit
949a17359a
|
|
@ -261,7 +261,7 @@ namespace SummarizeTest
|
|||
testFile = random.Choice(uniqueFiles);
|
||||
string oldBinaryVersionLowerBound = "0.0.0";
|
||||
string lastFolderName = Path.GetFileName(Path.GetDirectoryName(testFile));
|
||||
if (lastFolderName.Contains("from_")) // Only perform upgrade tests from certain versions
|
||||
if (lastFolderName.Contains("from_") || lastFolderName.Contains("to_")) // Only perform upgrade/downgrade tests from certain versions
|
||||
{
|
||||
oldBinaryVersionLowerBound = lastFolderName.Split('_').Last();
|
||||
}
|
||||
|
|
@ -295,14 +295,17 @@ namespace SummarizeTest
|
|||
|
||||
if (testDir.EndsWith("restarting"))
|
||||
{
|
||||
bool isDowngrade = Path.GetFileName(Path.GetDirectoryName(testFile)).Contains("to_");
|
||||
string firstServerName = isDowngrade ? fdbserverName : oldServerName;
|
||||
string secondServerName = isDowngrade ? oldServerName : fdbserverName;
|
||||
int expectedUnseed = -1;
|
||||
int unseed;
|
||||
string uid = Guid.NewGuid().ToString();
|
||||
bool useNewPlugin = oldServerName == fdbserverName || versionGreaterThanOrEqual(oldServerName.Split('-').Last(), "5.2.0");
|
||||
result = RunTest(oldServerName, useNewPlugin ? tlsPluginFile : tlsPluginFile_5_1, summaryFileName, errorFileName, seed, buggify, testFile + "-1.txt", runDir, uid, expectedUnseed, out unseed, out retryableError, logOnRetryableError, useValgrind, false, true, oldServerName, traceToStdout);
|
||||
bool useNewPlugin = isDowngrade || versionGreaterThanOrEqual(oldServerName.Split('-').Last(), "5.2.0");
|
||||
result = RunTest(firstServerName, useNewPlugin ? tlsPluginFile : tlsPluginFile_5_1, summaryFileName, errorFileName, seed, buggify, testFile + "-1.txt", runDir, uid, expectedUnseed, out unseed, out retryableError, logOnRetryableError, useValgrind, false, true, oldServerName, traceToStdout);
|
||||
if (result == 0)
|
||||
{
|
||||
result = RunTest(fdbserverName, tlsPluginFile, summaryFileName, errorFileName, seed+1, buggify, testFile + "-2.txt", runDir, uid, expectedUnseed, out unseed, out retryableError, logOnRetryableError, useValgrind, true, false, oldServerName, traceToStdout);
|
||||
result = RunTest(secondServerName, tlsPluginFile, summaryFileName, errorFileName, seed+1, buggify, testFile + "-2.txt", runDir, uid, expectedUnseed, out unseed, out retryableError, logOnRetryableError, useValgrind, true, false, oldServerName, traceToStdout);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -190,6 +190,9 @@ if(WITH_PYTHON)
|
|||
add_fdb_test(
|
||||
TEST_FILES restarting/from_5.2.0/ClientTransactionProfilingCorrectness-1.txt
|
||||
restarting/from_5.2.0/ClientTransactionProfilingCorrectness-2.txt)
|
||||
add_fdb_test(
|
||||
TEST_FILES restarting/to_6.3.0/CycleTestRestart-1.txt
|
||||
restarting/to_6.3.0/CycleTestRestart-2.txt)
|
||||
add_fdb_test(TEST_FILES slow/ApiCorrectness.txt)
|
||||
add_fdb_test(TEST_FILES slow/ApiCorrectnessAtomicRestore.txt)
|
||||
add_fdb_test(TEST_FILES slow/ApiCorrectnessSwitchover.txt)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
testTitle=Clogged
|
||||
clearAfterTest=false
|
||||
testName=Cycle
|
||||
transactionsPerSecond=500.0
|
||||
nodeCount=2500
|
||||
testDuration=10.0
|
||||
expectedRate=0
|
||||
|
||||
testName=RandomClogging
|
||||
testDuration=10.0
|
||||
|
||||
testName=Rollback
|
||||
meanDelay=10.0
|
||||
testDuration=10.0
|
||||
|
||||
testName=Attrition
|
||||
machinesToKill=10
|
||||
machinesToLeave=3
|
||||
reboot=true
|
||||
testDuration=10.0
|
||||
|
||||
testName=Attrition
|
||||
machinesToKill=10
|
||||
machinesToLeave=3
|
||||
reboot=true
|
||||
testDuration=10.0
|
||||
|
||||
testName=SaveAndKill
|
||||
restartInfoLocation=simfdb/restartInfo.ini
|
||||
testDuration=10.0
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
testTitle=Clogged
|
||||
runSetup=false
|
||||
testName=Cycle
|
||||
transactionsPerSecond=2500.0
|
||||
nodeCount=2500
|
||||
testDuration=10.0
|
||||
expectedRate=0
|
||||
|
||||
testName=RandomClogging
|
||||
testDuration=10.0
|
||||
|
||||
testName=Rollback
|
||||
meanDelay=10.0
|
||||
testDuration=10.0
|
||||
|
||||
testName=Attrition
|
||||
machinesToKill=10
|
||||
machinesToLeave=3
|
||||
reboot=true
|
||||
testDuration=10.0
|
||||
|
||||
testName=Attrition
|
||||
machinesToKill=10
|
||||
machinesToLeave=3
|
||||
reboot=true
|
||||
testDuration=10.0
|
||||
Loading…
Reference in New Issue