Skip to content

Commit 70666f4

Browse files
Merge pull request #77 from smithlabcode/adding-tests
Adding tests
2 parents 5356e08 + dc285a2 commit 70666f4

File tree

10 files changed

+41679
-3
lines changed

10 files changed

+41679
-3
lines changed

Makefile.am

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,36 @@
1414
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515
# General Public License for more details.
1616

17-
EXTRA_DIST = README.md LICENSE preseqR data docs
1817
ACLOCAL_AMFLAGS = -I m4
1918

2019
SUBDIRS := src/smithlab_cpp
2120
install installdirs: SUBDIRS := $(filter-out src/smithlab_cpp, $(SUBDIRS))
2221
AM_CPPFLAGS = -I $(top_srcdir)/src/smithlab_cpp
22+
AM_CPPFLAGS += -Wall -Wextra -Wpedantic -Wno-unknown-attributes
2323

2424
CXXFLAGS = -O2 # default has optimization on
2525

26+
EXTRA_DIST = \
27+
README.md \
28+
LICENSE \
29+
preseqR \
30+
data \
31+
docs \
32+
tests/md5sum.txt \
33+
tests/data/lc_extrap_input.vals \
34+
tests/data/gc_extrap_input.mr \
35+
tests/data/c_curve_input.hist \
36+
tests/scripts/test_c_curve.test \
37+
tests/scripts/test_gc_extrap.test \
38+
tests/scripts/test_lc_extrap.test
39+
40+
TESTS = \
41+
tests/scripts/test_c_curve.test \
42+
tests/scripts/test_lc_extrap.test \
43+
tests/scripts/test_gc_extrap.test
44+
45+
TEST_EXTENSIONS = .test
46+
2647
LDADD = src/smithlab_cpp/libsmithlab_cpp.a
2748

2849
bin_PROGRAMS = preseq

configure.ac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,13 @@ AS_IF([test "x$enable_hts" = "xyes"],
4747
AM_CONDITIONAL([ENABLE_HTS], [test "x$enable_hts" = "xyes"])
4848

4949
AC_CONFIG_FILES([Makefile])
50+
51+
dnl make the test data files available in the build tree
52+
AC_CONFIG_LINKS([
53+
tests/md5sum.txt:tests/md5sum.txt
54+
tests/c_curve_input.hist:tests/data/c_curve_input.hist
55+
tests/lc_extrap_input.vals:tests/data/lc_extrap_input.vals
56+
tests/gc_extrap_input.mr:tests/data/gc_extrap_input.mr
57+
])
58+
5059
AC_OUTPUT

documentation/docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
jinja2==3.0.3
1+
jinja2>=3.1.4
22
mkdocs>=1.3.1
33
babel>=2.9.0
44
click>=7.0
5-
Jinja2>=2.10.2
5+
Jinja2>=3.1.4
66
Markdown>=3.2.1,<3.4
77
PyYAML>=5.2
88
watchdog>=2.0.0

tests/data/c_curve_input.hist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
1 982419
2+
2 6060
3+
3 214
4+
4 63
5+
5 32
6+
6 21
7+
7 14
8+
8 9
9+
9 6
10+
10 3
11+
11 6
12+
12 2
13+
13 2
14+
14 2
15+
15 3
16+
16 2
17+
24 2
18+
31 1

tests/data/gc_extrap_input.mr

Lines changed: 10001 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)