-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
20,708 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 @@ | ||
foundry-bug-report.kore |
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,7 @@ | ||
# Testing logging of equations as JSON | ||
|
||
This test sends the request to simplify an initial configuration of a Kontrol proof (based on the `resources/foundry-bug-report.kore` definition). | ||
The `kore-rpc-booster` server is expected to be started with `-l SimplifyJson --log-file test-log-simplify-json/simplify-log.txt`, which ensures that the equation simplification logs are collected by both Booster and Kore and emitted into a file. The log file is compared to `simplify-log.golden.txt`. | ||
|
||
Note: this test may turn out to be flaky, as the logs are sensitive to which equations fail to apply in Booster and why. | ||
|
10,350 changes: 10,350 additions & 0 deletions
10,350
test/rpc-integration/test-log-simplify-json/simplify-log.txt
Large diffs are not rendered by default.
Oops, something went wrong.
10,315 changes: 10,315 additions & 0 deletions
10,315
test/rpc-integration/test-log-simplify-json/simplify-log.txt.golden
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exuo pipefail | ||
|
||
# using variables from runDirectoryTest.sh | ||
|
||
echo "client=$client" | ||
echo "dir=$dir" | ||
echo "arguments=$*" | ||
|
||
diff="git diff --no-index" | ||
# remove "--regenerate" and tweak $diff if it is present | ||
|
||
client_args="" | ||
for arg in $*; do | ||
case "$arg" in | ||
--regenerate) | ||
echo "Re-generating expectation files" | ||
diff="tee" | ||
;; | ||
*) | ||
client_args+=" $arg" | ||
;; | ||
esac | ||
done | ||
|
||
# send a simplification request and compare the log files | ||
echo "Running a request which will produce the simplify-log.txt log file" | ||
${client} \ | ||
send $dir/state-002.send ${client_args} > /dev/null | ||
${diff} $dir/simplify-log.txt.golden $dir/simplify-log.txt |