Skip to content

Commit

Permalink
Add smote test for segfault
Browse files Browse the repository at this point in the history
Because base/src is small, then include test there. If its size increase
do not hesitate to split it.
  • Loading branch information
jreidinger committed Oct 2, 2013
1 parent b411f04 commit f6c1a92
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
scr
y2base
*.log
*.trs
3 changes: 3 additions & 0 deletions base/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ scr_LDFLAGS = \
$(top_builddir)/scr/src/libpy2scr.la \
$(top_builddir)/wfm/src/libpy2wfm.la \
-Xlinker --no-whole-archive

TESTS = scr-smoke-test
EXTRA_DIST = $(TESTS)
7 changes: 7 additions & 0 deletions base/src/scr-smoke-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# smoke test:
echo "WHEN" "simply run with noting to do"
echo " IT" "exits with no error (in particular it does not segfault)"
$DIR/scr stdio scr < /dev/null

0 comments on commit f6c1a92

Please sign in to comment.