From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q9iLb-0007F3-FX for garchives@archives.gentoo.org; Tue, 12 Apr 2011 18:29:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A410C1C069; Tue, 12 Apr 2011 18:29:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 71C0C1C065 for ; Tue, 12 Apr 2011 18:29:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F18221BC0D7 for ; Tue, 12 Apr 2011 18:29:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 51DCF8006A for ; Tue, 12 Apr 2011 18:29:22 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <5ce961ccc44556b4daa33f2c92a5c30ceca397dd.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: /, test/ X-VCS-Repository: proj/libbash X-VCS-Files: Makefile.am test/verify_ebuilds_test.sh X-VCS-Directories: / test/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 5ce961ccc44556b4daa33f2c92a5c30ceca397dd Date: Tue, 12 Apr 2011 18:29:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ecf41bed24300e0704008bd69087a2fd commit: 5ce961ccc44556b4daa33f2c92a5c30ceca397dd Author: Mu Qiao gentoo org> AuthorDate: Tue Apr 12 05:54:46 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Tue Apr 12 12:08:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D5ce961cc Add missing tests for arithmetic Some tests under scripts/ are missing. So we write a script to make sure we have all *.ebuild* listed in Makefile.am. --- Makefile.am | 11 ++++++++--- test/verify_ebuilds_test.sh | 5 +++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index b57922d..e965bf9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -48,9 +48,13 @@ GUNIT_TESTS =3D bashast/gunit/arith_main.gunit \ =20 EBUILD_LOG_COMPILER =3D $(srcdir)/test/script_compiler.sh EBUILD_TESTS =3D scripts/var_def.ebuild \ - scripts/var_expansion.ebuild + scripts/var_expansion.ebuild \ + scripts/arithmetic_assignment.ebuild \ + scripts/binary_arithmetic.ebuild EBUILD_RESULT =3D scripts/var_def.ebuild.result \ - scripts/var_expansion.ebuild.result + scripts/var_expansion.ebuild.result \ + scripts/arithmetic_assignment.ebuild.result \ + scripts/binary_arithmetic.ebuild.result =20 TESTS =3D $(GUNIT_TESTS) $(EBUILD_TESTS) # these get cleaned so only add autogenerated stuff or modify CLEANFILES @@ -77,7 +81,7 @@ AM_CPPFLAGS =3D -D_GLIBCXX_DEBUG endif =20 if HAVE_GTEST -TESTS +=3D cppunittests test/ast_printer_test.sh +TESTS +=3D cppunittests test/ast_printer_test.sh test/verify_ebuilds_tes= t.sh check_PROGRAMS =3D cppunittests variable_printer ast_printer =20 cppunittests_SOURCES =3D test/run_tests.cpp \ @@ -161,6 +165,7 @@ EXTRA_DIST =3D bashast/bashast.g \ bashast/features_script/features.sh.ast \ bashast/features_script/features.sh.tokens \ test/ast_printer_test.sh \ + test/verify_ebuilds_test.sh \ $(EBUILD_TESTS) \ $(EBUILD_RESULT) \ $(GUNIT_TESTS) \ diff --git a/test/verify_ebuilds_test.sh b/test/verify_ebuilds_test.sh new file mode 100755 index 0000000..8aa84d6 --- /dev/null +++ b/test/verify_ebuilds_test.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +num_of_ebuild_files=3D$(grep 'scripts/.*.ebuild' $srcdir/Makefile.am | w= c -l) +[[ $num_of_ebuild_files =3D=3D $(ls $srcdir/scripts/*.ebuild* | wc -l) ]= ] +exit $?