diff options
author | harti <harti@FreeBSD.org> | 2005-04-28 13:20:48 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-04-28 13:20:48 +0000 |
commit | 602fdc5e5e266095bc3074b9c38607f2667723e6 (patch) | |
tree | 26c6bca40ea9055901196f90a09bee2eeb78c77b /tools/regression/usr.bin/make/archives/t0 | |
parent | 3998514c39838c17e7575278b488959fad10a612 (diff) | |
download | FreeBSD-src-602fdc5e5e266095bc3074b9c38607f2667723e6.zip FreeBSD-src-602fdc5e5e266095bc3074b9c38607f2667723e6.tar.gz |
Add an initial regression test suite for make(1).
Submitted by: Max Okumoto <okumotu@ucsd.edu> (partly, initial version)
Diffstat (limited to 'tools/regression/usr.bin/make/archives/t0')
-rw-r--r-- | tools/regression/usr.bin/make/archives/t0/Makefile | 63 | ||||
-rw-r--r-- | tools/regression/usr.bin/make/archives/t0/expected.status | 1 | ||||
-rw-r--r-- | tools/regression/usr.bin/make/archives/t0/expected.stderr | 3 | ||||
-rw-r--r-- | tools/regression/usr.bin/make/archives/t0/expected.stdout | 7 | ||||
-rw-r--r-- | tools/regression/usr.bin/make/archives/t0/libtest.a | bin | 0 -> 2104 bytes | |||
-rw-r--r-- | tools/regression/usr.bin/make/archives/t0/test.t | 18 |
6 files changed, 92 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/make/archives/t0/Makefile b/tools/regression/usr.bin/make/archives/t0/Makefile new file mode 100644 index 0000000..ecb991a --- /dev/null +++ b/tools/regression/usr.bin/make/archives/t0/Makefile @@ -0,0 +1,63 @@ +# $FreeBSD$ +# This test checks the code reading archive files. The archive file +# is a BSD4.4 file with __.SYMTAB and #1/N long file names. + +all: + -@make test_ok1 && echo "1 ok" + -@make test_ok2 && echo "2 ok" + -@make test_ok3 && echo "3 ok" + -@make test_ok4 && echo "4 ok" + -@make test_fail5 || echo "5 ok" + -@make test_fail6 || echo "6 ok" + -@make test_fail7 || echo "7 ok" + +############################################################################# + +test_ok1: libtest.a(short.o) + @: + +libtest.a(short.o): ood + @: + +############################################################################# + +test_ok2: libtest.a(exactly15char.o) + @: + +libtest.a(exactly15char.o): ood + @: + +############################################################################# + +test_ok3: libtest.a(exactly16chars.o) + @: + +libtest.a(exactly16chars.o): ood + @: + +############################################################################# + +test_ok4: libtest.a(verylongobjectname.o) + @: + +libtest.a(verylongobjectname.o): ood + @: + +############################################################################# + +# Truncated to 16 characters +test_fail5: libtest.a(verylongobjectna) + @: + +############################################################################# + +# Truncated to 15 characters +test_fail6: libtest.a(verylongobjectn) + @: + +############################################################################# + +test_fail7: libtest.a(\#1/20) + @: + +ood: diff --git a/tools/regression/usr.bin/make/archives/t0/expected.status b/tools/regression/usr.bin/make/archives/t0/expected.status new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tools/regression/usr.bin/make/archives/t0/expected.status @@ -0,0 +1 @@ +0 diff --git a/tools/regression/usr.bin/make/archives/t0/expected.stderr b/tools/regression/usr.bin/make/archives/t0/expected.stderr new file mode 100644 index 0000000..8dedeaf --- /dev/null +++ b/tools/regression/usr.bin/make/archives/t0/expected.stderr @@ -0,0 +1,3 @@ +make: don't know how to make verylongobjectna. Stop +make: don't know how to make verylongobjectn. Stop +make: don't know how to make #1/20. Stop diff --git a/tools/regression/usr.bin/make/archives/t0/expected.stdout b/tools/regression/usr.bin/make/archives/t0/expected.stdout new file mode 100644 index 0000000..7cd22e1 --- /dev/null +++ b/tools/regression/usr.bin/make/archives/t0/expected.stdout @@ -0,0 +1,7 @@ +1 ok +2 ok +3 ok +4 ok +5 ok +6 ok +7 ok diff --git a/tools/regression/usr.bin/make/archives/t0/libtest.a b/tools/regression/usr.bin/make/archives/t0/libtest.a Binary files differnew file mode 100644 index 0000000..891ce6e --- /dev/null +++ b/tools/regression/usr.bin/make/archives/t0/libtest.a diff --git a/tools/regression/usr.bin/make/archives/t0/test.t b/tools/regression/usr.bin/make/archives/t0/test.t new file mode 100644 index 0000000..6c58fbe --- /dev/null +++ b/tools/regression/usr.bin/make/archives/t0/test.t @@ -0,0 +1,18 @@ +#!/bin/sh + +# $FreeBSD$ + +cd `dirname $0` +. ../../common.sh + +setup_test() +{ + cp libtest.a ${WORK_DIR} +} + +desc_test() +{ + echo "Archive parsing (BSD4.4 format)." +} + +eval_cmd $1 |