feat: implement CH5 cube renewal, SQL fence routing, and transactional crafting
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""Execute durable drain/resync lifecycle; explicit session/queue fixture, no actor."""
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
ROOT=Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
class CubeFenceLifecycle(unittest.TestCase):
|
||||
def test_drain_owner_item_locks_resync_ack_sql_faults_and_restart(self):
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
exe=Path(folder)/'cube-fence'
|
||||
subprocess.run(['c++','-std=c++17','-fsanitize=address,undefined',
|
||||
'-fno-sanitize-recover=all','-I'+str(ROOT),
|
||||
str(ROOT/'tests/features/fixtures/cube_batch_probe.cpp'),
|
||||
'-lsqlite3','-o',str(exe)],check=True)
|
||||
subprocess.run([str(exe),str(Path(folder)/'cube.db'),'fence'],check=True)
|
||||
|
||||
|
||||
if __name__=='__main__':unittest.main()
|
||||
Reference in New Issue
Block a user