Lines Matching refs:TEST_DIR

36     rm -f "$TEST_DIR"/sn{0,1,2}{,-pre,-extra,-post}
171 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn0-pre" bs=1 skip=$sn0_ofs count=40 \
173 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn1-pre" bs=1 skip=$sn1_ofs count=40 \
175 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn2-pre" bs=1 skip=$sn2_ofs count=40 \
179 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn0-extra" bs=1 \
181 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn1-extra" bs=1 \
183 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn2-extra" bs=1 \
187 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn0-post" bs=1 \
190 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn1-post" bs=1 \
193 dd if="$TEST_IMG.v2.orig" of="$TEST_DIR/sn2-post" bs=1 \
199 poke_file "$TEST_DIR/sn0-pre" 36 '\x00\x00\x00\x00'
200 truncate -s 0 "$TEST_DIR/sn0-extra"
202 truncate -s $(($(snapshot_table_entry_size "$TEST_DIR/sn0-pre") - 40)) \
203 "$TEST_DIR/sn0-post"
206 poke_file "$TEST_DIR/sn1-pre" 36 '\x00\x00\x00\x32'
207 truncate -s 50 "$TEST_DIR/sn1-extra"
208 poke_file "$TEST_DIR/sn1-extra" 24 'very important data'
210 truncate -s $(($(snapshot_table_entry_size "$TEST_DIR/sn1-pre") - 90)) \
211 "$TEST_DIR/sn1-post"
214 poke_file "$TEST_DIR/sn2-pre" 36 '\x00\x00\x00\x08'
215 truncate -s 8 "$TEST_DIR/sn2-extra"
217 truncate -s $(($(snapshot_table_entry_size "$TEST_DIR/sn2-pre") - 48)) \
218 "$TEST_DIR/sn2-post"
221 cat "$TEST_DIR"/sn0-{pre,extra,post} \
222 "$TEST_DIR"/sn1-{pre,extra,post} \
223 "$TEST_DIR"/sn2-{pre,extra,post} \
331 touch "$TEST_DIR/sn0"
337 truncate -s 40 "$TEST_DIR/sn0"
340 poke_file "$TEST_DIR/sn0" 12 '\xff\xff'
342 poke_file "$TEST_DIR/sn0" 14 '\xff\xff'
344 poke_file "$TEST_DIR/sn0" 36 '\x00\x00\x04\x00'
356 dd if="$TEST_DIR/sn0" of="$TEST_IMG" bs=1 seek=$offset conv=notrunc \
446 dd if="$TEST_DIR/sn0" of="$TEST_IMG" bs=1 seek=$offset conv=notrunc \