Module Name: othersrc Committed By: agc Date: Tue May 31 02:10:00 UTC 2016
Added Files: othersrc/external/bsd/luhn/bin: 1.expected Testspec Log Message: Add test for luhn library and utility, derived from the existing tests in the Makefile using human2atf. Not very extensive, but gives a basic functionality check. Results of running the tests: [19:06:50] agc@netbsd-002 ...tests/usr.bin/luhn [3437] > 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/luhn t_luhn (1/1): 1 test cases luhn_testset_1_basic: [0.030007s] Passed. [0.030780s] Summary for 1 test programs: 1 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/luhn/atf-run.log *** Once again, note that make test is unsupported. [19:06:54] agc@netbsd-002 ...tests/usr.bin/luhn [3438] To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/luhn/bin/1.expected \ othersrc/external/bsd/luhn/bin/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/luhn/bin/1.expected diff -u /dev/null othersrc/external/bsd/luhn/bin/1.expected:1.1 --- /dev/null Tue May 31 02:10:00 2016 +++ othersrc/external/bsd/luhn/bin/1.expected Tue May 31 02:10:00 2016 @@ -0,0 +1,4 @@ +number '7992739871', checkdigit 3 +number '7992739871', checkdigit 3 +number '7992739871', checkdigit 3 +number '7992739871', checkdigit 3 Index: othersrc/external/bsd/luhn/bin/Testspec diff -u /dev/null othersrc/external/bsd/luhn/bin/Testspec:1.1 --- /dev/null Tue May 31 02:10:00 2016 +++ othersrc/external/bsd/luhn/bin/Testspec Tue May 31 02:10:00 2016 @@ -0,0 +1,35 @@ +#! /bin/sh + +# $NetBSD: Testspec,v 1.1 2016/05/31 02:10:00 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=luhn + +TESTSET_1_NAME=basic +TESTSET_1_FILES=' +1.expected +' +TESTSET_1_CASE_1="-s eq:0 -o file:1.expected -e empty luhn 7992739871 7992739871"