Return-Path: X-Original-To: apmail-bigtop-commits-archive@www.apache.org Delivered-To: apmail-bigtop-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EEACB18FAE for ; Fri, 15 Jan 2016 22:27:11 +0000 (UTC) Received: (qmail 64182 invoked by uid 500); 15 Jan 2016 22:27:11 -0000 Delivered-To: apmail-bigtop-commits-archive@bigtop.apache.org Received: (qmail 64127 invoked by uid 500); 15 Jan 2016 22:27:11 -0000 Mailing-List: contact commits-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@bigtop.apache.org Delivered-To: mailing list commits@bigtop.apache.org Received: (qmail 64113 invoked by uid 99); 15 Jan 2016 22:27:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 22:27:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9281EE07F7; Fri, 15 Jan 2016 22:27:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cos@apache.org To: commits@bigtop.apache.org Date: Fri, 15 Jan 2016 22:27:11 -0000 Message-Id: <613ba4debb134b9291025fdfc9406c3a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] bigtop git commit: BIGTOP-2239. Smoke tests should have a single location for logger configuration Repository: bigtop Updated Branches: refs/heads/master 7f1c58f05 -> 24bf42da7 BIGTOP-2239. Smoke tests should have a single location for logger configuration Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/eae6ed3e Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/eae6ed3e Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/eae6ed3e Branch: refs/heads/master Commit: eae6ed3ea2f92a4886908cf4a236bf986c420b02 Parents: 7f1c58f Author: Konstantin Boudnik Authored: Thu Jan 14 20:36:26 2016 -0800 Committer: Konstantin Boudnik Committed: Fri Jan 15 13:45:32 2016 -0800 ---------------------------------------------------------------------- bigtop-tests/smoke-tests/build.gradle | 10 +--------- .../smoke-tests/logger-test-config/build.gradle | 20 ++++++++++++++++++++ .../src/main/resources/log4j.properties | 20 ++++++++++++++++++++ 3 files changed, 41 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/eae6ed3e/bigtop-tests/smoke-tests/build.gradle ---------------------------------------------------------------------- diff --git a/bigtop-tests/smoke-tests/build.gradle b/bigtop-tests/smoke-tests/build.gradle index 5145b79..95e886a 100644 --- a/bigtop-tests/smoke-tests/build.gradle +++ b/bigtop-tests/smoke-tests/build.gradle @@ -39,17 +39,9 @@ subprojects { testCompile group: 'org.codehaus.groovy', name: 'groovy', version: groovyVersion testCompile group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion, transitive: 'true' testCompile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion, transitive: 'true' + testRuntime project(':bigtop-tests:smoke-tests:logger-test-config') } - sourceSets { - test { - resources { - srcDirs = [ - 'conf/', - ] - } - } - } //Note you need a snapshot itest to run this. ext.doExclude = { String filename -> //print("Exclude? ${filename} ... ") http://git-wip-us.apache.org/repos/asf/bigtop/blob/eae6ed3e/bigtop-tests/smoke-tests/logger-test-config/build.gradle ---------------------------------------------------------------------- diff --git a/bigtop-tests/smoke-tests/logger-test-config/build.gradle b/bigtop-tests/smoke-tests/logger-test-config/build.gradle new file mode 100644 index 0000000..98c9101 --- /dev/null +++ b/bigtop-tests/smoke-tests/logger-test-config/build.gradle @@ -0,0 +1,20 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +dependencies { + runtime group: 'log4j', name: 'log4j', version: '1.2.17' +} http://git-wip-us.apache.org/repos/asf/bigtop/blob/eae6ed3e/bigtop-tests/smoke-tests/logger-test-config/src/main/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/bigtop-tests/smoke-tests/logger-test-config/src/main/resources/log4j.properties b/bigtop-tests/smoke-tests/logger-test-config/src/main/resources/log4j.properties new file mode 100644 index 0000000..165d0f9 --- /dev/null +++ b/bigtop-tests/smoke-tests/logger-test-config/src/main/resources/log4j.properties @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +log4j.rootLogger=INFO,console +log4j.threshhold=ALL +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.target=System.err +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n