Skip to content
Snippets Groups Projects
  1. Aug 17, 2021
  2. Apr 27, 2021
    • HustonMmmavr's avatar
      test: fix regex in box-py/args.test.py · f44663ed
      HustonMmmavr authored
      Regex for validating version was expecting a single
      character (digit) for version `patch`, but it's not correct.
      This patch fixes test behaviour for tarantool 1.10.10
      
      Close #6039
      f44663ed
  3. Dec 25, 2020
  4. May 20, 2020
  5. Feb 06, 2019
    • Serge Petrenko's avatar
      Fix tarantool -e "os.exit()" hang · 3a851430
      Serge Petrenko authored
      After the patch which made os.exit() execute on_shutdown triggers
      (see commit 6dc4c8d7) we relied
      on on_shutdown triggers to break the ev_loop and exit tarantool.
      Hovewer, there is an auxiliary event loop which is run in
      tarantool_lua_run_script() to reschedule the fiber executing chunks
      of code passed by -e option and executing interactive mode.
      This event loop is started only to execute interactive mode, and
      doesn't exist during execution of -e chunks. Make sure we don't start
      it if os.exit() was already executed in one of the chunks.
      
      Closes #3966
      3a851430
  6. Mar 01, 2018
  7. Sep 14, 2017
  8. Aug 24, 2017
    • Konstantin Osipov's avatar
      test: fix two failing tests · aad99e13
      Konstantin Osipov authored
      replication/cluster.test.py would fail at server exit, because
      at_exit() handler tries to destroy a cbus while its mutex is locked.
      
      args.test.py would fail when run with 'make test'
      aad99e13
  9. Aug 22, 2017
  10. Nov 13, 2015
  11. Nov 12, 2015
  12. Mar 26, 2014
    • Konstantin Osipov's avatar
      [gh-97] Make #! mandatory. · 29ada348
      Konstantin Osipov authored
      Remove command line options:
      
      --cfg-get
      --check-config
      --config
      --init-storage
      
      - these are gone forever, in preparation for config-less start.
      
      --background --  move to tarantool.cfg for now, in the future
      it will be part of Lua config.
      
      Make #! mandatory - if the server is started without #!, it's
      only possible to query its version or get startup help (--version
      and --help are the only remaining supported options).
      
      When #! is present, do not parse options, pass them wholly to the
      script at hand.
      
      Add helper scripts to test suites, to start/stop the server.
      For now, the scripts are empty, in the future they will be
      merged with a respective config file.
      29ada348
  13. Feb 07, 2014
    • Eugine Blikh's avatar
      Create new version of tarantool_python.py with new TarantoolServer: · e83cc72f
      Eugine Blikh authored
      Important changes:
        * lua_libs are now copy from TarantoolServer (if you need, e.g.,
          to copy .lua or .xlog file when you starts server you may
          simply add it to server.lua_libs variable, and in the end
          simply delete it)
        * server now stops on random ports, for your convinience, when you
          `--start-and-exit` test-system - it shows on what port it starts
        * when you want to create a server, that is replica of some other
          server, you must do something like `replica.rpl_master = master`,
          then all will be ok. if hot_standby, then
          `hot_standby.hot_master = master`. when you stop working with it:
          `replica.rpl_master = None`..
        * new option: server.shebang is used for running scripts, no need
          to spoil server.binary now.
        * for config, init_lua and other options now there are decoreators.
          you may use relative paths now.
      
      Other:
        * Some tests were rewritten for new TarantoolServer
        * Add `environment variables` for lua tests, possible to send it to
          server.
        * add rpl_master and hot_master for server directives in lua_tests
          (better idea, it seems, to move all `replication/` tests to python)
      
      Some issues:
        * --valgrind:
          1. `chase_cuOff: no entry for 0x07422`... It garbages output.
          2. If you redeploy server then valgrind log is overwritten.
             Possible solutions:
               a) `valgrind_disable` this tests.
               b) Append logfile with temporary logfiles.
          3. Some memory leaks: need to be fixed.
        * --gdb: some minor code problems, all works, but tests, that
          crashes server won't work (new system of knowing that server
          is up)
        * Need of minor(!!) cleanup
      e83cc72f
  14. Nov 19, 2013
  15. Jul 23, 2013
  16. Jul 11, 2013
  17. Jan 10, 2013
    • Konstantin Osipov's avatar
      Refactor our CMake files. Patch provided by Roman Tsisyk. · 6dd44f6d
      Konstantin Osipov authored
      Move third_party library compilation to the top level (less
      directory traversal).
      Provide an option for using system LibEIO/libobjc.
      
      Enforce a naming convention for cmake/ scripts
      (Find* and Build*).
      
      Move ev and eio wrappers to third-party (todo: delete
      them completely).
      
      There is one (known) problem with this patch:
      tarantool --version now prints incorrect compile flags.
      To be fixed in a separate patch.
      6dd44f6d
  18. Jun 27, 2012
  19. Jun 26, 2012
  20. Jun 15, 2012
  21. Feb 13, 2012
  22. Dec 23, 2011
  23. Oct 13, 2011
    • Konstantin Osipov's avatar
      A fix and a test case for Bug#750658 · 58c6dd36
      Konstantin Osipov authored
      A fix and a test case for
      https://bugs.launchpad.net/tarantool/+bug/750658
      
      --background neither closes nor redirects stdin/stdout/stderr
      
      --background option didn't work properly, since stdin/stdout/
      stderr streams were left open and pointing to a terminal.
      
      This lead to a hang when tarantool was started from a
      shell script or over ssh.
      
      If --background option is given, we need to fork,
      try to create a pid file, close stdin/stdout/stderr
      and then initialize the logging
      subsystem.
      58c6dd36
  24. May 14, 2011
  25. May 13, 2011
  26. Apr 03, 2011
  27. Mar 18, 2011
    • Roman Tokarev's avatar
      Test-runner: · 7bd33e64
      Roman Tokarev authored
      	 generalize Server class
      	 implement TarantoolServer class
      	 implement TarantoolSilverboxServer class
      	 implement TarantoolFeederServer class
      	 a lot changes in interfaces and bugfixes
      7bd33e64
  28. Feb 28, 2011
    • Konstantin Osipov's avatar
      A fix and a test case for Bug#726778 · e0e9eb0a
      Konstantin Osipov authored
      A fix and a test case for Bug#726778 "Gopt broke wal_dir and
      snap_dir: they are no longer relative to work_dir".
      
      Ensure that snap_dir and xlog_dir can be relative to
      work_dir.
      Ensure that chdir happens before we handle --init-storage.
      Do not mix declarations and definitions for recovery_state.
      Add a test case to args.test.
      e0e9eb0a
  29. Feb 24, 2011
    • Konstantin Osipov's avatar
      Fix a build failure in buildbot. · 0df9a413
      Konstantin Osipov authored
      Correct a regexp pattern in test suppression filter
      to work in a more modern version of python.
      In the new python \S matches '"', and the test
      output is different compared to the recorded one.
      0df9a413
  30. Feb 22, 2011
    • Konstantin Osipov's avatar
      CPack: initial commit. · 1cbe4ca8
      Konstantin Osipov authored
      Add the simplest CPack configuration for
      'make package' and 'make package_source'
      targets.
      Add an empty snapshot to revision control
      to use in 'make package' and thus
      spare the user from the need to do
      --init-storage.
      Modify args.test to accept a bare
      (no git version) version number, and thus
      ensure the user from a yet another call before
      he/she can start work/play around.
      1cbe4ca8
  31. Dec 22, 2010
  32. Dec 17, 2010
    • Konstantin Osipov's avatar
      Test-runner: more coverage. · df298cad
      Konstantin Osipov authored
      Add coverage for (almost) all admin options.
      @todo: test 'exit'
      
      Add coverage for more test options.
      Make test results more host-independent.
      
      Extend lib/test_suite.py: if we filtered out
      entire line from the result, don't write newline
      to the result file.
      df298cad
  33. Dec 16, 2010
    • Konstantin Osipov's avatar
      Test-runner: tests in Python dialect · 87bd27a3
      Konstantin Osipov authored
      Split results from .test files into
      .result files. Make each individual test a
      small python program, which is executed from the context
      of the main interpreter. This allows for easy access to
      interpreter environment, such as the currently running
      server.
      
      Implement a pre-processor for .test files that replaces
      
      exec admin <expr>
      and
      exec sql <expr>
      
      with python syntax that actually sends string <expr>
      to tarantool server connection (lib.admin.Connection), and
      prints output to stdout (i.e. .reject file).
      
      Implement stdout filters, for use in .test files:
      this enables testing of statement that produce
      run-dependent or host-dependent results.
      
      Remove 'cmd' suite as unnecessary, args.test is moved
      to box.suite. @todo: make results of the test host-independent.
      
      Fix a bug in lib.admin.Connection (administrative connection)
      when it would block and indefinitely wait for response for
      some administrative commands.
      87bd27a3
Loading