Commit Graph

11 Commits

Author SHA1 Message Date
Matt Harbison
9741c43e48 tests: replace uses of 'seq' with portable 'seq.py' 2015-03-17 21:47:47 -04:00
Matt Mackall
81a40bb2be test-tools: portability tweak 2015-01-25 20:13:54 -06:00
Matt Harbison
29a41ca7e1 test-tools: update for platforms without symlink support after 8b3d80bb3890
The change was triggered by removing the 'baz' hardlink.
2015-01-18 16:38:56 -05:00
Matt Mackall
062f7143b4 test-tools: another vfat fix 2015-01-17 17:59:30 -08:00
Matt Mackall
6a5f375092 test-tools: check for unix permissions for hardlinking 2015-01-17 15:54:03 -08:00
Matt Mackall
a465711f55 tests: more fixes for f 2015-01-17 15:28:56 -08:00
Matt Mackall
733026a365 tests: teach f not to report symlink mode bits
They're not meaningful or portable
2015-01-17 13:53:56 -08:00
Matt Mackall
f958134a57 tests: teach f not to report directory size
It's not meaningful or portable
2015-01-17 13:53:16 -08:00
Matt Mackall
43dd91c6b3 test-tools: fix portability issues 2015-01-17 13:38:17 -08:00
Matt Harbison
07fa08825f tests: conditionalize test-tools.t for Windows support
I still get the following diff on Windows 7 with NTFS.  I'm not sure if it is
expected and we should wildcard the link count, or if something needs to be
fixed.

  @@ -58,7 +58,7 @@

     $ ln bar baz
     $ f bar -n baz -l --hexdump -t --sha1 --lines=9 -B 20
  -  bar: file, links=2, newer than baz, sha1=612ca68d0305c821750a
  +  bar: file, links=0, newer than baz, sha1=612ca68d0305c821750a\r (esc)
     0000: 31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a |1.2.3.4.5.6.7.8.|
     0010: 39 0a                                           |9.|
2015-01-14 22:40:39 -05:00
Mads Kiilerich
de81c27e94 tests: add 'f' tool for cross platform file operations in the tests
This tool is like the collection of tools found in a unix environment but are
cross platform and stable and suitable for our needs in the test suite.

The main reason it is "needed" now is for hexdump of revision branch cache to
keep an eye on how it changes and make sure the format is stable.

It is a very generic tool that can end up being used a lot in tests, so I gave
it very generic name.
2015-01-14 01:15:26 +01:00