1
- # WHAT ARCHITECTURE?
1
+ #WHAT ARCHITECTURE ?
2
2
3
3
CPROVER now needs a C++11 compliant compiler and is known to work in the
4
4
following environments:
@@ -18,7 +18,7 @@ past, but are not actively tested:
18
18
- Solaris 11
19
19
- FreeBSD 11
20
20
21
- # Building using CMake
21
+ #Building using CMake
22
22
23
23
Building with CMake is supported across Linux, MacOS X and Windows with Visual
24
24
Studio 2019. There are also hand-written make files which can be used to build
@@ -119,11 +119,11 @@ files.
119
119
complete set of built binaries can be found in `build/bin/` once the build
120
120
is complete.
121
121
122
- *Parellel building*: You can pass `-j<numjobs>` to `make` to indicate how many
122
+ *Parallel building*: You can pass `-j<numjobs>` to `make` to indicate how many
123
123
jobs to run simultaneously. `ninja` defaults to building with `# of cores + 2`
124
124
jobs at the same time.
125
125
126
- # Building using Make
126
+ #Building using Make
127
127
128
128
The rest of this section is split up based on the platform being built on.
129
129
Please read the section appropriate for your platform.
@@ -258,7 +258,7 @@ Maven 3 manually.
258
258
gmake -C jbmc/src
259
259
```
260
260
261
- # Working with IDEs and Docker
261
+ #Working with IDEs and Docker
262
262
263
263
## Working with Visual Studio on Windows
264
264
@@ -311,7 +311,7 @@ To compile and run the tools in a Docker container, do the following:
311
311
In the resulting container, the files present in the local file system under
312
312
`local/path/with/files` will be present under `/mnt/analysis`.
313
313
314
- # Compilation options and configuration
314
+ #Compilation options and configuration
315
315
316
316
## Compiling with CUDD
317
317
@@ -507,3 +507,48 @@ successfully on Windows or macOS.
507
507
The argument for the IPASIR parameter gives the build system the location for
508
508
the IPASIR headers, which is needed for the cbmc includes of ` ipasir.h ` . The
509
509
compiled binary will be placed in ` cbmc/src/cbmc/cbmc ` .
510
+ This document assumes you have already been able to build CPROVER on
511
+ your chosen architecture.
512
+
513
+ #RUNNING REGRESSION AND UNIT TESTS
514
+
515
+ Regression and unit tests can be run using cmake or make. Your choice here
516
+ should be the same as the compiling of the project itself.
517
+
518
+ Note that running all regression and unit tests can be slow when a debug
519
+ build of CPROVER is used.
520
+
521
+ ## CMAKE
522
+
523
+ This can be done by changing to the directory you built the
524
+ project in with cmake and running ctest as follows.
525
+ ```
526
+ cd <build_dir>
527
+ ctest . -V -L CORE
528
+ ```
529
+ You can also specify a pattern of tests to run as follows.
530
+ ```
531
+ ctest . -V -L CORE -R <pattern>
532
+ ```
533
+ For example
534
+ ```
535
+ ctest . -V -L CORE -R goto
536
+ ```
537
+ that will run all CORE tests that include ` goto ` in their
538
+ name.
539
+
540
+ ## MAKE
541
+
542
+ The regression and unit tests are handled differently in the
543
+ make system. To run the regressions tests change to the
544
+ ` regression ` directory and simply running make as follows.
545
+ ```
546
+ cd regression
547
+ make test
548
+ ```
549
+ To run the unit tests, change into the ` unit ` directory and
550
+ then run make as follows.
551
+ ```
552
+ cd unit
553
+ make test
554
+ ```
0 commit comments