exa/xtests/outputs/files_long_grid_3col.ansitxt
Benjamin Sago 61c5df7c11 Use Specsheet for the extended tests
This commit changes the way the extended test suite is run.

Previously, there was a folder full of outputs, and a script that ran exa repeatedly to check the outputs match. This script was hacked-together, with many problems:

• It stops at the first failure, so if one test fails, you have no idea how many actually failed.
• It also didn't actually show you the diff if one was different, it just checked it.
• It combined stdout and stderr, and didn't test the exit status of exa.
• All the output file names were just whatever I felt like calling the file at the time.
• There is no way to only run a few of the tests — you have to run the whole thing each time.
• There's no feel-good overall view where you see how many tests are passing.

I started writing Specsheet to solve this problem (amongst other problems), and now, three and a half years later, it's finally ready for prime time.

The tests are now defined as data rather than as a script. The outputs have a consistent naming convention (directory_flags.ansitxt), and they check stdout, stderr, and exit status separately. Specsheet also lets simple outputs (empty, non-empty, or one-line error messages) can be written inline rather than needing to be in files.

So even though this pretty much runs the same tests as the run.sh script did, the tests are now more organised, making it easy to see where tests are missing and functionality is not being tested.
2020-10-17 21:12:18 +01:00

14 lines
5.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.rw-r--r-- 1 cassowary  1 Jan 12:34 1_bytes .rw-r--r-- 5.1k cassowary  1 Jan 12:34 5_KiB .rw-r--r-- 9.4M cassowary  1 Jan 12:34 9_MiB
.rw-r--r-- 1.0k cassowary  1 Jan 12:34 1_KiB .rw-r--r-- 5.2M cassowary  1 Jan 12:34 5_MiB .rw-r--r-- 10 cassowary  1 Jan 12:34 10_bytes
.rw-r--r-- 1.0M cassowary  1 Jan 12:34 1_MiB .rw-r--r-- 6 cassowary  1 Jan 12:34 6_bytes .rw-r--r-- 10k cassowary  1 Jan 12:34 10_KiB
.rw-r--r-- 2 cassowary  1 Jan 12:34 2_bytes .rw-r--r-- 6.1k cassowary  1 Jan 12:34 6_KiB .rw-r--r-- 10M cassowary  1 Jan 12:34 10_MiB
.rw-r--r-- 2.0k cassowary  1 Jan 12:34 2_KiB .rw-r--r-- 6.3M cassowary  1 Jan 12:34 6_MiB .rw-r--r-- 11 cassowary  1 Jan 12:34 11_bytes
.rw-r--r-- 2.1M cassowary  1 Jan 12:34 2_MiB .rw-r--r-- 7 cassowary  1 Jan 12:34 7_bytes .rw-r--r-- 11k cassowary  1 Jan 12:34 11_KiB
.rw-r--r-- 3 cassowary  1 Jan 12:34 3_bytes .rw-r--r-- 7.2k cassowary  1 Jan 12:34 7_KiB .rw-r--r-- 11M cassowary  1 Jan 12:34 11_MiB
.rw-r--r-- 3.1k cassowary  1 Jan 12:34 3_KiB .rw-r--r-- 7.3M cassowary  1 Jan 12:34 7_MiB .rw-r--r-- 12 cassowary  1 Jan 12:34 12_bytes
.rw-r--r-- 3.1M cassowary  1 Jan 12:34 3_MiB .rw-r--r-- 8 cassowary  1 Jan 12:34 8_bytes .rw-r--r-- 12k cassowary  1 Jan 12:34 12_KiB
.rw-r--r-- 4 cassowary  1 Jan 12:34 4_bytes .rw-r--r-- 8.2k cassowary  1 Jan 12:34 8_KiB .rw-r--r-- 12M cassowary  1 Jan 12:34 12_MiB
.rw-r--r-- 4.1k cassowary  1 Jan 12:34 4_KiB .rw-r--r-- 8.4M cassowary  1 Jan 12:34 8_MiB .rw-r--r-- 13 cassowary  1 Jan 12:34 13_bytes
.rw-r--r-- 4.2M cassowary  1 Jan 12:34 4_MiB .rw-r--r-- 9 cassowary  1 Jan 12:34 9_bytes .rw-r--r-- 13k cassowary  1 Jan 12:34 13_KiB
.rw-r--r-- 5 cassowary  1 Jan 12:34 5_bytes .rw-r--r-- 9.2k cassowary  1 Jan 12:34 9_KiB .rw-r--r-- 13M cassowary  1 Jan 12:34 13_MiB