Skip to content

Commit

Permalink
tests: Add unit tests for conf file
Browse files Browse the repository at this point in the history
  • Loading branch information
dacav committed Jan 5, 2025
1 parent 7bf3f0b commit 5041e54
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ pamu2fcfg/cmdline.h
pamu2fcfg/pamu2fcfg
man/pamu2fcfg.1
tests/get_devices
tests/cfg
fuzz/fuzz_format_parsers
4 changes: 4 additions & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ get_devices_LDADD = $(top_builddir)/libmodule.la
check_PROGRAMS += expand
expand_LDADD = $(top_builddir)/libmodule.la

check_PROGRAMS += cfg
cfg_SOURCES = ./cfg.c ../cfg.c ../debug.c
cfg_CFLAGS = -DPAM_U2F_TESTING -DSCONFDIR='"@SCONFDIR@"' $(AM_CFLAGS)

TESTS = $(check_PROGRAMS)
Loading

0 comments on commit 5041e54

Please sign in to comment.