11# Checktestdata
22
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 )
44[ ![ Coverage Status] ( https://img.shields.io/coveralls/DOMjudge/checktestdata.svg )] ( https://coveralls.io/r/DOMjudge/checktestdata )
55[ ![ Coverity Scan Status] ( https://img.shields.io/coverity/scan/4325.svg )] ( https://scan.coverity.com/projects/checktestdata )
66
@@ -27,43 +27,42 @@ Haskell embedded domain-specific language.
2727
2828Requirements:
2929
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)
3232 * Libboost (http://www.boost.org/ )
3333 * 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.
3934
4035Command line for installing the build dependencies on Debian or
41- Ubuntu, when using the release branch :
36+ Ubuntu:
4237```
43- apt-get install make g++ libboost-dev libgmp-dev autotools-dev automake
38+ apt-get install make g++ libboost-dev libgmp-dev
4439```
4540For Redhat-like distributions try:
4641```
47- yum install make g++ boost-devel gmp-devel automake
42+ yum install make g++ boost-devel gmp-devel
4843```
4944
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
5149```
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
5553```
5654
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:
6156```
62- make check
57+ bazelisk test //:test
6358```
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 ` .
6766
6867For usage instructions run:
6968```
0 commit comments