Skip to content

Commit 6781acb

Browse files
committed
Adding unit tests
1 parent 62cf1b2 commit 6781acb

26 files changed

+3013
-0
lines changed

Diff for: AUTHORS

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FPNGlib -- The Floating-point Number Generator Library
2+
A C library to test numerical programs and libraries
3+
4+
The FPNGlib was created in April 2019 at LS2N, University of Nantes, France.
5+
6+
A list of contributors in order of contributions:
7+
8+
* Frédéric Goualard <[email protected]>

Diff for: COPYING

+674
Large diffs are not rendered by default.

Diff for: ChangeLog

Whitespace-only changes.

Diff for: INSTALL

+370
Large diffs are not rendered by default.

Diff for: Makefile.am

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# High-level Makefile
2+
#
3+
# Copyright 2019 University of Nantes, France.
4+
#
5+
# This file is part of the FPNGlib library.
6+
#
7+
# The FPNGlib library brary is free software; you can redistribute it and/or modify
8+
# it under the terms of the GNU Lesser General Public License as published by the
9+
# Free Software Foundation; either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# The FPNGlib Library is distributed in the hope that it will be useful, but
13+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15+
# for more details.
16+
#
17+
# You should have received copies of the GNU General Public License and the
18+
# GNU Lesser General Public License along with the FPNGlib Library. If not,
19+
# see https://www.gnu.org/licenses/.
20+
21+
SUBDIRS = fpnglib src tests

Diff for: NEWS

Whitespace-only changes.

Diff for: README

Whitespace-only changes.

Diff for: VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

Diff for: configure.ac

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.69])
5+
AC_INIT([fpnglib],m4_esyscmd([tr -d '\n' < VERSION]),[[email protected]])
6+
dnl For Automake
7+
AM_INIT_AUTOMAKE([gnu 1.7 dist-bzip2])
8+
9+
PKG_CHECK_MODULES([CHECK], [check >= 0.12.0])
10+
11+
AC_CONFIG_SRCDIR([src/fpu.h])
12+
AC_CONFIG_HEADERS([config.h])
13+
AC_CONFIG_FILES([Makefile fpnglib/Makefile src/Makefile tests/Makefile])
14+
15+
dnl Libtool support
16+
AC_CONFIG_MACRO_DIR([m4])
17+
dnl Libtool revision system (from the Libtool manual)
18+
dnl Here are a set of rules to help you update your library version information:
19+
dnl Start with version information of ‘0:0:0’ for each libtool library.
20+
dnl Update the version information only immediately before a public release of
21+
dnl your software. More frequent updates are unnecessary, and only guarantee that
22+
dnl the current interface number gets larger faster.
23+
dnl If the library source code has changed at all since the last update, then
24+
dnl increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
25+
dnl If any interfaces have been added, removed, or changed since the last update,
26+
dnl increment current, and set revision to 0.
27+
dnl If any interfaces have been added since the last public release, then increment age.
28+
dnl If any interfaces have been removed or changed since the last public release, then set
29+
dnl age to 0.
30+
LT_VERSION_INFO="0:0:0"
31+
AC_SUBST(LT_VERSION_INFO)
32+
LT_INIT
33+
34+
35+
# Checks for programs.
36+
AC_PROG_CC
37+
AC_PROG_CC_STDC
38+
if test "${ac_cv_prog_cc_stdc}" = "no"; then
39+
AC_MSG_ERROR([fpnglib must be compiled with a C99-compliant C compiler.])
40+
fi
41+
AC_PROG_LIBTOOL
42+
43+
# Checks for libraries.
44+
45+
# Checks for header files.
46+
AC_HEADER_STDC
47+
AC_CHECK_HEADERS([fenv.h stdint.h])
48+
49+
# Checks for typedefs, structures, and compiler characteristics.
50+
AC_C_CONST
51+
AC_C_INLINE
52+
AC_TYPE_INT32_T
53+
AC_TYPE_INT64_T
54+
AC_TYPE_UINT64_T
55+
56+
CFLAGS="$CFLAGS -Wall"
57+
58+
# Checks for library functions.
59+
60+
AC_OUTPUT

Diff for: fpnglib/Makefile.am

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# High-level Makefile
2+
#
3+
# Copyright 2019 University of Nantes, France.
4+
#
5+
# This file is part of the FPNGlib library.
6+
#
7+
# The FPNGlib library brary is free software; you can redistribute it and/or modify
8+
# it under the terms of the GNU Lesser General Public License as published by the
9+
# Free Software Foundation; either version 3 of the License, or (at your
10+
# option) any later version.
11+
#
12+
# The FPNGlib Library is distributed in the hope that it will be useful, but
13+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15+
# for more details.
16+
#
17+
# You should have received copies of the GNU General Public License and the
18+
# GNU Lesser General Public License along with the FPNGlib Library. If not,
19+
# see https://www.gnu.org/licenses/.
20+
21+
header-links: remove-links
22+
HEADERLIST="$(top_srcdir)/src/*.h"; \
23+
for h in $$HEADERLIST; do \
24+
BASENAME=`basename $$h`; \
25+
test -r $$BASENAME || $(LN_S) $$h $$BASENAME; \
26+
done
27+
28+
remove-links:
29+
rm -f *.h
30+
31+
32+
all: all-am header-links
33+
34+
clean-local: remove-links
35+
distclean-local: remove-links

0 commit comments

Comments
 (0)