aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_minimal.c
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/test_minimal.c')
-rw-r--r--unittest/test_minimal.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/unittest/test_minimal.c b/unittest/test_minimal.c
new file mode 100644
index 0000000..3cf3dd7
--- /dev/null
+++ b/unittest/test_minimal.c
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2018 Nitrokey UG
+ *
+ * This file is part of libnitrokey.
+ *
+ * libnitrokey is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * libnitrokey is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: LGPL-3.0
+ */
+
+#include "../NK_C_API.h"
+
+// This test is only intended to make sure that the C API header can be
+// compiled by a C compiler. (All other tests are written in C++.)
+int main() {
+ return 0;
+}