Permalink
Browse files

add simple 'make check' script

  • Loading branch information...
stevengj committed Feb 26, 2015
1 parent b051ff8 commit f75d86189fc05e6ee3894329cd1f0542e213d293
Showing with 11 additions and 1 deletion.
  1. +4 −0 .gitignore
  2. +3 −1 Makefile.am
  3. +4 −0 sines-test.sh
View
@@ -43,3 +43,7 @@ copyright.h
# programs
sines
harminv
# test output
*.log
*.trs
View
@@ -9,7 +9,7 @@ pkgconfig_DATA = harminv.pc
ACLOCAL_AMFLAGS=-I m4
EXTRA_DIST = COPYRIGHT harminv.pc.in acx_blas.m4 acx_lapack.m4
EXTRA_DIST = COPYRIGHT harminv.pc.in m4 sines-test.sh
libharminv_la_SOURCES = harminv.c harminv.h harminv-int.h check.h
libharminv_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
@@ -21,6 +21,8 @@ sines_SOURCES = sines.c
BUILT_SOURCES = copyright.h
TESTS = sines-test.sh
# Generate built sources only in maintainer mode
if MAINTAINER_MODE
View
@@ -0,0 +1,4 @@
#!/bin/sh
set -e
test x"`./sines 0.1+0.01i 0.08+0.001i | ./harminv 0.05-0.15 | cut -d, -f1-2 | tr '\n' /`" = x"frequency, decay constant/0.08, 1.000000e-03/0.1, 1.000000e-02/"

0 comments on commit f75d861

Please sign in to comment.