forked from rr-debugger/rr
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This follows up the recently merged rr-debugger#3735 by: 1. Adding --pack-dir to the help 2. Allowing `pack` to take multiple directories to pack to make the argument useful. 3. Adding a test for the option.
- Loading branch information
Showing
4 changed files
with
77 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
source `dirname $0`/util.sh | ||
|
||
record simple$bitness | ||
record simple$bitness | ||
|
||
mkdir the_pack_dir | ||
|
||
# Pack both directories with a common pack directory | ||
pack --pack-dir the_pack_dir simple$bitness-$nonce-0 simple$bitness-$nonce-1 | ||
|
||
# Test that we can still replay both traces | ||
replay simple$bitness-$nonce-0 | ||
check EXIT-SUCCESS | ||
rm replay.err replay.out | ||
|
||
replay simple$bitness-$nonce-1 | ||
check EXIT-SUCCESS | ||
rm replay.err replay.out | ||
|
||
# Check that we can move all three directories somewhere else and replay | ||
# still works. | ||
mkdir a_subdirectory | ||
mv the_pack_dir simple$bitness-$nonce-0 simple$bitness-$nonce-1 a_subdirectory | ||
|
||
replay a_subdirectory/simple$bitness-$nonce-0 | ||
check EXIT-SUCCESS | ||
rm replay.err replay.out | ||
|
||
replay a_subdirectory/simple$bitness-$nonce-1 | ||
check EXIT-SUCCESS | ||
rm replay.err replay.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters