Commit 513ff27e authored by Philip Carns's avatar Philip Carns

add test program and make check target

parent db682155
......@@ -26,3 +26,4 @@ AM_CXXFLAGS = $(AM_CFLAGS)
include Make.rules
include $(top_srcdir)/src/models/Makefile.subdir
include $(top_srcdir)/tests/Makefile.subdir
......@@ -66,6 +66,7 @@ AC_SUBST(CODES_BASE_CFLAGS)
includedir="${includedir}/codes"
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([tests/modelnet-test.sh],[chmod +x tests/modelnet-test.sh])
AC_OUTPUT
check_PROGRAMS += tests/modelnet-test
TESTS += tests/modelnet-test.sh
EXTRA_DIST += tests/modelnet-test.sh
testlib = src/libcodes-net.a
tests_modelnet_test_LDADD = $(testlib) ${CODES_BASE_LIBS}
tests_modelnet_test_CFLAGS = ${CODES_BASE_CFLAGS}
tests_modelnet_test_SOURCES = tests/modelnet-test.c
This diff is collapsed.
LPGROUPS
{
MODELNET_GRP
{
repetitions="16";
server="1";
modelnet_simplenet="1";
}
}
#!/bin/bash
srcdir = @srcdir@
tests/modelnet-test --sync=1 $srcdir/tests/modelnet-test.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment