Commit Graph

14 Commits

Author SHA1 Message Date
Andrew Noyes 121ed4acf9 Trace the cmake SEED
This will be included in the repro instructions, so we need to trace it
to keep track of it.
2019-03-08 15:03:56 -08:00
Andrew Noyes 1292f5c59a Add TEST_LOG_FORMAT to cmake 2019-02-21 14:36:01 -08:00
mpilman a6627fa5ca be less clever for seed generation and seed>0
simulator doesn't accept a seed that is 0
2019-02-19 22:06:45 -08:00
mpilman e8af6512ec Generate distinct pseudo-random number for each test
Fixes #1161
2019-02-19 22:06:45 -08:00
mpilman a2e4dc042f Implement automatic package verification 2019-02-19 11:11:43 -08:00
Alex Miller 2d7f5f505c Pass a bytestring to xml.sax.parseString
This fixes the ctest prb.

CI was broken because TestRunner errored at:

    Traceback (most recent call last):
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 373, in <module>
        res = run_simulation_test(basedir, args)
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 313, in run_simulation_test
        options.log_format, return_codes)
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 261, in process_traces
        parser.processTraces()
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 112, in processTraces
        obj = self.processLine(line, linenr)
      File "/foundationdb/tests/TestRunner/TestRunner.py", line 222, in processLine
        xml.sax.parseString(line, handler, errorHandler=errorHandler)
      File "/usr/lib/python3.4/xml/sax/__init__.py", line 45, in parseString
        inpsrc.setByteStream(BytesIO(string))
    TypeError: 'str' does not support the buffer interface

Which means you can't parse a string to parseString.  This was fixed by
3.7, but our CI runs 3.4, so we need to .encode() `line` before passing
it, so that it ends up as a `bytes`.
2019-02-11 17:59:52 -08:00
mpilman 58964af7e1 ctest improvements - #1058
- A set of CMake variables controls whether to keep
  the simfdb directory and the traces and whether we
  want to aggregate the traces into a single file
- Test labels now contain the directory they are in
  so that one can now run `ctest -R fast/`
- A different binary can be used for restart tests. CMake
  will automatically look for an installed fdb and use that
  by default. If none is found, it will use the built one
  but it will also print a warning
- CMake will throw an error if there are any text files in
  the tests directory that are not associated with a test.
- Moved testing from fdbserver/CMakeLists.txt to
  tests/CMakeLists.txt
- Moved fdb testing functions to its own cmake module
2019-01-22 14:34:51 -08:00
Alex Miller 6d1f4bda75 Move traces.xml into the testdir so it doesn't grow infinitely. 2019-01-14 20:58:19 -08:00
Alex Miller c0bf8cd7e7 Remove the test result directory if the test passed. 2019-01-14 20:31:02 -08:00
Alex Miller 248ae311bf Type=TestFailure events shouldn't fail tests.
This sounds kind of broken, but is needed for now.
2019-01-14 19:16:03 -08:00
Alex Miller 23697f06f7 Fix broken method call. 2019-01-14 19:14:25 -08:00
mpilman 414fb0b6c8 made TestRunner work with XML traces 2019-01-14 19:14:25 -08:00
Markus Pilman 5ba5499b69 fail tests properly 2019-01-14 19:14:25 -08:00
Markus Pilman b17d2234c9 added missing files 2019-01-14 19:14:25 -08:00