Module Name: othersrc Committed By: agc Date: Wed Jun 1 00:50:21 UTC 2016
Added Files: othersrc/external/bsd/tiger/tiger: 1.expected 1.in 2.expected 2.in 3.expected 3.in 4.expected 4.in 5.expected 5.in 6.expected 6.in Testspec Log Message: Add atf-based tests for tiger, generated using human2atf. Running the tests produced the following output: [17:48:18] agc@netbsd-002 ...tests/usr.bin/tiger [3829] > sudo make test *** WARNING: make test is experimental *** *** Using this test does not preclude you from running the tests *** installed in /usr/tests. This test run may raise false *** positives and/or false negatives. Tests root: /usr/tests/usr.bin/tiger t_tiger (1/1): 2 test cases tiger_testset_1_tiger1: [0.028527s] Passed. tiger_testset_2_tiger2: [0.031147s] Passed. [0.063389s] Summary for 1 test programs: 2 passed test cases. 0 failed test cases. 0 expected failed test cases. 0 skipped test cases. *** The verbatim output of atf-run has been saved to /usr/tests/usr.bin/tiger/atf-run.log *** Once again, note that make test is unsupported. [17:48:21] agc@netbsd-002 ...tests/usr.bin/tiger [3830] > To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/tiger/tiger/1.expected \ othersrc/external/bsd/tiger/tiger/1.in \ othersrc/external/bsd/tiger/tiger/2.expected \ othersrc/external/bsd/tiger/tiger/2.in \ othersrc/external/bsd/tiger/tiger/3.expected \ othersrc/external/bsd/tiger/tiger/3.in \ othersrc/external/bsd/tiger/tiger/4.expected \ othersrc/external/bsd/tiger/tiger/4.in \ othersrc/external/bsd/tiger/tiger/5.expected \ othersrc/external/bsd/tiger/tiger/5.in \ othersrc/external/bsd/tiger/tiger/6.expected \ othersrc/external/bsd/tiger/tiger/6.in \ othersrc/external/bsd/tiger/tiger/Testspec Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Added files: Index: othersrc/external/bsd/tiger/tiger/1.expected diff -u /dev/null othersrc/external/bsd/tiger/tiger/1.expected:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/1.expected Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +3293ac630c13f0245f92bbb1766e16167a4e58492dde73f3 Index: othersrc/external/bsd/tiger/tiger/2.expected diff -u /dev/null othersrc/external/bsd/tiger/tiger/2.expected:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/2.expected Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +6d12a41e72e644f017b6f0e2f7b44c6285f06dd5d2c5b075 Index: othersrc/external/bsd/tiger/tiger/2.in diff -u /dev/null othersrc/external/bsd/tiger/tiger/2.in:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/2.in Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy dog \ No newline at end of file Index: othersrc/external/bsd/tiger/tiger/3.expected diff -u /dev/null othersrc/external/bsd/tiger/tiger/3.expected:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/3.expected Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +a8f04b0f7201a0d728101c9d26525b31764a3493fcd8458f Index: othersrc/external/bsd/tiger/tiger/3.in diff -u /dev/null othersrc/external/bsd/tiger/tiger/3.in:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/3.in Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy cog \ No newline at end of file Index: othersrc/external/bsd/tiger/tiger/4.expected diff -u /dev/null othersrc/external/bsd/tiger/tiger/4.expected:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/4.expected Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +4441be75f6018773c206c22745374b924aa8313fef919f41 Index: othersrc/external/bsd/tiger/tiger/5.expected diff -u /dev/null othersrc/external/bsd/tiger/tiger/5.expected:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/5.expected Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +976abff8062a2e9dcea3a1ace966ed9c19cb85558b4976d8 Index: othersrc/external/bsd/tiger/tiger/5.in diff -u /dev/null othersrc/external/bsd/tiger/tiger/5.in:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/5.in Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy dog \ No newline at end of file Index: othersrc/external/bsd/tiger/tiger/6.expected diff -u /dev/null othersrc/external/bsd/tiger/tiger/6.expected:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/6.expected Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +09c11330283a27efb51930aa7dc1ec624ff738a8d9bdd3df Index: othersrc/external/bsd/tiger/tiger/6.in diff -u /dev/null othersrc/external/bsd/tiger/tiger/6.in:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/6.in Wed Jun 1 00:50:21 2016 @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy cog \ No newline at end of file Index: othersrc/external/bsd/tiger/tiger/Testspec diff -u /dev/null othersrc/external/bsd/tiger/tiger/Testspec:1.1 --- /dev/null Wed Jun 1 00:50:21 2016 +++ othersrc/external/bsd/tiger/tiger/Testspec Wed Jun 1 00:50:21 2016 @@ -0,0 +1,55 @@ +#! /bin/sh + +# $NetBSD: Testspec,v 1.1 2016/06/01 00:50:21 agc Exp $ + +# Copyright (c) 2016 Alistair Crooks <a...@netbsd.org> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +TESTNAME=tiger + +TESTSET_1_NAME=tiger1 +TESTSET_1_FILES=' +1.in +1.expected +2.in +2.expected +3.in +3.expected +' +TESTSET_1_CASE_1="-s eq:0 -o file:1.expected -e empty tiger < 1.in" +TESTSET_1_CASE_2="-s eq:0 -o file:2.expected -e empty tiger < 2.in" +TESTSET_1_CASE_3="-s eq:0 -o file:3.expected -e empty tiger < 3.in" + +TESTSET_2_NAME=tiger2 +TESTSET_2_FILES=' +4.in +4.expected +5.in +5.expected +6.in +6.expected +' +TESTSET_2_CASE_1="-s eq:0 -o file:4.expected -e empty tiger -v2 < 4.in" +TESTSET_2_CASE_2="-s eq:0 -o file:5.expected -e empty tiger -v2 < 5.in" +TESTSET_2_CASE_3="-s eq:0 -o file:6.expected -e empty tiger -v2 < 6.in"