You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a workflow that runs `kani list` on the standard library and posts
the results in a comment on the pull request. This workflow runs iff a
pull request is merged, so that we have one comment at the end of a PR
with the most up-to-date list results. (I considered other approaches,
like running it on opening the PR or with every commit, but decided
having one single comment with the final changes was best for
brevity/clarity).
See this [test
PR](https://github.com/carolynzech/verify-rust-std/pull/10) on my fork
as a demo of how it would work.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
---------
Co-authored-by: Celina G. Val <[email protected]>
echo" -p, --path <path> Optional: Specify a path to a copy of the std library. For example, if you want to run the script from an outside directory."
10
+
echo" --run <verify-std|list> Optional: Specify whether to run 'verify-std' or 'list' command. Defaults to 'verify-std' if not specified."
10
11
echo" --kani-args <command arguments to kani> Optional: Arguments to pass to the command. Simply pass them in the same way you would to the Kani binary. This should be the last argument."
11
12
exit 1
12
13
}
13
14
14
15
# Initialize variables
15
16
command_args=""
16
17
path=""
18
+
run_command="verify-std"
17
19
18
20
# Parse command line arguments
19
21
# TODO: Improve parsing with getopts
@@ -31,13 +33,23 @@ while [[ $# -gt 0 ]]; do
31
33
usage
32
34
fi
33
35
;;
36
+
--run)
37
+
if [[ -n$2&& ($2 == "verify-std"||$2 == "list") ]];then
38
+
run_command=$2
39
+
shift 2
40
+
else
41
+
echo"Error: Invalid run command. Must be 'verify-std' or 'list'."
0 commit comments