27cdeb2 Rewrite bash tests in Python

Authored and Committed by Tim Crawford 5 years ago
27 files changed. 656 lines added. 823 lines removed.
.gitignore
file modified
+3 -1
tests/dattobd.py
file added
+155
tests/dbdtest.sh
file modified
+13 -76
tests/devicetestcase.py
file added
+36
tests/include/common.sh
file removed
-202
tests/include/libtest.sh
file removed
-73
tests/kmod.py
file added
+44
tests/parse.py
file removed
-39
tests/scripts/dbdctl/destroy/destroy_active_incremental.sh
file removed
-28
tests/scripts/dbdctl/destroy/destroy_active_snapshot.sh
file removed
-25
tests/scripts/dbdctl/destroy/destroy_dormant_incremental.sh
file removed
-40
tests/scripts/dbdctl/destroy/destroy_dormant_snapshot.sh
file removed
-37
tests/scripts/dbdctl/destroy/destroy_non_existing.sh
file removed
-17
tests/scripts/dbdctl/destroy/destroy_unverified_incremental.sh
file removed
-32
tests/scripts/dbdctl/destroy/destroy_unverified_snapshot.sh
file removed
-32
tests/scripts/dbdctl/setup-snapshot/setup_invalid.sh
file removed
-25
tests/scripts/dbdctl/setup-snapshot/setup_readonly.sh
file removed
-24
tests/scripts/dbdctl/setup-snapshot/setup_snapshot.sh
file removed
-31
tests/scripts/dbdctl/setup-snapshot/setup_twice.sh
file removed
-21
tests/scripts/dbdctl/setup-snapshot/setup_unmounted.sh
file removed
-25
tests/scripts/dbdctl/transition-to-incremental/transition_cow_full.sh
file removed
-48
tests/scripts/functional/modify_origin.sh
file removed
-47
tests/test_destroy.py
file added
+90
tests/test_setup.py
file added
+87
tests/test_snapshot.py
file added
+76
tests/test_transition_incremental.py
file added
+93
tests/util.py
file added
+59
    Rewrite bash tests in Python
    
    Rewrite existing tests in Python 3, taking advantage of Python's unit
    testing framework. A simple FFI binding was made using cffi so that
    tests can use the library instead of calling out to dbdctl. This
    additionally allows using errno for better checks.
    
        
file modified
+3 -1
file added
+155
file modified
+13 -76
file removed
-202
file added
+44
file removed
-39
file added
+87
file added
+59