From: "Petteri Räty" <betelgeuse@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/libbash:master commit in: scripts/, /, test/
Date: Tue, 26 Apr 2011 11:02:28 +0000 (UTC) [thread overview]
Message-ID: <f00e6f72d20808accabb22cf49c5489f118b7bc5.betelgeuse@gentoo> (raw)
commit: f00e6f72d20808accabb22cf49c5489f118b7bc5
Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 08:34:13 2011 +0000
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 00:38:13 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=f00e6f72
Test: rename *ebuild* to *bash*
The suffix is not proper when we want to distinguish normal shell
scripts from ebuilds. So we rename these tests to make it possible
to use metadata_generator as the compiler for *.ebuild.
---
Makefile.am | 42 ++++++++++----------
...ssignment.ebuild => arithmetic_assignment.bash} | 0
...ld.result => arithmetic_assignment.bash.result} | 0
...ry_arithmetic.ebuild => binary_arithmetic.bash} | 0
...ebuild.result => binary_arithmetic.bash.result} | 0
...and_execution.ebuild => command_execution.bash} | 0
...ebuild.result => command_execution.bash.result} | 0
scripts/{function_def.ebuild => function_def.bash} | 0
..._def.ebuild.result => function_def.bash.result} | 0
scripts/{var_def.ebuild => var_def.bash} | 0
.../{var_def.ebuild.result => var_def.bash.result} | 0
.../{var_expansion.ebuild => var_expansion.bash} | 0
...ion.ebuild.result => var_expansion.bash.result} | 0
test/verify_bashs_test.sh | 5 ++
test/verify_ebuilds_test.sh | 5 --
15 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index c4f2507..03848ed 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,7 +23,7 @@ include doxygen.am
ACLOCAL_AMFLAGS = -I m4
-TEST_EXTENSIONS= .gunit .ebuild
+TEST_EXTENSIONS= .gunit .bash
GUNIT_LOG_COMPILER = $(srcdir)/bashast/gunit/runtests.sh
AM_GUNIT_LOG_FLAGS = @antlr_cp@:.
GUNIT_TESTS = bashast/gunit/arith_main.gunit \
@@ -46,21 +46,21 @@ GUNIT_TESTS = bashast/gunit/arith_main.gunit \
bashast/gunit/simp_command.gunit \
bashast/gunit/simp_prog.gunit
-EBUILD_LOG_COMPILER = $(srcdir)/test/script_compiler.sh
-EBUILD_TESTS = scripts/var_def.ebuild \
- scripts/var_expansion.ebuild \
- scripts/command_execution.ebuild \
- scripts/function_def.ebuild \
- scripts/arithmetic_assignment.ebuild \
- scripts/binary_arithmetic.ebuild
-EBUILD_RESULT = scripts/var_def.ebuild.result \
- scripts/var_expansion.ebuild.result \
- scripts/command_execution.ebuild.result \
- scripts/function_def.ebuild.result \
- scripts/arithmetic_assignment.ebuild.result \
- scripts/binary_arithmetic.ebuild.result
-
-TESTS = $(GUNIT_TESTS) $(EBUILD_TESTS)
+BASH_LOG_COMPILER = $(srcdir)/test/script_compiler.sh
+BASH_TESTS = scripts/var_def.bash \
+ scripts/var_expansion.bash \
+ scripts/command_execution.bash \
+ scripts/function_def.bash \
+ scripts/arithmetic_assignment.bash \
+ scripts/binary_arithmetic.bash
+BASH_RESULT = scripts/var_def.bash.result \
+ scripts/var_expansion.bash.result \
+ scripts/command_execution.bash.result \
+ scripts/function_def.bash.result \
+ scripts/arithmetic_assignment.bash.result \
+ scripts/binary_arithmetic.bash.result
+
+TESTS = $(GUNIT_TESTS) $(BASH_TESTS)
# these get cleaned so only add autogenerated stuff or modify CLEANFILES
check_JAVA = bashast/bashastLexer.java bashast/bashastParser.java
AM_JAVACFLAGS = -classpath @antlr_cp@
@@ -85,7 +85,7 @@ AM_CPPFLAGS = -D_GLIBCXX_DEBUG
endif
if HAVE_GTEST
-TESTS += cppunittests test/ast_printer_test.sh test/verify_ebuilds_test.sh
+TESTS += cppunittests test/ast_printer_test.sh test/verify_bashs_test.sh
check_PROGRAMS = cppunittests
cppunittests_SOURCES = test/run_tests.cpp \
@@ -175,12 +175,12 @@ EXTRA_DIST = 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) \
+ test/verify_bashs_test.sh \
+ $(BASH_TESTS) \
+ $(BASH_RESULT) \
$(GUNIT_TESTS) \
$(GUNIT_LOG_COMPILER) \
- $(EBUILD_LOG_COMPILER)
+ $(BASH_LOG_COMPILER)
coding_standard.pdf: coding_standard/coding_standard.tex
$(AM_V_GEN)@PDFLATEX@ coding_standard/coding_standard.tex 2&>1 > /dev/null
diff --git a/scripts/arithmetic_assignment.ebuild b/scripts/arithmetic_assignment.bash
similarity index 100%
rename from scripts/arithmetic_assignment.ebuild
rename to scripts/arithmetic_assignment.bash
diff --git a/scripts/arithmetic_assignment.ebuild.result b/scripts/arithmetic_assignment.bash.result
similarity index 100%
rename from scripts/arithmetic_assignment.ebuild.result
rename to scripts/arithmetic_assignment.bash.result
diff --git a/scripts/binary_arithmetic.ebuild b/scripts/binary_arithmetic.bash
similarity index 100%
rename from scripts/binary_arithmetic.ebuild
rename to scripts/binary_arithmetic.bash
diff --git a/scripts/binary_arithmetic.ebuild.result b/scripts/binary_arithmetic.bash.result
similarity index 100%
rename from scripts/binary_arithmetic.ebuild.result
rename to scripts/binary_arithmetic.bash.result
diff --git a/scripts/command_execution.ebuild b/scripts/command_execution.bash
similarity index 100%
rename from scripts/command_execution.ebuild
rename to scripts/command_execution.bash
diff --git a/scripts/command_execution.ebuild.result b/scripts/command_execution.bash.result
similarity index 100%
rename from scripts/command_execution.ebuild.result
rename to scripts/command_execution.bash.result
diff --git a/scripts/function_def.ebuild b/scripts/function_def.bash
similarity index 100%
rename from scripts/function_def.ebuild
rename to scripts/function_def.bash
diff --git a/scripts/function_def.ebuild.result b/scripts/function_def.bash.result
similarity index 100%
rename from scripts/function_def.ebuild.result
rename to scripts/function_def.bash.result
diff --git a/scripts/var_def.ebuild b/scripts/var_def.bash
similarity index 100%
rename from scripts/var_def.ebuild
rename to scripts/var_def.bash
diff --git a/scripts/var_def.ebuild.result b/scripts/var_def.bash.result
similarity index 100%
rename from scripts/var_def.ebuild.result
rename to scripts/var_def.bash.result
diff --git a/scripts/var_expansion.ebuild b/scripts/var_expansion.bash
similarity index 100%
rename from scripts/var_expansion.ebuild
rename to scripts/var_expansion.bash
diff --git a/scripts/var_expansion.ebuild.result b/scripts/var_expansion.bash.result
similarity index 100%
rename from scripts/var_expansion.ebuild.result
rename to scripts/var_expansion.bash.result
diff --git a/test/verify_bashs_test.sh b/test/verify_bashs_test.sh
new file mode 100755
index 0000000..2c42195
--- /dev/null
+++ b/test/verify_bashs_test.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+num_of_ebuild_files=$(grep 'scripts/.*.bash' $srcdir/Makefile.am | wc -l)
+[[ $num_of_ebuild_files == $(ls $srcdir/scripts/*.bash* | wc -l) ]]
+exit $?
diff --git a/test/verify_ebuilds_test.sh b/test/verify_ebuilds_test.sh
deleted file mode 100755
index 8aa84d6..0000000
--- a/test/verify_ebuilds_test.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-num_of_ebuild_files=$(grep 'scripts/.*.ebuild' $srcdir/Makefile.am | wc -l)
-[[ $num_of_ebuild_files == $(ls $srcdir/scripts/*.ebuild* | wc -l) ]]
-exit $?
next reply other threads:[~2011-04-26 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-26 11:02 Petteri Räty [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-04-02 15:50 [gentoo-commits] proj/libbash:master commit in: scripts/, /, test/ Petteri Räty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f00e6f72d20808accabb22cf49c5489f118b7bc5.betelgeuse@gentoo \
--to=betelgeuse@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox