27 Commits

Author SHA1 Message Date
Rob Landley
2045c95214 Kana provided the file, and clarified the ==4 check excludes fat16. 2024-11-08 16:12:18 -06:00
Rob Landley
d50372cad3 Add obsolete sparse format test file, with test.
The trick is legacy tar ignores --sparse-format unless you also say --posix.
2024-08-16 23:51:51 -05:00
Rob Landley
efb0b3921f Check in the file the new tar test needs. 2024-07-12 00:18:41 -05:00
Eric Roshan-Eisner
18595cad2e vi: simplify tests
I wrapped the repeated test infrastructure in a `vitest` function and inlined the dozens of tiny input files.

I shortened some of the test inputs to be clearer and discovered a couple bugs, left for now as commented out tests:
* `b` movement is off by one.
* Deleting/moving the last part of the last line of the file is off by one, usually leaving the final character in place.
2024-06-02 04:30:27 -05:00
Oliver Webb
481ec7b80e bc: remove a ton of auto-generated test cases that are useless 2024-03-01 18:25:14 -06:00
Christopher Ferris
b6d1d9068c readelf: Fix the section flags handling.
The array of section flags was missing the G flag, so any flags
after it were displayed incorrectly. And, of course, the G flag
was not displayed at all.

Added a new elf file with a section that include the T and C flags
and updated readelf.test to run this test. This test fails on the
old code and passes with the fix.
2023-11-30 13:08:04 -06:00
Rob Landley
1e6844737e Add blkid iso test file and tweak iso output fields.
Note: TEST_HOST outputs iso fields in unique order, which we don't.
But there's incoming version skew with new versions there anyway...
2023-02-13 03:29:11 -06:00
Rob Landley
842b0d24e3 Cleanup pass on file.c, add more tests. 2021-09-02 22:22:31 -05:00
Rob Landley
ba1a79fa0e Add tar test for long filenames. 2020-06-08 08:41:26 -05:00
Joeky
c6c7fac0ad file: add 7z test file 2020-03-29 20:46:09 -05:00
Jarno Mäkipää
df19a448f6 vi: fix dw_last test, add more tests
Fixed delete last word test. (script should not have \n since it is
cursor down in vim)

Added tests to check inserts
Added tests to check yank and push
2020-02-02 09:32:01 -06:00
Jarno Mäkipää
a459a19c9c vi: Add tests
Test file integrity after load, move, delete and save+exit. Drawing
of buffer is not tested yet.

Added -s script option, accept file that is run as startup script of
commands. File is parsed byte at time and handled as you had typed it.
If EOF has been reached without editor close command, editing is
continued normally using keyboard. This functionality is in vim and
neovim, but not in POSIX vi standard. nvi (vi used in some macs) has
-s with different meaning...

Some simple tests added, dw last line test fails, so test is disabled.
2020-01-25 20:49:02 -06:00
Gavin Howard
97057b2c29 bc: remove a power test that is now an error 2019-06-21 21:12:37 -05:00
Elliott Hughes
81220b8090 file: improve test coverage.
Use a real .class file and add tests for the other formats that file(1)
recognizes and we already have sample input in tests/files/.
2019-04-26 15:15:49 -05:00
Elliott Hughes
3e8fdc228d file: add test ELF binaries.
We keep regressing on this, and the ELF stuff is quite complicated, so
even though checking in binaries isn't my first choice, this seems like
a good use of 20KiB...
2019-04-26 00:40:51 -05:00
Rob Landley
0407a47561 Add decompressed version. 2019-04-04 17:06:21 -05:00
Elliott Hughes
4ab5f9bd06 unzip tests.
I'm switching to a new laptop, and found this from 2017-07. I think
these are the tests used for the Android libziparchive-based unzip.
They pass on the host.
2019-02-04 06:02:45 -06:00
Gavin Howard
1ee1c71e9d Update bc for 1.1 release 2018-11-17 09:45:53 -06:00
Rob Landley
e579e69656 Add a test case raised on the list. 2018-08-28 12:24:21 -05:00
Gavin Howard
151e3f7823 Add bc (and its tests) to pending 2018-08-08 19:56:35 -05:00
Elliott Hughes
83b3531ec2 Add bzip2 support to tar.
Also trivial cleanup of pipe -> xpipe.

Bug: http://b/38215123
2017-05-19 13:11:12 -05:00
Rob Landley
2d06767f56 Forgot to check in one of the files for bzcat.test 2017-04-25 02:21:39 -05:00
Rob Landley
1ffa7f45eb Fix bzcat.test (as noted by Andy Chu), wean tests off $TOPDIR and supply $FILES
instead, move tests/blkid into tests/files/blkid.
2016-03-23 03:44:51 -05:00
Rob Landley
5ad93f32da Fix bzcat integer overflow reported by John Regehr. 2016-03-03 11:07:59 -06:00
Rob Landley
b75c7dfa88 Testfile with the 3 different types of "not utf8 output" escaped chars in it. 2016-02-17 17:35:42 -06:00
Rob Landley
a90fd0a191 More utf8 test files. 2016-01-15 16:09:10 -06:00
Rob Landley
8dfbf2efc8 Some utf8/unicode stress test files. 2016-01-05 18:17:02 -06:00