diff options
39 files changed, 79 insertions, 0 deletions
diff --git a/regress/usr.bin/file/Makefile b/regress/usr.bin/file/Makefile new file mode 100644 index 00000000000..a28f004b6f4 --- /dev/null +++ b/regress/usr.bin/file/Makefile @@ -0,0 +1,43 @@ +# $OpenBSD: Makefile,v 1.1 2006/06/02 01:07:44 ian Exp $ + +FILE=file + +# temporarily excluded - t23 +REGRESS_TARGETS=t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t15 t17 t18 t20 t21 t22 t30 + +# .in: input file +# .out: desired result + +# t0 empty +# t1 archive +# t2 ascii archive +# t3 ranlib +# t4 awk +# t5 awk +# t6 csh +# t7 awk +# t8 interpreter +# t9 java class +# t10 java serialized data +# t11 mach-o binary +# t15 tar archive +# t17 C program +# t20 HTML +# t21 SGML +# t22 XML +# t23 raw xml + +all: ${REGRESS_TARGET} + +.SUFFIXES: .in + +.in: + @echo ${*} + @${FILE} ${.CURDIR}/${*}.in | \ + sed -e "s@${.CURDIR}/@@" | \ + diff - ${.CURDIR}/${*}.out || \ + (echo "XXX ${*} failed" && false) + +clean: + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/file/t0.in b/regress/usr.bin/file/t0.in new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/regress/usr.bin/file/t0.in diff --git a/regress/usr.bin/file/t0.out b/regress/usr.bin/file/t0.out new file mode 100644 index 00000000000..bdf3e234ccf --- /dev/null +++ b/regress/usr.bin/file/t0.out @@ -0,0 +1 @@ +t0.in: empty diff --git a/regress/usr.bin/file/t1.in b/regress/usr.bin/file/t1.in new file mode 100644 index 00000000000..3987a87bfb3 --- /dev/null +++ b/regress/usr.bin/file/t1.in @@ -0,0 +1 @@ +<ar> fake fake fake diff --git a/regress/usr.bin/file/t1.out b/regress/usr.bin/file/t1.out new file mode 100644 index 00000000000..3dc2b99b11f --- /dev/null +++ b/regress/usr.bin/file/t1.out @@ -0,0 +1 @@ +t1.in: archive diff --git a/regress/usr.bin/file/t10.in b/regress/usr.bin/file/t10.in Binary files differnew file mode 100644 index 00000000000..9fa68329333 --- /dev/null +++ b/regress/usr.bin/file/t10.in diff --git a/regress/usr.bin/file/t10.out b/regress/usr.bin/file/t10.out new file mode 100644 index 00000000000..1321e09a76f --- /dev/null +++ b/regress/usr.bin/file/t10.out @@ -0,0 +1 @@ +t10.in: Java serialization data, version 5 diff --git a/regress/usr.bin/file/t15.in b/regress/usr.bin/file/t15.in Binary files differnew file mode 100644 index 00000000000..d0e677bdd58 --- /dev/null +++ b/regress/usr.bin/file/t15.in diff --git a/regress/usr.bin/file/t15.out b/regress/usr.bin/file/t15.out new file mode 100644 index 00000000000..6258a8b5baa --- /dev/null +++ b/regress/usr.bin/file/t15.out @@ -0,0 +1 @@ +t15.in: tar archive diff --git a/regress/usr.bin/file/t17.in b/regress/usr.bin/file/t17.in new file mode 100644 index 00000000000..92cdfcbeb89 --- /dev/null +++ b/regress/usr.bin/file/t17.in @@ -0,0 +1,5 @@ +#include <stdio.h> + +int main() { + printf("Hello"); +} diff --git a/regress/usr.bin/file/t17.out b/regress/usr.bin/file/t17.out new file mode 100644 index 00000000000..151c1b7e4f5 --- /dev/null +++ b/regress/usr.bin/file/t17.out @@ -0,0 +1 @@ +t17.in: ASCII C program text diff --git a/regress/usr.bin/file/t18.in b/regress/usr.bin/file/t18.in Binary files differnew file mode 100644 index 00000000000..76af8b6699e --- /dev/null +++ b/regress/usr.bin/file/t18.in diff --git a/regress/usr.bin/file/t18.out b/regress/usr.bin/file/t18.out new file mode 100644 index 00000000000..dab55b903b9 --- /dev/null +++ b/regress/usr.bin/file/t18.out @@ -0,0 +1 @@ +t18.in: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for OpenBSD, dynamically linked (uses shared libs), for OpenBSD, not stripped diff --git a/regress/usr.bin/file/t2.in b/regress/usr.bin/file/t2.in new file mode 100644 index 00000000000..db9726a1870 --- /dev/null +++ b/regress/usr.bin/file/t2.in @@ -0,0 +1 @@ +070707 fake fake fake diff --git a/regress/usr.bin/file/t2.out b/regress/usr.bin/file/t2.out new file mode 100644 index 00000000000..819f88ccd28 --- /dev/null +++ b/regress/usr.bin/file/t2.out @@ -0,0 +1 @@ +t2.in: ASCII cpio archive (pre-SVR4 or odc) diff --git a/regress/usr.bin/file/t20.in b/regress/usr.bin/file/t20.in new file mode 100644 index 00000000000..163d2f09d5a --- /dev/null +++ b/regress/usr.bin/file/t20.in @@ -0,0 +1 @@ +<!DOCTYPE HTML> diff --git a/regress/usr.bin/file/t20.out b/regress/usr.bin/file/t20.out new file mode 100644 index 00000000000..d59e055bce8 --- /dev/null +++ b/regress/usr.bin/file/t20.out @@ -0,0 +1 @@ +t20.in: HTML document text diff --git a/regress/usr.bin/file/t21.in b/regress/usr.bin/file/t21.in new file mode 100644 index 00000000000..c50eddd41fa --- /dev/null +++ b/regress/usr.bin/file/t21.in @@ -0,0 +1 @@ +<!doctype html> diff --git a/regress/usr.bin/file/t21.out b/regress/usr.bin/file/t21.out new file mode 100644 index 00000000000..c9a2b765df6 --- /dev/null +++ b/regress/usr.bin/file/t21.out @@ -0,0 +1 @@ +t21.in: exported SGML document text diff --git a/regress/usr.bin/file/t22.in b/regress/usr.bin/file/t22.in new file mode 100644 index 00000000000..2b5d411677a --- /dev/null +++ b/regress/usr.bin/file/t22.in @@ -0,0 +1 @@ +<?xml version="1.0"?> diff --git a/regress/usr.bin/file/t22.out b/regress/usr.bin/file/t22.out new file mode 100644 index 00000000000..c628d59dfd5 --- /dev/null +++ b/regress/usr.bin/file/t22.out @@ -0,0 +1 @@ +t22.in: XML 1.0 document text diff --git a/regress/usr.bin/file/t23.in b/regress/usr.bin/file/t23.in new file mode 100644 index 00000000000..bec851202ed --- /dev/null +++ b/regress/usr.bin/file/t23.in @@ -0,0 +1 @@ +<mytagwhichismyown value="infinite"> diff --git a/regress/usr.bin/file/t23.out b/regress/usr.bin/file/t23.out new file mode 100644 index 00000000000..dc15bfcee3a --- /dev/null +++ b/regress/usr.bin/file/t23.out @@ -0,0 +1 @@ +t23.in: SGML/XML/HTML document text with no type declaration diff --git a/regress/usr.bin/file/t3.in b/regress/usr.bin/file/t3.in new file mode 100644 index 00000000000..6e90894a04b --- /dev/null +++ b/regress/usr.bin/file/t3.in @@ -0,0 +1 @@ +!<arch>.__.SYMDEF fake fake fake diff --git a/regress/usr.bin/file/t3.out b/regress/usr.bin/file/t3.out new file mode 100644 index 00000000000..87c53e45a49 --- /dev/null +++ b/regress/usr.bin/file/t3.out @@ -0,0 +1 @@ +t3.in: current ar archive random library diff --git a/regress/usr.bin/file/t30.in b/regress/usr.bin/file/t30.in Binary files differnew file mode 100644 index 00000000000..c6048085abf --- /dev/null +++ b/regress/usr.bin/file/t30.in diff --git a/regress/usr.bin/file/t30.out b/regress/usr.bin/file/t30.out new file mode 100644 index 00000000000..11cdac92965 --- /dev/null +++ b/regress/usr.bin/file/t30.out @@ -0,0 +1 @@ +t30.in: OpenBSD big-endian object file diff --git a/regress/usr.bin/file/t4.in b/regress/usr.bin/file/t4.in new file mode 100644 index 00000000000..1d5721ce5ad --- /dev/null +++ b/regress/usr.bin/file/t4.in @@ -0,0 +1 @@ +#! /bin/awk diff --git a/regress/usr.bin/file/t4.out b/regress/usr.bin/file/t4.out new file mode 100644 index 00000000000..913048b80a6 --- /dev/null +++ b/regress/usr.bin/file/t4.out @@ -0,0 +1 @@ +t4.in: awk script text executable diff --git a/regress/usr.bin/file/t5.in b/regress/usr.bin/file/t5.in new file mode 100644 index 00000000000..fa4a51f8e1f --- /dev/null +++ b/regress/usr.bin/file/t5.in @@ -0,0 +1 @@ +#!/bin/awk diff --git a/regress/usr.bin/file/t5.out b/regress/usr.bin/file/t5.out new file mode 100644 index 00000000000..3aed601fe43 --- /dev/null +++ b/regress/usr.bin/file/t5.out @@ -0,0 +1 @@ +t5.in: awk script text executable diff --git a/regress/usr.bin/file/t6.in b/regress/usr.bin/file/t6.in new file mode 100644 index 00000000000..e6aa9664bdd --- /dev/null +++ b/regress/usr.bin/file/t6.in @@ -0,0 +1 @@ +#! /bin/csh diff --git a/regress/usr.bin/file/t6.out b/regress/usr.bin/file/t6.out new file mode 100644 index 00000000000..f5dd85f73df --- /dev/null +++ b/regress/usr.bin/file/t6.out @@ -0,0 +1 @@ +t6.in: C shell script text executable diff --git a/regress/usr.bin/file/t7.in b/regress/usr.bin/file/t7.in new file mode 100644 index 00000000000..3e39c0bc927 --- /dev/null +++ b/regress/usr.bin/file/t7.in @@ -0,0 +1 @@ +#!/bin/csh diff --git a/regress/usr.bin/file/t7.out b/regress/usr.bin/file/t7.out new file mode 100644 index 00000000000..23c70efcc5a --- /dev/null +++ b/regress/usr.bin/file/t7.out @@ -0,0 +1 @@ +t7.in: C shell script text executable diff --git a/regress/usr.bin/file/t8.in b/regress/usr.bin/file/t8.in new file mode 100644 index 00000000000..50d48845c0c --- /dev/null +++ b/regress/usr.bin/file/t8.in @@ -0,0 +1 @@ +#! /bin/sh diff --git a/regress/usr.bin/file/t8.out b/regress/usr.bin/file/t8.out new file mode 100644 index 00000000000..3f4ed32bfb8 --- /dev/null +++ b/regress/usr.bin/file/t8.out @@ -0,0 +1 @@ +t8.in: Bourne shell script text executable diff --git a/regress/usr.bin/file/t9.in b/regress/usr.bin/file/t9.in Binary files differnew file mode 100644 index 00000000000..e1c60c11ded --- /dev/null +++ b/regress/usr.bin/file/t9.in diff --git a/regress/usr.bin/file/t9.out b/regress/usr.bin/file/t9.out new file mode 100644 index 00000000000..4c758bb604c --- /dev/null +++ b/regress/usr.bin/file/t9.out @@ -0,0 +1 @@ +t9.in: compiled Java class data, version 49.0 |