Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
f3d35fe3
Commit
f3d35fe3
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[Aorai] Fixes test script after changes in kernel API
parent
2128aefb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/aorai/tests/aorai/Aorai_test.ml
+10
-12
10 additions, 12 deletions
src/plugins/aorai/tests/aorai/Aorai_test.ml
with
10 additions
and
12 deletions
src/plugins/aorai/tests/aorai/Aorai_test.ml
+
10
−
12
View file @
f3d35fe3
...
...
@@ -4,17 +4,15 @@
open
Kernel
module
StdString
=
String
include
Plugin
.
Register
(
struct
module
P
=
Plugin
.
Register
(
struct
let
name
=
"aorai testing module"
let
shortname
=
"aorai-test"
let
help
=
"utility script for aorai regtests"
end
)
module
TestNumber
=
Zero
P
.
Zero
(
struct
let
option_name
=
"-aorai-test-number"
let
help
=
"test number when multiple tests are run over the same file"
...
...
@@ -22,7 +20,7 @@ module TestNumber =
end
)
module
InternalWpShare
=
Empty_string
(
P
.
Empty_string
(
struct
let
option_name
=
"-aorai-test-wp-share"
let
help
=
"use custom wp share dir (when in internal plugin mode)"
...
...
@@ -30,7 +28,7 @@ module InternalWpShare =
end
)
module
ProveAuxSpec
=
False
(
P
.
False
(
struct
let
option_name
=
"-aorai-test-prove-aux-spec"
let
help
=
"use WP + alt-ergo to prove that generated spec and body \
...
...
@@ -40,11 +38,11 @@ module ProveAuxSpec =
let
ok
=
ref
false
let
is_suffix
suf
str
=
let
lsuf
=
Std
String
.
length
suf
in
let
lstr
=
Std
String
.
length
str
in
let
lsuf
=
String
.
length
suf
in
let
lstr
=
String
.
length
str
in
if
lstr
<=
lsuf
then
false
else
let
estr
=
Std
String
.
sub
str
(
lstr
-
lsuf
)
lsuf
in
let
estr
=
String
.
sub
str
(
lstr
-
lsuf
)
lsuf
in
estr
=
suf
let
extend
()
=
...
...
@@ -68,7 +66,7 @@ let extend () =
let
tmpfile
=
Filename
.
get_temp_dir_name
()
^
"/aorai_"
^
(
Filename
.
chop_extension
(
Filename
.
basename
(
List
.
hd
(
Kernel
.
Files
.
get
()
))))
^
"_"
^
(
Filename
.
basename
(
List
.
hd
(
Kernel
.
Files
.
get
()
)
:>
string
)))
^
"_"
^
(
string_of_int
(
TestNumber
.
get
()
))
^
".i"
in
let
()
=
...
...
@@ -87,7 +85,7 @@ let extend () =
in
Project
.
copy
~
selection
my_project
;
Project
.
set_current
my_project
;
Files
.
append_after
[
tmpfile
];
Files
.
append_after
[
Filepath
.
Normalized
.
of_string
tmpfile
];
Constfold
.
off
()
;
Ast
.
compute
()
;
if
ProveAuxSpec
.
get
()
then
begin
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment