Skip to content

ts tests failing on clean repository with dash  #22

@davidag

Description

@davidag

In Debian testing/bullseye, clone the ts repository and run tests/suite as suggested in README:

~/projects/ts$ ./test/suite                                                                    
............F........................................F.....F.....F...

[./test/suite:201] test_ts_runs_cleanly_with_no_tests
  unequal output:
  3c3
  < 0 pass 0 fail 0 skip 0 s
  ---
  > 0 pass 0 fail 0 skip -1 s
F

[./test/suite:783] test_include
  unequal output:
  3c3
  < P [test/examples/include -> test/examples/include a:3] test_include_a
  ---
  > P [test/examples/include:3] test_include
  5,7c5
  < P [test/examples/include -> test/examples/include b:3] test_include_b
  <
  < P [test/examples/include -> test/examples/include b -> test/examples/include_c:3] test_include_c
  ---
  > P [test/examples/include:3] test_include
F

[./test/suite:816] test_undeclared_variable
  unequal output:
  2c2
  <   test/examples/undeclared_variable: line 8: var: unbound variable
  ---
  >   test/examples/undeclared_variable: 8: /home/david/projects/ts/bin/ts: var: parameter not set
F

[./test/suite:862] test_ts_readme_common_tests
  unequal output:
  1,4d0
  < P [./test_grep_abc -> ./common_tests:1] test_it_should_pick_lines_with_abc
  <
  < P [./test_sed_abc -> ./common_tests:1] test_it_should_pick_lines_with_abc
  <
F

65 pass 4 fail 0 skip -1 s

As already noted in the README, dash has some strange behaviors but I wonder if ts own tests should pass on it, being the default sh shell in Debian/Ubuntu distributions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions