head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2016.05.31.02.10.00;	author agc;	state Exp;
branches;
next	;
commitid	OqftfVbJXLBuOz8z;


desc
@@


1.1
log
@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]
@
text
@#! /bin/sh

# $NetBSD: Testspec.template,v 1.1 2016/05/29 20:47:56 agc Exp $

# Copyright (c) 2016 Alistair Crooks <agc@@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"
@
