summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-05-15 07:35:34 +0000
committermarcel <marcel@FreeBSD.org>2005-05-15 07:35:34 +0000
commit208bfa42344ca1fac402df8e9aa8ffb2ac228869 (patch)
treef1db1154b952d5844a59df4ff4aaa4d1782f6bef /tools/regression/usr.bin
parentbd9685053c859ebeb3b57e83a946081de6f179f1 (diff)
downloadFreeBSD-src-208bfa42344ca1fac402df8e9aa8ffb2ac228869.zip
FreeBSD-src-208bfa42344ca1fac402df8e9aa8ffb2ac228869.tar.gz
o -n option added.
o -x option added.
Diffstat (limited to 'tools/regression/usr.bin')
-rw-r--r--tools/regression/usr.bin/file2c/regress.1.out1
-rw-r--r--tools/regression/usr.bin/file2c/regress.2.out3
-rw-r--r--tools/regression/usr.bin/file2c/regress.3.out5
-rw-r--r--tools/regression/usr.bin/file2c/regress.4.out4
-rw-r--r--tools/regression/usr.bin/file2c/regress.5.out1
-rw-r--r--tools/regression/usr.bin/file2c/regress.6.out9
-rw-r--r--tools/regression/usr.bin/file2c/regress.7.out8
-rw-r--r--tools/regression/usr.bin/file2c/regress.8.out4
-rw-r--r--tools/regression/usr.bin/file2c/regress.9.out (renamed from tools/regression/usr.bin/file2c/regress.out)0
-rw-r--r--tools/regression/usr.bin/file2c/regress.sh14
10 files changed, 47 insertions, 2 deletions
diff --git a/tools/regression/usr.bin/file2c/regress.1.out b/tools/regression/usr.bin/file2c/regress.1.out
new file mode 100644
index 0000000..6b760fe
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.1.out
@@ -0,0 +1 @@
+175,212,59,239,227,234,192,22,186,113,52,204,195
diff --git a/tools/regression/usr.bin/file2c/regress.2.out b/tools/regression/usr.bin/file2c/regress.2.out
new file mode 100644
index 0000000..07acb21
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.2.out
@@ -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
diff --git a/tools/regression/usr.bin/file2c/regress.3.out b/tools/regression/usr.bin/file2c/regress.3.out
new file mode 100644
index 0000000..55502df
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.3.out
@@ -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
diff --git a/tools/regression/usr.bin/file2c/regress.4.out b/tools/regression/usr.bin/file2c/regress.4.out
new file mode 100644
index 0000000..dc21fd0
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.4.out
@@ -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
diff --git a/tools/regression/usr.bin/file2c/regress.5.out b/tools/regression/usr.bin/file2c/regress.5.out
new file mode 100644
index 0000000..8210ab5
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.5.out
@@ -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
diff --git a/tools/regression/usr.bin/file2c/regress.6.out b/tools/regression/usr.bin/file2c/regress.6.out
new file mode 100644
index 0000000..0f2bb74
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.6.out
@@ -0,0 +1,9 @@
+P
+175,
+212,
+59,
+239,
+227,
+234,
+192
+S
diff --git a/tools/regression/usr.bin/file2c/regress.7.out b/tools/regression/usr.bin/file2c/regress.7.out
new file mode 100644
index 0000000..f94ac55
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.7.out
@@ -0,0 +1,8 @@
+P S
+0xaf,0xd4,
+0x3b,0xef,
+0xe3,0xea,
+0xc0,0x16,
+0xba,0x71,
+0x34,0xcc,
+0xc3,0x51
diff --git a/tools/regression/usr.bin/file2c/regress.8.out b/tools/regression/usr.bin/file2c/regress.8.out
new file mode 100644
index 0000000..5f5ce9d
--- /dev/null
+++ b/tools/regression/usr.bin/file2c/regress.8.out
@@ -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
diff --git a/tools/regression/usr.bin/file2c/regress.out b/tools/regression/usr.bin/file2c/regress.9.out
index 91f5e00..91f5e00 100644
--- a/tools/regression/usr.bin/file2c/regress.out
+++ b/tools/regression/usr.bin/file2c/regress.9.out
diff --git a/tools/regression/usr.bin/file2c/regress.sh b/tools/regression/usr.bin/file2c/regress.sh
index e49adc2..4492e91 100644
--- a/tools/regression/usr.bin/file2c/regress.sh
+++ b/tools/regression/usr.bin/file2c/regress.sh
@@ -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()
OpenPOWER on IntegriCloud