o -n option added.
o -x option added.
This commit is contained in:
parent
77a77c66d1
commit
e108c3d726
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146234
1
tools/regression/usr.bin/file2c/regress.1.out
Normal file
1
tools/regression/usr.bin/file2c/regress.1.out
Normal file
@ -0,0 +1 @@
|
||||
175,212,59,239,227,234,192,22,186,113,52,204,195
|
3
tools/regression/usr.bin/file2c/regress.2.out
Normal file
3
tools/regression/usr.bin/file2c/regress.2.out
Normal file
@ -0,0 +1,3 @@
|
||||
PREFIX
|
||||
175,212,59,239,227,234,192,22,186,113,52,204,195,81,240,223,173,115,109,
|
||||
102,175,183,24,185,173,137
|
5
tools/regression/usr.bin/file2c/regress.3.out
Normal file
5
tools/regression/usr.bin/file2c/regress.3.out
Normal file
@ -0,0 +1,5 @@
|
||||
PREFIX
|
||||
175,212,59,239,227,234,192,22,186,113,52,204,195,81,240,223,173,115,109,
|
||||
102,175,183,24,185,173,137,107,116,77,142,217,172,196,45,62,228,41,174,
|
||||
134
|
||||
SUFFIX
|
4
tools/regression/usr.bin/file2c/regress.4.out
Normal file
4
tools/regression/usr.bin/file2c/regress.4.out
Normal file
@ -0,0 +1,4 @@
|
||||
0xaf,0xd4,0x3b,0xef,0xe3,0xea,0xc0,0x16,0xba,0x71,0x34,0xcc,0xc3,0x51,0xf0,
|
||||
0xdf,0xad,0x73,0x6d,0x66,0xaf,0xb7,0x18,0xb9,0xad,0x89,0x6b,0x74,0x4d,0x8e,
|
||||
0xd9,0xac,0xc4,0x2d,0x3e,0xe4,0x29,0xae,0x86,0x36,0xbb,0xe7,0x35,0x7c,0x92,
|
||||
0x88,0xcb,0x34,0x5b,0xae,0xd4,0x73
|
1
tools/regression/usr.bin/file2c/regress.5.out
Normal file
1
tools/regression/usr.bin/file2c/regress.5.out
Normal file
@ -0,0 +1 @@
|
||||
175,212,59,239,227,234,192,22,186,113,52,204,195,81,240,223,173,115,109,102,175,183,24,185,173,137,107,116,77,142,217,172,196,45,62,228,41,174,134,54,187,231,53,124,146,136,203,52,91,174,212,115,254,86,214,31,196,19,159,213,217,170,247,32,69
|
9
tools/regression/usr.bin/file2c/regress.6.out
Normal file
9
tools/regression/usr.bin/file2c/regress.6.out
Normal file
@ -0,0 +1,9 @@
|
||||
P
|
||||
175,
|
||||
212,
|
||||
59,
|
||||
239,
|
||||
227,
|
||||
234,
|
||||
192
|
||||
S
|
8
tools/regression/usr.bin/file2c/regress.7.out
Normal file
8
tools/regression/usr.bin/file2c/regress.7.out
Normal file
@ -0,0 +1,8 @@
|
||||
P S
|
||||
0xaf,0xd4,
|
||||
0x3b,0xef,
|
||||
0xe3,0xea,
|
||||
0xc0,0x16,
|
||||
0xba,0x71,
|
||||
0x34,0xcc,
|
||||
0xc3,0x51
|
4
tools/regression/usr.bin/file2c/regress.8.out
Normal file
4
tools/regression/usr.bin/file2c/regress.8.out
Normal file
@ -0,0 +1,4 @@
|
||||
P
|
||||
175,212,59,239,227,234,192,22,186,113,52,204,195,81,240,223,
|
||||
173,115,109,102,175
|
||||
-x
|
@ -1,9 +1,19 @@
|
||||
# $FreeBSD$
|
||||
|
||||
echo 1..1
|
||||
echo 1..9
|
||||
|
||||
REGRESSION_START($1)
|
||||
|
||||
REGRESSION_TEST_ONE(`file2c "const char data[] = {" ", 0};" < regress.in')
|
||||
REGRESSION_TEST(`1', `head -c 13 regress.in | file2c')
|
||||
REGRESSION_TEST(`2', `head -c 26 regress.in | file2c PREFIX')
|
||||
REGRESSION_TEST(`3', `head -c 39 regress.in | file2c PREFIX SUFFIX')
|
||||
REGRESSION_TEST(`4', `head -c 52 regress.in | file2c -x')
|
||||
REGRESSION_TEST(`5', `head -c 65 regress.in | file2c -n -1')
|
||||
|
||||
REGRESSION_TEST(`6', `head -c 7 regress.in | file2c -n 1 P S')
|
||||
REGRESSION_TEST(`7', `head -c 14 regress.in | file2c -n 2 -x "P S"')
|
||||
REGRESSION_TEST(`8', `head -c 21 regress.in | file2c -n 16 P -x S')
|
||||
|
||||
REGRESSION_TEST(`9', `file2c "const char data[] = {" ", 0};" < regress.in')
|
||||
|
||||
REGRESSION_END()
|
||||
|
Loading…
Reference in New Issue
Block a user