Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
fix: git diff called from scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Dec 1, 2023
1 parent 9de033b commit f50b646
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mutation-testing/packages-output/pox-locking/missed.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pox-locking/src/pox_1.rs:128: replace handle_contract_call -> Result<(), ClarityError> with Ok(())
pox-locking/src/pox_2.rs:217: replace pox_lock_extend_v2 -> Result<u128, LockingError> with Ok(1)
pox-locking/src/pox_3.rs:72: replace pox_lock_extend_v3_not_tested -> Result<u128, LockingError> with Ok(0)
pox-locking/src/events.rs:47: replace create_event_info_stack_or_delegate_code -> String with String::new()
pox-locking/src/events.rs:351: replace synthesize_pox_2_or_3_event_info -> Result<Option<Value>, ClarityError> with Ok(None)
pox-locking/src/events.rs:76: replace create_event_info_aggregation_code -> String with "xyzzy".into()
Expand All @@ -27,4 +26,5 @@ pox-locking/src/pox_3.rs:87: replace pox_lock_extend_v3 -> Result<u128, LockingE
pox-locking/src/events.rs:47: replace create_event_info_stack_or_delegate_code -> String with "xyzzy".into()
pox-locking/src/pox_2.rs:473: replace handle_contract_call -> Result<(), ClarityError> with Ok(())
pox-locking/src/pox_2.rs:217: replace pox_lock_extend_v2 -> Result<u128, LockingError> with Ok(0)
pox-locking/src/pox_3.rs:72: replace pox_lock_extend_v3_not_tested -> Result<u128, LockingError> with Ok(0)
pox-locking/src/pox_3.rs:72: replace pox_lock_extend_v3_not_tested -> Result<u128, LockingError> with Ok(1)
8 changes: 2 additions & 6 deletions mutation-testing/scripts/append-match-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
## based on the file it was taken from, append it to the same file in the STABLE folder


PR_FOLDER="./../temp/mutants.out"
STABLE_FOLDER_PARENT="./../packages-output"
PR_FOLDER="../temp/mutants.out"
STABLE_FOLDER_PARENT="../packages-output"
FILES=("caught.txt" "missed.txt" "timeout.txt" "unviable.txt")

echo "Starting script..."
Expand Down Expand Up @@ -66,7 +66,3 @@ for file in "${FILES[@]}"; do
done

echo "Script completed."


# remove temp/mutants.out
## rm -rf ../temp/
10 changes: 6 additions & 4 deletions mutation-testing/scripts/git-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ git diff > git.diff
# for faster builds: increase number to 4 if at least 16 gb ram and 6 cores CPU
cargo mutants --no-shuffle -j 2 -vV --in-diff git.diff --output temp/

# go to scripts folder level
cd scripts

# call append-match-package.sh to update the content from the stable output
### sh scripts/append-match-package.sh



sh append-match-package.sh

# removes extra files
rm -rf ../git.diff
rm -rf ../temp

0 comments on commit f50b646

Please sign in to comment.