This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi Marek, thank you for your input.
On Mon, Sep 10, 2012 at 01:04:48PM -0400, Tomas Dohnalek wrote:You probably want to use `-rm' here.-do-tests-clean: +tests-summary = $(common-objpfx)tests.sum +tests-summary-clean: + rm -f $(tests-summary) +
Can't we use just $(@F) here?diff --git a/Rules b/Rules index 17d938e..5a569dd 100644 --- a/Rules +++ b/Rules @@ -127,6 +127,8 @@ binaries-shared-tests = $(filter-out $(binaries-pie) $(binaries-static), \ $(binaries-all-tests)) binaries-shared-notests = $(filter-out $(binaries-pie) $(binaries-static), \ $(binaries-all-notests)) +test-name = $(subdir)/$(*F)
+test_rc=$1 +test_name=$2 + +if [ $# -gt 2 ]; then + output=$3 +else + output=/dev/stdout +fiIs this hunk really needed? That is, couldn't we just drop this and then in Makefiles just do $(evaluate-test) > $(tests-summary) Anyway, it looks like we always output into $(tests-summary)...
+ +if [ ${test_rc} -eq 0 ]; then + result="PASS" +else + result="FAIL" +fiUse 2 spaces. In the future we probably will want to have SKIP/UNSUPPORTED option too, I suspect.
There's no need to use ${var}. Just $var is good enough. Thanks,+echo "${result}: ${test_name}" >> ${output} +exit ${test_rc}
Furthermore, I'm not sure about parallel make...
Marek
Thanks Tomas
-- Tomas Dohnalek QE Tools Intern Red Hat
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |