Skip to content

Commit

Permalink
Use packaged distribution for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Nov 12, 2016
1 parent 374e4cf commit 09a3983
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ env:
- CFLAGS=-O2 CXXFLAGS=-O2
- CFLAGS="-O2 -pedantic -Wall -Wextra -Werror" CXXFLAGS="-O2 -pedantic -Wall -Wextra -Werror"
- CFLAGS=-O3 CXXFLAGS=-O3
script: autoreconf -f -i && ./configure && make check
script: support/test-build.sh
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
AC_INIT([recoverjpeg], [2.6])
AC_CONFIG_SRCDIR([src/recoverjpeg.c])
AC_CONFIG_AUX_DIR([support])
AC_CONFIG_MACRO_DIR([support])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([config.h])
AC_PROG_CC
Expand Down
15 changes: 15 additions & 0 deletions support/test-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/sh -e
autoreconf -fvi
rm -rf *.tar.gz
./configure
make dist
rm -rf _build
mkdir _build
cd _build
tar zxvf ../*.tar.gz
cd recoverjpeg*
mkdir _build
cd _build
../configure
make
make check

0 comments on commit 09a3983

Please sign in to comment.