-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc399f4
commit c191f65
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Set the base directory and report file | ||
BASE_DIR="./crates/bin/output_segment/reference-pies" | ||
REPORT_FILE="report.log" | ||
|
||
# Clear the report file if it exists | ||
> "$REPORT_FILE" | ||
|
||
# Iterate over each file in the directory | ||
for FILE in "$BASE_DIR"/*; do | ||
if [[ -f "$FILE" ]]; then | ||
echo "Processing $FILE..." | ||
|
||
# Run the command with the current file path | ||
RUST_LOG="debug,minilp::solver=info" cargo run -p output_segment --release -- --pie-path "$FILE" | ||
|
||
# Check if the command was successful | ||
if [[ $? -eq 0 ]]; then | ||
echo "Success: $FILE" | tee -a "$REPORT_FILE" | ||
else | ||
echo "Failure: $FILE" | tee -a "$REPORT_FILE" | ||
fi | ||
fi | ||
done | ||
|
||
echo "Report written to $REPORT_FILE" | ||
|