1
1
# Checktestdata
2
2
3
- [ ![ Build Status ] ( https://img.shields.io/travis/ DOMjudge/checktestdata.svg )] ( https://travis-ci.org /DOMjudge/checktestdata )
3
+ [ ![ Build status ] ( https://gitlab.com/ DOMjudge/checktestdata/badges/antlr_rewrite/pipeline .svg )] ( https://gitlab.com /DOMjudge/checktestdata/commits/antlr_rewrite )
4
4
[ ![ Coverage Status] ( https://img.shields.io/coveralls/DOMjudge/checktestdata.svg )] ( https://coveralls.io/r/DOMjudge/checktestdata )
5
5
[ ![ Coverity Scan Status] ( https://img.shields.io/coverity/scan/4325.svg )] ( https://scan.coverity.com/projects/checktestdata )
6
6
@@ -27,43 +27,42 @@ Haskell embedded domain-specific language.
27
27
28
28
Requirements:
29
29
30
- * A C++ compiler that supports C++11 including regex support .
31
- (GNU g++ >= 4.9 and LLVM clang++ >= 3.5 are known to work)
30
+ * A modern C++ compiler .
31
+ (GNU g++ >= 7.0 is known to work)
32
32
* Libboost (http://www.boost.org/ )
33
33
* The GNU GMP libraries (http://gmplib.org/ )
34
- * Automake (https://www.gnu.org/software/automake/ )
35
- * flexc++/bisonc++ (optional)
36
-
37
- If you don't have ` flexc++ ` and/or ` bisonc++ ` available, you may use the release
38
- branch where we've pre-generated the scanner/parser files.
39
34
40
35
Command line for installing the build dependencies on Debian or
41
- Ubuntu, when using the release branch :
36
+ Ubuntu:
42
37
```
43
- apt-get install make g++ libboost-dev libgmp-dev autotools-dev automake
38
+ apt-get install make g++ libboost-dev libgmp-dev
44
39
```
45
40
For Redhat-like distributions try:
46
41
```
47
- yum install make g++ boost-devel gmp-devel automake
42
+ yum install make g++ boost-devel gmp-devel
48
43
```
49
44
50
- To compile checktestdata, run:
45
+ In order to compile checktestdata, you need to install
46
+ <a href =" https://bazel.build " >Bazel</a >.
47
+ We recommend to run Bazel via the wrapper
48
+ <a href =" https://github.com/bazelbuild/bazelisk " >bazelisk</a >. To install bazelisk, execute
51
49
```
52
- ./bootstrap
53
- make dist
54
- make
50
+ go get github.com/bazelbuild/bazelisk
51
+ # Add bazelisk to the default path.
52
+ export PATH=$PATH:$(go env GOPATH)/bin
55
53
```
56
54
57
- Leave out the ` make dist ` step if you use the pre-generated scanner/parser
58
- files on the release branch.
59
-
60
- Finally, you can run
55
+ To compile checktestdata and to run a number of tests:
61
56
```
62
- make check
57
+ bazelisk test //:test
63
58
```
64
- to run a number of tests. Note that a few of the tests are
65
- non-deterministic and may sometimes return an error. This is ok, but the
66
- ` make check ` command should run successfully more than 90% of the time.
59
+
60
+ Note that a few of the tests are
61
+ non-deterministic and may sometimes return an error.
62
+ This is ok, but the command above should run successfully more than 90% of the
63
+ time.
64
+
65
+ The checktestdata binary is available in ` bazel-bin/checktestdata ` .
67
66
68
67
For usage instructions run:
69
68
```
0 commit comments