1. 29 4月, 2017 6 次提交
    • B
      Start adding some special file testcases · eacbf555
      Benjamin Sago 提交于
      eacbf555
    • B
      Rename file-types tests to file-names-exts · bd5095d0
      Benjamin Sago 提交于
      This name more accurately reflects which code is being tested (things like .png and Makefile, rather than pipes and sockets), freeing up file-types for *actual* file types to be tested.
      bd5095d0
    • B
      Switch to an Ubuntu Vagrant image · 22be5b04
      Benjamin Sago 提交于
      The non-contrib Debian one doesn’t come with guest additions, meaning it used rsync instead of Virtualbox shared folders to sync files, meaning edits made in the VM didn’t get propogated back to the host, meaning I got very confused for a while.
      
      Thanks to the parent commit, this shouldn’t be an issue at all: the default user name, which is now “ubuntu” instead of “vagrant” is specified in a lot fewer places, making it much easier to change.
      22be5b04
    • B
      Protect xtests against different default users · ef18f9ca
      Benjamin Sago 提交于
      The Vagrant tests assumed that there’d be a user called “vagrant” that would run the tests and create the files by default. Files would be owned by vagrant:vagrant by default, and this worked, until it came time to change that username. The naïve method was a search-and-replace, but this caused problems when the new user’s name wasn’t exactly the same length as the previous one.
      
      So to fix this, we now have our own user, named after the first animal I thought of, that makes the files’ owners and groups independent of the default user of whichever VM image the xtests are running on.
      
      Another place where it was hard-coded was the home directory, which was “/home/vagrant”, where the awkward testcases live. That last one has been changed to just “/testcases”, which has no mention of the user in it.
      ef18f9ca
    • B
      Protect xtests against the passage of time · b885b34a
      Benjamin Sago 提交于
      There was a problem with the Vagrant tests where the year 2016 was hard-coded in as the modified date. This had to be done to make the --long tests use the correct date format, which varies depending on whether the timestamp is in the current year.
      
      Unfortunately, time progresses [citation needed], and what was once 2016 is now 2017, so the date format changed and the tests broke.
      
      Because the Vagrantfile is just a Ruby script, we can look up the current year at runtime and use that instead. There’s also a check added to the test runner that makes sure none of the files are more than 365 days old, because if any are, then it’s time to update the timestamps (or it’s the last day of a leap year)
      b885b34a
    • B
      Versions bump · 2ba4e992
      Benjamin Sago 提交于
      2ba4e992
  2. 27 4月, 2017 1 次提交
  3. 19 4月, 2017 1 次提交
  4. 11 4月, 2017 2 次提交
  5. 02 4月, 2017 6 次提交
  6. 01 4月, 2017 10 次提交
  7. 31 3月, 2017 1 次提交
    • S
      Update dependencies · 2b2e973c
      Steven Allen 提交于
      * Also remove bitflags as it isn't used.
      * Don't update ansi_term as ANSIString is no longer Clone.
      2b2e973c
  8. 27 3月, 2017 2 次提交
  9. 26 2月, 2017 1 次提交
  10. 31 10月, 2016 1 次提交
  11. 30 10月, 2016 9 次提交
    • B
      File size colours on a scale · 86065f83
      Ben S 提交于
      This adds an option (always on at the moment) to use a colour scale of green to yellow to orange for the file size field instead of always green. See #65.
      86065f83
    • B
      Prepare to make the size colour take an argument · 91e8ef5c
      Ben S 提交于
      This makes the Colours value pick a colour based on the size of the file, instead of necessarily having them all green. (They are all green for now, though.)
      91e8ef5c
    • B
      Remember to add ignore-glob to the help · 93f8ad27
      Ben S 提交于
      93f8ad27
    • B
      Basic glob ignoring · 95596297
      Ben S 提交于
      See #97 and recently #130 too.
      
      This allows the user to pass in options such as "--ignore '*.pyc'" to not list any files ending in '.pyc' in the output. It uses the Rust glob crate and currently does a simple split on pipe, without any escaping, so it’s not really *complete*, but is at least something.
      95596297
    • B
      Make the views non-Copy · a6712994
      Ben S 提交于
      This has to be done for when ignore patterns get introduced and have to be stored in a Vec.
      a6712994
    • B
      Fix integration test by making it time-independent · bd2a76b4
      Ben S 提交于
      bd2a76b4
    • B
      Properly handle errors when following a symlink · 74358c18
      Ben S 提交于
      Fixes #123. The code assumes that every File that has its link_target() method called would first have been checked to make sure it’s actually a link first. Unfortunately it also assumed that the only thing that can go wrong while following a link is if the file wasn’t a link, meaning it crashes when given a link it doesn’t have permission to follow.
      
      This makes the file_target() method able to return either a file or path for displaying, as before, but also an IO error for when things go wrong.
      74358c18
    • B
      Add some symlink testcases · ba366fc8
      Ben S 提交于
      ba366fc8
    • B
      This lint flag started to cause all kinds of fuss · dcc17b1d
      Ben S 提交于
      dcc17b1d