Skip to content

Commit 0f0a2f1

Browse files
authored
Merge pull request diffblue#270 from diffblue/smowton/cleanup/move_benchmarks_to_pytest
Move simple benchmarks to run under Pytest
2 parents c22a720 + d69272d commit 0f0a2f1

File tree

73 files changed

+233
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+233
-408
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ driver/.idea
1515
driver/*.pyc
1616
build
1717
dist
18+
doc
1819

1920
# Ignoring boost
2021
boost/*
@@ -27,3 +28,11 @@ boost/*
2728
*.obj
2829
*.a
2930
*.lib
31+
32+
# emacs backups and temporaries
33+
\#*
34+
*~
35+
36+
# pytest temporaries
37+
__pycache__
38+
.cache

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,12 @@ jobs:
227227
install:
228228
- ccache --max-size=1G
229229
- cmake . -Bbuild "-DCMAKE_CXX_COMPILER=${COMPILER}" "-DCMAKE_BUILD_TYPE=${BUILD_TYPE}" "-Denable_security_tests=${RUN_SECURITY_TESTS}" "-Denable_cbmc_tests=${RUN_CBMC_TESTS}"
230-
- ( cd build; make install -j2 )
230+
- ( cd build; make -j2 )
231231

232232
# LOCAL CHANGES: Added cbmc/ prefix, and added unit and regression tests to the end of the list.
233233

234234
script:
235235
- ( cd build; ctest -V -L CORE )
236-
- scripts/travis_run_regression_tests.sh
237236

238237
before_cache:
239238
- ccache -s

benchmarks/README.txt

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,20 @@ sub-directories in this directory:
1010
Here we store genuine Java web applications, i.e. those used in practice.
1111
These benchmarks serve us for evaluation of the tool in conditions similar
1212
to those, when the tools is deployed to a customer.
13-
13+
1414
NOTE: These benchmarks are not suitable as data for regression test due to
1515
their size.
1616

17-
* TRAINING
18-
19-
These benchmarks classified as "tiny and feature/bug oriented Java web
20-
applications". Their purpose is to aid development of the tool. They are
21-
supposed to be real web applications (in the sense of GENUINE benchmarks),
22-
however, they should be as miniature as possible to maximise effectiveness
23-
of developments and/or debugging of desired feature.
24-
25-
NOTE: These benchmarks may/should also serve as data for regression tests.
26-
We keep the benchmarks separatelly from regresions tests, as one
27-
benchmark can be used in several regression tests.
28-
2917
* LIBRARIES
30-
18+
3119
This directory stores libraries commonly used in Java web applications.
3220
So, here we do not store benchmarks, but Java code we include in analysis
3321
of benchmarks in sub-directories GENUINE and TRAINING.
34-
22+
3523
NOTE: There is already going work on model of Java standard library for
3624
CMBC. This model and similar should be stored here and used in
3725
benchmarks.
3826

3927
Not all benchmarks or libraries are immediatelly redy to use. Majority of them
4028
actually require installation. These installation steps are described in details
4129
in "README.txt" files located in relevant locations in the sub-directories.
42-

benchmarks/TRAINING/diffblue/.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/README.txt

Lines changed: 0 additions & 64 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/taint_traces_01_evaluator.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/taint_traces_02_evaluator.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/taint_traces_03_evaluator.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/taint_traces_04_evaluator.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/taint_traces_05_evaluator.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

benchmarks/TRAINING/diffblue/taint_traces_06_evaluator.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)