Deduplicate fixture headers.

This commit is contained in:
Romain Tartière 2016-01-20 20:31:17 +01:00
parent 94bf7059b4
commit 6c1f6283bd
22 changed files with 26 additions and 25 deletions

View file

@ -37,7 +37,7 @@ AM_LDFLAGS = -module -rpath $(libdir) -avoid-version -no-undefined
test_felica_la_SOURCES = test_felica.c \
felica_fixture.c \
felica_fixture.h
fixture.h
test_felica_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la
test_freefare_la_SOURCES = test_freefare.c
@ -52,7 +52,7 @@ test_mifare_application_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la
test_mifare_classic_la_SOURCES = test_mifare_classic.c \
test_mifare_classic_mad.c \
mifare_classic_fixture.c \
mifare_classic_fixture.h
fixture.h
test_mifare_classic_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la
test_mifare_classic_create_trailer_block_la_SOURCES = test_mifare_classic_create_trailer_block.c
@ -63,7 +63,7 @@ test_mifare_classic_sector_boundaries_la_LIBADD = $(top_builddir)/libfreefare/li
test_mifare_desfire_la_SOURCES = test_mifare_desfire.c \
mifare_desfire_fixture.c \
mifare_desfire_fixture.h
fixture.h
test_mifare_desfire_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la \
$(top_builddir)/test/common/libtestcommon.la
@ -82,7 +82,7 @@ test_mifare_desfire_ev1_la_SOURCES = test_mifare_desfire_ev1.c \
test_mifare_desfire_ev1_aes.c \
test_mifare_desfire_ev1_iso.c \
mifare_desfire_ev1_fixture.c \
mifare_desfire_ev1_fixture.h
fixture.h
test_mifare_desfire_ev1_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la \
$(top_builddir)/test/common/libtestcommon.la
@ -91,7 +91,7 @@ test_mifare_desfire_key_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la
test_mifare_ultralight_la_SOURCES = test_mifare_ultralight.c \
mifare_ultralight_fixture.c \
mifare_ultralight_fixture.h
fixture.h
test_mifare_ultralight_la_LIBADD = $(top_builddir)/libfreefare/libfreefare.la
test_tlv_la_SOURCES = test_tlv.c

View file

@ -1,7 +1,7 @@
#include <cutter.h>
#include <freefare.h>
#include "felica_fixture.h"
#include "fixture.h"
static nfc_context *context;
static nfc_device *device = NULL;

View file

@ -1 +0,0 @@
extern FreefareTag tag;

6
test/fixture.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef _FIXTURE_H
#define _FIXTURE_H
extern FreefareTag tag;
#endif /* _FIXTURE_H */

View file

@ -1,7 +1,7 @@
#include <cutter.h>
#include <freefare.h>
#include "mifare_classic_fixture.h"
#include "fixture.h"
static nfc_context *context;
static nfc_device *device = NULL;

View file

@ -1 +0,0 @@
extern FreefareTag tag;

View file

@ -1,7 +1,7 @@
#include <cutter.h>
#include <freefare.h>
#include "mifare_desfire_ev1_fixture.h"
#include "fixture.h"
static nfc_context *context;
static nfc_device *device = NULL;

View file

@ -1 +0,0 @@
extern FreefareTag tag;

View file

@ -1,7 +1,7 @@
#include <cutter.h>
#include <freefare.h>
#include "mifare_desfire_fixture.h"
#include "fixture.h"
static nfc_context *context;
static nfc_device *device = NULL;

View file

@ -1 +0,0 @@
extern FreefareTag tag;

View file

@ -1,7 +1,7 @@
#include <cutter.h>
#include <freefare.h>
#include "mifare_ultralight_fixture.h"
#include "fixture.h"
static nfc_context *context;
static nfc_device *device = NULL;

View file

@ -1 +0,0 @@
extern FreefareTag tag;

View file

@ -2,7 +2,7 @@
#include <freefare.h>
#include "felica_fixture.h"
#include "fixture.h"
void
test_felica_read_without_encryption(void)

View file

@ -5,7 +5,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_classic_fixture.h"
#include "fixture.h"
void
test_mifare_classic_authenticate(void)

View file

@ -2,7 +2,7 @@
#include <freefare.h>
#include "mifare_classic_fixture.h"
#include "fixture.h"
void
test_mifare_classic_mad(void)

View file

@ -6,7 +6,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_desfire_fixture.h"
#include "fixture.h"
#include "common/mifare_desfire_auto_authenticate.h"
#define cut_assert_success(last_command) \

View file

@ -6,7 +6,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_desfire_ev1_fixture.h"
#include "fixture.h"
#include "common/mifare_desfire_auto_authenticate.h"
#define cut_assert_success(last_command) \

View file

@ -6,7 +6,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_desfire_ev1_fixture.h"
#include "fixture.h"
#include "common/mifare_desfire_auto_authenticate.h"
#define cut_assert_success(last_command) \

View file

@ -6,7 +6,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_desfire_ev1_fixture.h"
#include "fixture.h"
#include "common/mifare_desfire_auto_authenticate.h"
#define cut_assert_success(last_command) \

View file

@ -6,7 +6,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_desfire_ev1_fixture.h"
#include "fixture.h"
#include "common/mifare_desfire_auto_authenticate.h"
#define cut_assert_success(last_command) \

View file

@ -3,7 +3,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_desfire_ev1_fixture.h"
#include "fixture.h"
#include "common/mifare_desfire_auto_authenticate.h"
#define cut_assert_success(last_command) \

View file

@ -5,7 +5,7 @@
#include <freefare.h>
#include "freefare_internal.h"
#include "mifare_ultralight_fixture.h"
#include "fixture.h"
void
test_mifare_ultralight_write(void)