1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-20 21:54:16 +01:00

add beginnings of a second test

This commit is contained in:
Klas Lindfors 2014-08-27 09:46:04 +02:00
parent 6dbcb903a5
commit 9a22fc0753
3 changed files with 52 additions and 8 deletions

15
.gitignore vendored
View File

@ -27,17 +27,22 @@ m4/lt~obsolete.m4
missing
pam_yubico-*.tar.gz
pam_yubico-*.tar.gz.sig
test-suite.log
test.log
test.trs
pam_yubico.8
ykpamcfg.1
drop_privs.lo
libpam_util.la
pam_yubico.la
pam_yubico.lo
tests/test
tests/test.o
util.lo
ykpamcfg
ykpamcfg.o
tests/test
tests/test.o
tests/util_test
tests/util_test-util_test.o
tests/util_test.log
tests/util_test.o
tests/util_test.trs
tests/test-suite.log
tests/test.log
tests/test.trs

View File

@ -29,8 +29,9 @@
AM_LDFLAGS = -no-install
AM_CFLAGS=-I$(srcdir)/.. $(WARN_CFLAGS)
LDADD = ../pam_yubico.la
test_SOURCES = test.c
test_LDADD = ../pam_yubico.la
util_test_LDADD = ../libpam_util.la
util_test_CPPFLAGS = @YKPERS_CFLAGS@
check_PROGRAMS = test
check_PROGRAMS = test util_test
TESTS = $(check_PROGRAMS)

38
tests/util_test.c Normal file
View File

@ -0,0 +1,38 @@
/*
* Copyright (c) 2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * 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 COPYRIGHT HOLDERS AND CONTRIBUTORS
* "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 COPYRIGHT
* OWNER OR CONTRIBUTORS 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.
*/
#include <stdio.h>
#include "util.h"
int
main (int argc, char **argv)
{
return 0;
}