Init automake test environment

changes/78/5778/1^2
Vadim Yanitskiy 5 years ago
parent f496a998e5
commit f069eb37fe
  1. 9
      .gitignore
  2. 2
      Makefile.am
  3. 2
      configure.ac
  4. 58
      tests/Makefile.am
  5. 0
      tests/common.sh
  6. 0
      tests/play_all_formats.sh
  7. 0
      tests/ref-files/hhgttg_part1_5.s16
  8. 0
      tests/ref-files/hhgttg_part1_5.s16.amr-efr
  9. 0
      tests/ref-files/hhgttg_part1_5.s16.amr-efr.s16
  10. 0
      tests/ref-files/hhgttg_part1_5.s16.gsm
  11. 0
      tests/ref-files/hhgttg_part1_5.s16.gsm.s16
  12. 0
      tests/ref-files/hhgttg_part1_5.s16.racal-efr
  13. 0
      tests/ref-files/hhgttg_part1_5.s16.racal-efr.s16
  14. 0
      tests/ref-files/hhgttg_part1_5.s16.racal-fr
  15. 0
      tests/ref-files/hhgttg_part1_5.s16.racal-fr.s16
  16. 0
      tests/ref-files/hhgttg_part1_5.s16.racal-hr
  17. 0
      tests/ref-files/hhgttg_part1_5.s16.racal-hr.s16
  18. 0
      tests/ref-files/hhgttg_part1_5.s16.rtp-efr
  19. 0
      tests/ref-files/hhgttg_part1_5.s16.rtp-efr.s16
  20. 0
      tests/ref-files/hhgttg_part1_5.s16.rtp-hr-etsi
  21. 0
      tests/ref-files/hhgttg_part1_5.s16.rtp-hr-etsi.s16
  22. 0
      tests/ref-files/hhgttg_part1_5.s16.rtp-hr-ietf
  23. 0
      tests/ref-files/hhgttg_part1_5.s16.rtp-hr-ietf.s16
  24. 0
      tests/ref-files/hhgttg_part1_5.s16.ti-efr
  25. 0
      tests/ref-files/hhgttg_part1_5.s16.ti-efr.s16
  26. 0
      tests/ref-files/hhgttg_part1_5.s16.ti-fr
  27. 0
      tests/ref-files/hhgttg_part1_5.s16.ti-fr.s16
  28. 0
      tests/ref-files/hhgttg_part1_5.s16.ti-hr
  29. 0
      tests/ref-files/hhgttg_part1_5.s16.ti-hr.s16
  30. 0
      tests/test_all_formats.sh
  31. 2
      tests/testsuite.at
  32. 0
      tests/update_ref_files.sh

9
.gitignore vendored

@ -36,6 +36,15 @@ stamp-h1
libgsmhr/refsrc
# GNU autotest
tests/package.m4
tests/atconfig
tests/atlocal
tests/testsuite
tests/testsuite.dir/
tests/testsuite.log
tests/*/*_test
# final executables
src/osmo-gapk

@ -12,4 +12,4 @@ if ENABLE_GSMHR
SUBDIRS += libgsmhr
endif
SUBDIRS += src
SUBDIRS += src tests

@ -12,6 +12,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([src/app_osmo_gapk.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_TESTDIR(tests)
AC_CONFIG_FILES([
Makefile
src/Makefile
@ -19,6 +20,7 @@ AC_CONFIG_FILES([
include/Makefile
include/gsmhr/Makefile
libosmogapk.pc
tests/Makefile
])
# Options

@ -0,0 +1,58 @@
AM_CPPFLAGS = \
$(all_includes) \
-I$(top_builddir) \
-I$(top_srcdir)/include \
$(NULL)
AM_CFLAGS = \
-Wall \
$(LIBOSMOCORE_CFLAGS) \
$(LIBOSMOCODEC_CFLAGS) \
$(NULL)
check_PROGRAMS = \
$(NULL)
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
:;{ \
echo '# Signature of the current package.' && \
echo 'm4_define([AT_PACKAGE_NAME],' && \
echo ' [$(PACKAGE_NAME)])' && \
echo 'm4_define([AT_PACKAGE_TARNAME],' && \
echo ' [$(PACKAGE_TARNAME)])' && \
echo 'm4_define([AT_PACKAGE_VERSION],' && \
echo ' [$(PACKAGE_VERSION)])' && \
echo 'm4_define([AT_PACKAGE_STRING],' && \
echo ' [$(PACKAGE_STRING)])' && \
echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
echo ' [$(PACKAGE_BUGREPORT)])'; \
echo 'm4_define([AT_PACKAGE_URL],' && \
echo ' [$(PACKAGE_URL)])'; \
} >'$(srcdir)/package.m4'
EXTRA_DIST = \
testsuite.at \
$(TESTSUITE) \
$(srcdir)/package.m4 \
$(NULL)
DISTCLEANFILES = atconfig
TESTSUITE = $(srcdir)/testsuite
check-local: atconfig $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
installcheck-local: atconfig $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
$(TESTSUITEFLAGS)
clean-local:
test ! -f '$(TESTSUITE)' || \
$(SHELL) '$(TESTSUITE)' --clean
AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
mv $@.tmp $@

@ -0,0 +1,2 @@
AT_INIT
AT_BANNER([Regression tests.])
Loading…
Cancel
Save