Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Andreas_Schwab:Factory
dd_rescue
ddr_1998-testhole.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ddr_1998-testhole.diff of Package dd_rescue
commit 7f2ff6434586083747bc5d046e0207886025e684 Author: Kurt Garloff <kurt@garloff.de> Date: Sat May 12 09:54:45 2018 +0000 Fix test case by ensuring there is a hole ... diff --git a/test_crypt.sh b/test_crypt.sh index 47f1fc9..62cf853 100755 --- a/test_crypt.sh +++ b/test_crypt.sh @@ -52,13 +52,20 @@ rm dd_rescue2 # Holes (all), skiphole echo "*** Holes ***" +# Produce file that consists of dd_rescue + hole + dd_rescue ./dd_rescue -qpt dd_rescue dd_rescue3 ./dd_rescue -qS 512k dd_rescue dd_rescue3 +# Ensure there is a hole even if dd_rescue is long +./dd_rescue -qS 384k -m 128k /dev/zero dd_rescue3 +# Test without and with skiphole enc_dec_compare_keys dd_rescue3 AES192-CTR keygen:ivgen "" "" "-qpt" enc_dec_compare_keys dd_rescue3 AES192-CTR keygen:ivgen skiphole "" "-qpt" +# Store 384k-512k in cmp3 ./dd_rescue -qt -s 384k -m 128k -S 0 dd_rescue3.cmp dd_rescue3.cmp3 +# Should be 128k of zeroes ./dd_rescue -qm 128k /dev/zero dd_rescue3.cmp2 cmp dd_rescue3.cmp2 dd_rescue3.cmp3 || exit 4 +# Repeat test with reverse enc_dec_compare_keys dd_rescue3 AES192-CTR keygen:ivgen "" "" "-qptr" enc_dec_compare_keys dd_rescue3 AES192-CTR keygen:ivgen skiphole "" "-qptr" ./dd_rescue -qt -s 384k -m 128k -S 0 dd_rescue3.cmp dd_rescue3.cmp3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor