Changeset 1851
- Timestamp:
- Mar 5, 2009, 1:43:13 PM (14 years ago)
- Location:
- trunk/test
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/Makefile.am
r1846 r1851 67 67 68 68 # tests not passing through yet 69 XFAIL_TESTS = 69 XFAIL_TESTS = yat_m4_test2.sh 70 70 71 71 TESTS += documentation_test.sh 72 72 73 DISTRIBUTED_TESTS = yat_m4_test.sh 73 DISTRIBUTED_TESTS = yat_m4_test.sh yat_m4_test2.sh 74 74 75 75 TESTS += $(DISTRIBUTED_TESTS) -
trunk/test/common_defs.sh.in
r1847 r1851 34 34 fi 35 35 36 echo " Running $me"36 echo "=== Running $me ===" 37 37 38 38 # autotools are required, if not found exit 77 to skipt test … … 66 66 AC_PROG_CXX 67 67 AC_PROG_LIBTOOL 68 YAT_CHECK_VERSION([0.5.99],, 69 [AC_MSG_ERROR([could not find required version of yat])]) 70 YAT_CHECK_HEADER(,[AC_MSG_ERROR([could not find yat headers])]) 71 YAT_LA_FILE=\`\$yat_config --link-libtool\` 72 AC_SUBST(YAT_LA_FILE) 68 m4_include(acinclude.m4) 73 69 AC_CONFIG_FILES([Makefile]) 74 70 AC_OUTPUT … … 87 83 EOF 88 84 $move_if_change Makefile.am.tmp Makefile.am 85 86 echo "dnl a dummy include" > acinclude.m4 89 87 90 88 echo "Create hello.cc" -
trunk/test/yat_m4_test.sh
r1842 r1851 27 27 . ./common_defs.sh || exit 1 28 28 29 echo "Create acinclude.m4.tmp" 30 cat > acinclude.m4.tmp <<EOF 31 YAT_CHECK_VERSION([0.5.99],, 32 [AC_MSG_ERROR([could not find required version of yat])]) 33 YAT_CHECK_HEADER(,[AC_MSG_ERROR([could not find yat headers])]) 34 YAT_LA_FILE=\`\$yat_config --link-libtool\` 35 AC_SUBST(YAT_LA_FILE) 36 EOF 37 $move_if_change acinclude.m4.tmp acinclude.m4 38 29 39 # bootstrapping 30 test -f configure || \ 31 (autoreconf -sifv && \ 32 ./configure --with-yat=$abs_top_builddir/build_support/yat-config) 40 if test -f Makefile; then : else 41 autoreconf -siv 42 ./configure --with-yat=$abs_top_builddir/build_support/yat-config 43 fi 33 44 34 45 # we always wanna relink -
trunk/test/yat_m4_test2.sh
r1845 r1851 20 20 21 21 22 # build a `hello world' project that uses macro YAT_CHECK_YAT in its 23 # configure.ac. Test if the macro works against an uninstalled yat. 22 # test that option --with-yat=no works as expected. 24 23 25 24 set -e … … 27 26 . ./common_defs.sh || exit 1 28 27 28 cat > acinclude.m4 <<EOF 29 YAT_CHECK_YAT([2.7.8],,AC_MSG_ERROR([test failed - see warning above])) 30 YAT_FIND_YAT(,[AC_MSG_ERROR([test failed - see warning above])]) 31 YAT_CHECK_VERSION([1.60.2],,[AC_MSG_ERROR([test failed - see warning above])]) 32 YAT_CHECK_HEADER(,[AC_MSG_ERROR([test failed - see warning above])]) 33 YAT_CHECK_LIB(,[AC_MSG_ERROR([test failed - see warning above])]) 34 EOF 35 29 36 # bootstrapping 30 test -f configure || \ 31 (autoreconf -sifv && \ 32 ./configure --with-yat=$abs_top_builddir/build_support/yat-config) 33 34 # we always wanna relink 35 rm -f hello 36 make 37 echo "running ./hello" 38 ./hello || exit 1 37 autoreconf -siv && ./configure --with-yat=no 39 38 40 39 echo "Test is OK"
Note: See TracChangeset
for help on using the changeset viewer.