Add full diff objects to output #4

Merged
roysc merged 3 commits from add-data into main 2023-09-27 16:46:14 +00:00
Showing only changes of commit eab53b9a71 - Show all commits

View File

@ -14,15 +14,13 @@ shift $((OPTIND - 1))
A=${1:-geth}
B=${2:-plugeth}
if [[ -n "$output_dir" ]]; then
mkdir -p $output_dir
A_OUTPUT="$output_dir/A"
B_OUTPUT="$output_dir/B"
else
A_OUTPUT=$(mktemp -d -t A_XXXX)
B_OUTPUT=$(mktemp -d -t B_XXXX)
if [[ -z "$output_dir" ]]; then
output_dir=$(mktemp -d)
fi
A_OUTPUT="$output_dir/A"
B_OUTPUT="$output_dir/B"
./dumpdiff.$A $A_OUTPUT
./dumpdiff.$B $B_OUTPUT
@ -34,5 +32,4 @@ for file in $(ls $A_OUTPUT); do
mv $tmpfile "$dir/$file"
done
(set -x; diff "${A_OUTPUT}/$file" "${B_OUTPUT}/$file")
echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
done