mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2024-12-22 22:06:05 +01:00
add test
This commit is contained in:
parent
79523f169f
commit
44f88601fb
@ -21,10 +21,9 @@ def test():
|
|||||||
# test12()
|
# test12()
|
||||||
# test13()
|
# test13()
|
||||||
# test14()
|
# test14()
|
||||||
|
# test15_recieve()
|
||||||
test15_recieve()
|
# test15_send()
|
||||||
test15_send()
|
test16()
|
||||||
|
|
||||||
|
|
||||||
def test1():
|
def test1():
|
||||||
_init(1)
|
_init(1)
|
||||||
@ -194,6 +193,19 @@ def test15_send():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test16():
|
||||||
|
"""
|
||||||
|
Minimal example to replicate a BTRFS subvolume with an active sending side.
|
||||||
|
"""
|
||||||
|
child_path = '/mnt/backup/snap/blogger.privacy1st.de/20230104T2255'
|
||||||
|
ssh_target = 'rootnas'
|
||||||
|
target_path = '/mnt/data/test/blogger.privacy1st.de/20230104T2255'
|
||||||
|
print(f'nas: '
|
||||||
|
f'sudo btrfs-receive-chunks-passive {target_path}')
|
||||||
|
print(f'odroid: '
|
||||||
|
f'sudo btrfs-send-chunks-active {child_path} {ssh_target} {target_path}')
|
||||||
|
|
||||||
|
|
||||||
def _init(test_number: int):
|
def _init(test_number: int):
|
||||||
print(f"TEST {test_number}")
|
print(f"TEST {test_number}")
|
||||||
test_dir = Path('test')
|
test_dir = Path('test')
|
||||||
|
Loading…
Reference in New Issue
Block a user