2019-01-23 06:25:20 +08:00
|
|
|
include(AddFdbTest)
|
|
|
|
|
|
|
|
# We need some variables to configure the test setup
|
2019-01-25 05:15:14 +08:00
|
|
|
set(ENABLE_BUGGIFY ON CACHE BOOL "Enable buggify for tests")
|
2021-07-28 01:17:55 +08:00
|
|
|
set(ENABLE_SIMULATION_TESTS OFF CACHE BOOL "Enable simulation tests (useful if you can't run Joshua)")
|
2019-01-23 06:25:20 +08:00
|
|
|
set(RUN_IGNORED_TESTS OFF CACHE BOOL "Run tests that are marked for ignore")
|
2019-04-14 08:29:30 +08:00
|
|
|
set(TEST_KEEP_LOGS "FAILED" CACHE STRING "Which logs to keep (NONE, FAILED, ALL)")
|
2019-01-23 06:25:20 +08:00
|
|
|
set(TEST_KEEP_SIMDIR "NONE" CACHE STRING "Which simfdb directories to keep (NONE, FAILED, ALL)")
|
|
|
|
set(TEST_AGGREGATE_TRACES "NONE" CACHE STRING "Create aggregated trace files (NONE, FAILED, ALL)")
|
2019-02-20 05:58:18 +08:00
|
|
|
set(TEST_LOG_FORMAT "xml" CACHE STRING "Format for test trace files (xml, json)")
|
2020-04-29 00:19:04 +08:00
|
|
|
set(TEST_INCLUDE ".*" CACHE STRING "Include only tests that match the given regex")
|
|
|
|
set(TEST_EXCLUDE ".^" CACHE STRING "Exclude all tests matching the given regex")
|
2019-01-23 06:25:20 +08:00
|
|
|
|
|
|
|
# for the restart test we optimally want to use the last stable fdbserver
|
|
|
|
# to test upgrades
|
2020-02-10 00:34:14 +08:00
|
|
|
if(WITH_PYTHON)
|
|
|
|
find_program(OLD_FDBSERVER_BINARY
|
2021-08-24 03:52:58 +08:00
|
|
|
fdbserver fdbserver.exe
|
2021-04-06 23:21:35 +08:00
|
|
|
HINTS /opt/foundationdb/old /usr/sbin /usr/libexec /usr/local/sbin /usr/local/libexec)
|
2020-02-10 00:34:14 +08:00
|
|
|
if(OLD_FDBSERVER_BINARY)
|
|
|
|
message(STATUS "Use old fdb at ${OLD_FDBSERVER_BINARY}")
|
|
|
|
else()
|
2021-08-24 03:52:58 +08:00
|
|
|
if(WIN32)
|
|
|
|
set(fdbserver_location ${CMAKE_BINARY_DIR}/bin/@CTEST_CONFIGURATION_TYPE@/fdbserver.exe)
|
|
|
|
set(OLD_FDBSERVER_BINARY ${fdbserver_location} CACHE FILEPATH "Old fdbserver binary" FORCE)
|
|
|
|
else()
|
|
|
|
set(fdbserver_location ${CMAKE_BINARY_DIR}/bin/fdbserver)
|
|
|
|
set(OLD_FDBSERVER_BINARY ${fdbserver_location} CACHE FILEPATH "Old fdbserver binary" FORCE)
|
|
|
|
endif()
|
2020-02-10 00:34:14 +08:00
|
|
|
message(WARNING "\
|
|
|
|
No old fdbserver binary found - using ${fdbserver_location} \
|
|
|
|
It is recommended to install the current stable version from https://www.foundationdb.org/download/ \
|
|
|
|
Or provide a path to another fdbserver")
|
|
|
|
endif()
|
2019-01-23 06:25:20 +08:00
|
|
|
|
2020-02-10 00:34:14 +08:00
|
|
|
set(TestRunner "${PROJECT_SOURCE_DIR}/tests/TestRunner/TestRunner.py")
|
2019-01-23 06:25:20 +08:00
|
|
|
|
2021-07-28 01:17:55 +08:00
|
|
|
configure_file(${PROJECT_SOURCE_DIR}/tests/CTestCustom.ctest.cmake ${PROJECT_BINARY_DIR}/CTestCustom.ctest @ONLY)
|
2019-01-23 06:25:20 +08:00
|
|
|
|
2020-02-10 00:34:14 +08:00
|
|
|
configure_testing(TEST_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
ERROR_ON_ADDITIONAL_FILES
|
|
|
|
IGNORE_PATTERNS ".*/CMakeLists.txt")
|
2019-01-23 06:25:20 +08:00
|
|
|
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES AsyncFileCorrectness.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES AsyncFileMix.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES AsyncFileRead.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES AsyncFileReadRandom.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES AsyncFileWrite.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES BackupContainers.txt IGNORE)
|
2022-01-28 06:25:37 +08:00
|
|
|
add_fdb_test(TEST_FILES s3VersionHeaders.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES BandwidthThrottle.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES BigInsert.txt IGNORE)
|
2021-11-04 02:19:07 +08:00
|
|
|
add_fdb_test(TEST_FILES BlobGranuleFileUnit.txt IGNORE)
|
2021-10-15 07:23:12 +08:00
|
|
|
add_fdb_test(TEST_FILES BlobManagerUnit.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES ConsistencyCheck.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES DDMetricsExclude.txt IGNORE)
|
2020-03-24 08:01:17 +08:00
|
|
|
add_fdb_test(TEST_FILES DataDistributionMetrics.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES DiskDurability.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES FileSystem.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES Happy.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES Mako.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES IncrementalDelete.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES KVStoreMemTest.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES KVStoreReadMostly.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES KVStoreTest.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES KVStoreTestRead.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES KVStoreTestWrite.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES KVStoreValueSize.txt UNIT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES LayerStatusMerge.txt IGNORE)
|
2020-03-27 05:35:29 +08:00
|
|
|
add_fdb_test(TEST_FILES ParallelRestoreApiCorrectnessAtomicRestore.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES PureNetwork.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RRW2500.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RandomRead.txt IGNORE)
|
2021-03-03 05:06:01 +08:00
|
|
|
add_fdb_test(TEST_FILES RandomRangeRead.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES RandomReadWrite.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES ReadAbsent.txt IGNORE)
|
2020-06-20 16:36:42 +08:00
|
|
|
add_fdb_test(TEST_FILES ReadAfterWrite.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES ReadHalfAbsent.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodCorrectnessUnits.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodCorrectnessBTree.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodCorrectnessPager.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodCorrectness.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodPerfTests.txt IGNORE)
|
2020-02-13 08:12:57 +08:00
|
|
|
add_fdb_test(TEST_FILES RedwoodPerfSet.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodPerfPrefixCompression.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES RedwoodPerfSequentialInsert.txt IGNORE)
|
2021-03-03 05:06:01 +08:00
|
|
|
add_fdb_test(TEST_FILES RedwoodPerfRandomRangeScans.txt IGNORE)
|
2020-06-16 00:45:36 +08:00
|
|
|
add_fdb_test(TEST_FILES RocksDBTest.txt IGNORE)
|
2020-10-30 11:42:23 +08:00
|
|
|
add_fdb_test(TEST_FILES S3BlobStore.txt IGNORE)
|
2020-02-11 02:02:05 +08:00
|
|
|
add_fdb_test(TEST_FILES SampleNoSimAttrition.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
if (NOT USE_UBSAN) # TODO re-enable in UBSAN after https://github.com/apple/foundationdb/issues/2410 is resolved
|
|
|
|
add_fdb_test(TEST_FILES SimpleExternalTest.txt)
|
|
|
|
else()
|
2020-05-14 13:46:07 +08:00
|
|
|
add_fdb_test(TEST_FILES SimpleExternalTest.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
endif()
|
|
|
|
add_fdb_test(TEST_FILES SlowTask.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES SpecificUnitTest.txt IGNORE)
|
2020-04-17 05:54:05 +08:00
|
|
|
add_fdb_test(TEST_FILES StorageMetricsSampleTests.txt IGNORE)
|
2021-06-16 08:36:56 +08:00
|
|
|
add_fdb_test(TEST_FILES WorkerTests.txt IGNORE)
|
2021-06-24 05:59:00 +08:00
|
|
|
add_fdb_test(TEST_FILES ClusterControllerTests.txt IGNORE)
|
2021-03-06 03:28:15 +08:00
|
|
|
add_fdb_test(TEST_FILES StorageServerInterface.txt)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES StreamingWrite.txt IGNORE)
|
2021-03-06 03:28:15 +08:00
|
|
|
add_fdb_test(TEST_FILES SystemData.txt)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES ThreadSafety.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES TraceEventMetrics.txt IGNORE)
|
2020-04-07 00:53:18 +08:00
|
|
|
add_fdb_test(TEST_FILES PopulateTPCC.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES TPCC.txt IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(TEST_FILES default.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES errors.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES fail.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES killall.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES latency.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES performance-fs.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES performance.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES ping.TXT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES pingServers.TXT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES pt.TXT IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES randomSelector.txt IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES selectorCorrectness.txt IGNORE)
|
2021-08-18 22:05:12 +08:00
|
|
|
add_fdb_test(TEST_FILES IThreadPool.txt IGNORE)
|
2022-02-04 05:25:11 +08:00
|
|
|
add_fdb_test(TEST_FILES PerfUnitTests.toml IGNORE)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/AtomicBackupCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/AtomicBackupToDBCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/AtomicOps.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/AtomicOpsApiCorrectness.toml)
|
2020-12-04 03:32:30 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/BackupAzureBlobCorrectness.toml IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES fast/BackupS3BlobCorrectness.toml IGNORE)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/BackupCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/BackupCorrectnessClean.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/BackupToDBCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/BackupToDBCorrectnessClean.toml)
|
2021-11-04 02:19:07 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/BlobGranuleCorrectness.toml IGNORE)
|
|
|
|
add_fdb_test(TEST_FILES fast/BlobGranuleCorrectnessClean.toml IGNORE)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/CacheTest.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/CloggedSideband.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/ConfigureLocked.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/ConstrainedRandomSelector.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/CycleAndLock.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/CycleTest.toml)
|
2021-09-04 05:19:27 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/ChangeFeeds.toml)
|
2021-10-28 03:00:30 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/DataLossRecovery.toml)
|
Upgrade AES 128 GCM -> AES 256, StreamCipher code refactor (#6314)
* Upgrade AES 128 GCM -> AES 256, StreamCipher code refactor
Major changes proposed are:
1. Refactor StreamCipher code to enable instantiation of
multiple encryption keys. However, code still retains
a globalEncryption key semantics used in Backup file
encryption usecase.
2. Enhance StreamCipher to provide HMAC signature digest
generation. Further, the class implements HMAC encryption
key derivation function.
3. Upgrade StreamCipher to use AES 256 GCM mode from currently
supported AES 128 GCM mode.
Note: The code changes the encryption key size, however, the
feature is NOT currently in use, hence, should be OK.
3. Add EncryptionOps validation and benchmark toml supported
workload, it does the following:
a. Allow user to configure encrypt-decrypt of a fixed size
buffer or variable size buffer [100, 512K]
b. Allow user to configure number of interactions of the runs,
in each iteration: generate random data, derive an encryption
key using HMAC SHA256 method, encrypt data and
then decrypt data. It collects following metrics:
i) time taken to derive encryption key.
ii) time taken to encrypt the buffer.
iii) time taken to decrypt the buffer.
iv) total bytes encrypted and/or decrypted
c. Along with stats it basic basic validations on the encrypted
and decrypted buffer
d. On completion for test, records the above mentioned metrics
in trace files.
2022-02-01 09:52:44 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/EncryptionOps.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/FuzzApiCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/FuzzApiCorrectnessClean.toml)
|
2020-08-20 01:37:39 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/IncrementalBackup.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/IncrementTest.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/InventoryTestAlmostReadOnly.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/InventoryTestSomeWrites.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/KillRegionCycle.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/LocalRatekeeper.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/LongStackWriteDuringRead.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/LowLatency.toml)
|
2021-07-12 02:56:06 +08:00
|
|
|
# TODO: Fix failures and reenable this test:
|
|
|
|
add_fdb_test(TEST_FILES fast/LowLatencySingleClog.toml IGNORE)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/MemoryLifetime.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/MoveKeysCycle.toml)
|
2021-08-10 05:36:07 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/MutationLogReaderCorrectness.toml)
|
2021-12-04 04:50:07 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/GetRangeAndMap.toml)
|
2020-10-06 01:07:51 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/ProtocolVersion.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/RandomSelector.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/RandomUnitTests.toml)
|
2020-09-05 01:01:58 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/ReadHotDetectionCorrectness.toml IGNORE) # TODO re-enable once read hot detection is enabled.
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/ReportConflictingKeys.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/SelectorCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/Sideband.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/SidebandWithStatus.toml)
|
2020-09-29 04:19:48 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/SimpleAtomicAdd.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/SpecialKeySpaceCorrectness.toml)
|
2021-09-16 01:55:39 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/StreamingRangeRead.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/SwizzledRollbackSideband.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/SystemRebootTestCycle.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/TaskBucketCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/TimeKeeperCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/TxnStateStoreCycleTest.toml)
|
2020-08-07 06:56:38 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/UDP.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES fast/Unreadable.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/VersionStamp.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/Watches.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/WriteDuringRead.toml)
|
|
|
|
add_fdb_test(TEST_FILES fast/WriteDuringReadClean.toml)
|
2021-06-16 01:03:19 +08:00
|
|
|
add_fdb_test(TEST_FILES noSim/RandomUnitTests.toml UNIT)
|
2022-01-07 02:34:50 +08:00
|
|
|
add_fdb_test(TEST_FILES noSim/KeyValueStoreRocksDBTest.toml IGNORE) # re-enable as needed for RocksDB. Breaks correctness tests if RocksDB is disabled.
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/CheckRelocation.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/ClogUnclog.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/CloggedCycleWithKills.toml)
|
2021-08-18 03:08:59 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/ConfigIncrement.toml)
|
2022-02-10 03:58:36 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/ConfigIncrementWithKills.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/ConflictRangeCheck.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/ConflictRangeRYOWCheck.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/CycleRollbackClogged.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/CycleWithKills.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/FuzzTest.toml)
|
2022-02-01 06:25:38 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/HighContentionPrefixAllocator.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/InventoryTestHeavyWrites.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/LargeApiCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/LargeApiCorrectnessStatus.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/RYWDisable.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/RandomReadWriteTest.toml)
|
2021-09-01 06:19:52 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/SpecificUnitTests.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/SwizzledLargeApiCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/RedwoodCorrectnessBTree.toml)
|
2021-11-16 20:27:58 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/RedwoodDeltaTree.toml)
|
2020-11-14 09:24:57 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/Throttling.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/TransactionTagApiCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/TransactionTagSwizzledApiCorrectness.toml)
|
2020-09-02 13:25:40 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/WriteTagThrottling.toml)
|
2022-02-09 05:40:24 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/AllSimUnitTests.toml IGNORE)
|
2022-02-04 05:25:11 +08:00
|
|
|
add_fdb_test(TEST_FILES rare/StatusBuilderPerf.toml)
|
|
|
|
add_fdb_test(TEST_FILES rare/TLogVersionMessagesOverheadFactor.toml)
|
2020-09-16 01:30:35 +08:00
|
|
|
add_fdb_test(
|
2022-01-26 03:37:07 +08:00
|
|
|
TEST_FILES restarting/from_7.0.0/SnapIncrementalRestore-1.txt
|
|
|
|
restarting/from_7.0.0/SnapIncrementalRestore-2.txt)
|
2022-01-25 13:58:23 +08:00
|
|
|
add_fdb_test(
|
|
|
|
TEST_FILES restarting/from_7.1.0/ConfigureTestRestart-1.toml
|
|
|
|
restarting/from_7.1.0/ConfigureTestRestart-2.toml)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(
|
2021-09-03 05:07:15 +08:00
|
|
|
TEST_FILES restarting/from_5.0.0_until_6.3.0/CycleTestRestart-1.txt
|
|
|
|
restarting/from_5.0.0_until_6.3.0/CycleTestRestart-2.txt)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(
|
2021-09-03 05:07:15 +08:00
|
|
|
TEST_FILES restarting/from_5.0.0_until_6.3.0/StorefrontTestRestart-1.txt
|
|
|
|
restarting/from_5.0.0_until_6.3.0/StorefrontTestRestart-2.txt)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(
|
2021-09-03 05:07:15 +08:00
|
|
|
TEST_FILES restarting/from_5.1.7_until_6.3.0/DrUpgradeRestart-1.txt
|
|
|
|
restarting/from_5.1.7_until_6.3.0/DrUpgradeRestart-2.txt)
|
2020-02-10 00:34:14 +08:00
|
|
|
add_fdb_test(
|
2021-09-03 05:07:15 +08:00
|
|
|
TEST_FILES restarting/from_5.2.0_until_6.3.0/ClientTransactionProfilingCorrectness-1.txt
|
|
|
|
restarting/from_5.2.0_until_6.3.0/ClientTransactionProfilingCorrectness-2.txt)
|
|
|
|
add_fdb_test(
|
|
|
|
TEST_FILES restarting/from_6.3.13/ClientTransactionProfilingCorrectness-1.txt
|
|
|
|
restarting/from_6.3.13/ClientTransactionProfilingCorrectness-2.txt)
|
|
|
|
add_fdb_test(
|
|
|
|
TEST_FILES restarting/from_6.3.13/CycleTestRestart-1.txt
|
|
|
|
restarting/from_6.3.13/CycleTestRestart-2.txt)
|
|
|
|
add_fdb_test(
|
|
|
|
TEST_FILES restarting/from_6.3.13/DrUpgradeRestart-1.txt
|
|
|
|
restarting/from_6.3.13/DrUpgradeRestart-2.txt)
|
|
|
|
add_fdb_test(
|
|
|
|
TEST_FILES restarting/from_6.3.13/StorefrontTestRestart-1.txt
|
|
|
|
restarting/from_6.3.13/StorefrontTestRestart-2.txt)
|
2020-10-05 09:11:04 +08:00
|
|
|
add_fdb_test(
|
2020-10-23 05:06:11 +08:00
|
|
|
TEST_FILES restarting/from_7.0.0/UpgradeAndBackupRestore-1.toml
|
|
|
|
restarting/from_7.0.0/UpgradeAndBackupRestore-2.toml)
|
2020-06-18 14:04:04 +08:00
|
|
|
add_fdb_test(
|
2022-01-27 10:05:27 +08:00
|
|
|
TEST_FILES restarting/to_7.0.0/CycleTestRestart-1.txt
|
|
|
|
restarting/to_7.0.0/CycleTestRestart-2.txt)
|
2021-12-01 02:52:06 +08:00
|
|
|
add_fdb_test(
|
2022-01-25 10:50:58 +08:00
|
|
|
TEST_FILES restarting/from_7.0.0/SnapTestAttrition-1.txt
|
|
|
|
restarting/from_7.0.0/SnapTestAttrition-2.txt)
|
2021-12-01 02:52:06 +08:00
|
|
|
add_fdb_test(
|
2022-01-25 10:50:58 +08:00
|
|
|
TEST_FILES restarting/from_7.0.0/SnapTestSimpleRestart-1.txt
|
|
|
|
restarting/from_7.0.0/SnapTestSimpleRestart-2.txt)
|
2021-12-01 02:52:06 +08:00
|
|
|
add_fdb_test(
|
2022-01-25 10:50:58 +08:00
|
|
|
TEST_FILES restarting/from_7.0.0/SnapTestRestart-1.txt
|
|
|
|
restarting/from_7.0.0/SnapTestRestart-2.txt)
|
2021-12-01 02:52:06 +08:00
|
|
|
add_fdb_test(
|
2022-01-25 10:50:58 +08:00
|
|
|
TEST_FILES restarting/from_7.0.0/SnapCycleRestart-1.txt
|
|
|
|
restarting/from_7.0.0/SnapCycleRestart-2.txt)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/ApiCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ApiCorrectnessAtomicRestore.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ApiCorrectnessSwitchover.toml)
|
2021-10-14 03:10:52 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/BlobGranuleCorrectnessLarge.toml IGNORE)
|
2021-10-15 07:23:12 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/BlobGranuleCorrectnessLargeClean.toml IGNORE)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/ClogWithRollbacks.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/CloggedCycleTest.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/CloggedStorefront.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/CommitBug.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ConfigureTest.toml)
|
2021-09-22 07:49:55 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/ConfigureStorageMigrationTest.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/CycleRollbackPlain.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/DDBalanceAndRemove.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/DDBalanceAndRemoveStatus.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/DifferentClustersSameRV.toml)
|
2021-07-30 16:32:43 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/DiskFailureCycle.toml)
|
2020-07-13 05:41:12 +08:00
|
|
|
add_fdb_test(TEST_FILES slow/FastTriggeredWatches.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/LowLatencyWithFailures.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/MoveKeysClean.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/MoveKeysSideband.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/RyowCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/Serializability.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SharedBackupCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SharedBackupToDBCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/StorefrontTest.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SwizzledApiCorrectness.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SwizzledCycleTest.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SwizzledDdBalance.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SwizzledRollbackTimeLapse.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/SwizzledRollbackTimeLapseIncrement.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/VersionStampBackupToDB.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/VersionStampSwitchover.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/WriteDuringReadAtomicRestore.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/WriteDuringReadSwitchover.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ddbalance.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreNewBackupCorrectnessAtomicOp.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreNewBackupCorrectnessCycle.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreNewBackupCorrectnessMultiCycles.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreNewBackupWriteDuringReadAtomicRestore.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreOldBackupCorrectnessAtomicOp.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreOldBackupCorrectnessCycle.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreOldBackupCorrectnessMultiCycles.toml)
|
|
|
|
add_fdb_test(TEST_FILES slow/ParallelRestoreOldBackupWriteDuringReadAtomicRestore.toml)
|
2020-10-16 06:58:32 +08:00
|
|
|
add_fdb_test(TEST_FILES ParallelRestoreOldBackupApiCorrectnessAtomicRestore.toml IGNORE)
|
2020-02-10 00:34:14 +08:00
|
|
|
# Note that status tests are not deterministic.
|
|
|
|
add_fdb_test(TEST_FILES status/invalid_proc_addresses.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/local_6_machine_no_replicas_remain.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_1_of_3_coordinators_remain.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_2_of_3_coordinators_remain.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_cannot_write_cluster_file.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_idle.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_initializing.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_no_coordinators.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_no_database.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_no_servers.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/separate_not_enough_servers.txt)
|
|
|
|
add_fdb_test(TEST_FILES status/single_process_too_many_config_params.txt)
|
2019-01-23 06:25:20 +08:00
|
|
|
|
2021-05-08 05:54:59 +08:00
|
|
|
if(NOT OPEN_FOR_IDE)
|
|
|
|
add_test(
|
|
|
|
NAME multiversion_client/unit_tests
|
|
|
|
COMMAND $<TARGET_FILE:fdbserver> -r unittests -f /fdbclient/multiversionclient/
|
|
|
|
)
|
2021-06-24 00:25:51 +08:00
|
|
|
set_tests_properties("multiversion_client/unit_tests" PROPERTIES ENVIRONMENT UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1)
|
2021-05-12 03:21:09 +08:00
|
|
|
add_test(
|
|
|
|
NAME threadsafe_threadfuture_to_future/unit_tests
|
|
|
|
COMMAND $<TARGET_FILE:fdbserver> -r unittests -f /flow/safeThreadFutureToFuture/
|
|
|
|
)
|
2021-06-24 00:25:51 +08:00
|
|
|
set_tests_properties("threadsafe_threadfuture_to_future/unit_tests" PROPERTIES ENVIRONMENT UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1)
|
2021-05-08 05:54:59 +08:00
|
|
|
endif()
|
2019-10-22 05:52:03 +08:00
|
|
|
|
2021-12-15 04:03:44 +08:00
|
|
|
if(NOT OPEN_FOR_IDE)
|
|
|
|
add_test(
|
|
|
|
NAME command_line_argument_test
|
|
|
|
COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tests/argument_parsing/test_argument_parsing.py ${CMAKE_BINARY_DIR}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-02-10 00:34:14 +08:00
|
|
|
verify_testing()
|
2020-03-26 08:36:47 +08:00
|
|
|
if (NOT OPEN_FOR_IDE AND NOT WIN32)
|
2020-05-22 04:35:54 +08:00
|
|
|
create_correctness_package()
|
|
|
|
if (USE_VALGRIND)
|
|
|
|
create_valgrind_correctness_package()
|
|
|
|
endif()
|
2020-02-11 02:02:05 +08:00
|
|
|
endif()
|
2019-12-12 03:11:17 +08:00
|
|
|
else()
|
2020-02-10 00:34:14 +08:00
|
|
|
message(WARNING "Python not found, won't configure ctest")
|
2020-02-04 02:42:05 +08:00
|
|
|
endif()
|