Skip to content
Snippets Groups Projects
  1. Mar 30, 2012
  2. Mar 28, 2012
  3. Mar 26, 2012
    • Iustin Pop's avatar
      Add trivial tests for gnt-* cli · 30f2802f
      Iustin Pop authored
      
      While testing some other stuff, I realised that the gnt-* commands
      could be broken (as in, the script fails with syntax errors), but make
      check doesn't detect it. Since we have shelltest, we can now add
      trivial tests for this case.
      
      One downside is that starting the scripts seems to be much slower
      than the htools binaries, so we can't add as many tests.
      
      The other downside is that shelltest is now required for all
      development work, but I think this is a small disadvantage compared to
      the increased testing possibilities.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      30f2802f
  4. Mar 22, 2012
    • Iustin Pop's avatar
      Convert manual shell tests to shelltestrunner · 53d4cdf1
      Iustin Pop authored
      
      This is more of a RFC… Basically most of the shell-based tests are
      converted from exec+grep to shelltestrunner.
      
      Things are not all fine and nice though:
      
      - we have dependencies between tests, as some generate some data files
        needed later; this is not nice, and we depend on serial execution in
        testrunner
      - we can still fail with no so nice messages in the offline-test
        script (when we generate most of the data)
      
      But overall, I think the tests are much nicer to
      define/read/debug:
      
      - each test is standalone, with the only dependency being an optional
        input data file; this is much better than a single monolithic shell
        script
      - in case of failures, the failure is clearly shown by shell test,
        both for exit code and stdout/stderr
      - shelltest can run in --debug mode, where the exact details are shown
        much better than the alternative of "set -x" for the shell script
      
      Comments welcome!
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      53d4cdf1
  5. Mar 15, 2012
  6. Mar 09, 2012
  7. Mar 07, 2012
  8. Feb 21, 2012
  9. Feb 20, 2012
  10. Feb 17, 2012
  11. Feb 15, 2012
  12. Feb 13, 2012
  13. Feb 01, 2012
  14. Jan 23, 2012
  15. Jan 19, 2012
  16. Jan 11, 2012
Loading