Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DAAA5200B33 for ; Wed, 15 Jun 2016 02:07:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D92AC160A56; Wed, 15 Jun 2016 00:07:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2C51B160A06 for ; Wed, 15 Jun 2016 02:07:51 +0200 (CEST) Received: (qmail 87165 invoked by uid 500); 15 Jun 2016 00:07:50 -0000 Mailing-List: contact commits-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list commits@geode.incubator.apache.org Received: (qmail 87156 invoked by uid 99); 15 Jun 2016 00:07:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2016 00:07:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D12B2C214D for ; Wed, 15 Jun 2016 00:07:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mYZaEyFudYDG for ; Wed, 15 Jun 2016 00:07:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 93BFE60E5D for ; Wed, 15 Jun 2016 00:07:20 +0000 (UTC) Received: (qmail 83180 invoked by uid 99); 15 Jun 2016 00:07:18 -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; Wed, 15 Jun 2016 00:07:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A8017DFC7E; Wed, 15 Jun 2016 00:07:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hiteshkhamesra@apache.org To: commits@geode.incubator.apache.org Date: Wed, 15 Jun 2016 00:08:08 -0000 Message-Id: <8d52b281ca464e1ab32370bffa372dc4@git.apache.org> In-Reply-To: <60f2027f4d98435cba2ee6ef29b9a036@git.apache.org> References: <60f2027f4d98435cba2ee6ef29b9a036@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [52/94] [abbrv] incubator-geode git commit: GEODE-837: delete temporary script archived-at: Wed, 15 Jun 2016 00:07:52 -0000 GEODE-837: delete temporary script Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/edc8c702 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/edc8c702 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/edc8c702 Branch: refs/heads/feature/GEODE-1372 Commit: edc8c70230e9b927a1951e42ca4528ce13a98eee Parents: b914df2 Author: Kirk Lund Authored: Thu Jun 9 10:14:58 2016 -0700 Committer: Kirk Lund Committed: Thu Jun 9 10:14:58 2016 -0700 ---------------------------------------------------------------------- convert_one_dunit_to_junit4.pl | 41 ------------------------------------- 1 file changed, 41 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/edc8c702/convert_one_dunit_to_junit4.pl ---------------------------------------------------------------------- diff --git a/convert_one_dunit_to_junit4.pl b/convert_one_dunit_to_junit4.pl deleted file mode 100755 index c6b6dd9..0000000 --- a/convert_one_dunit_to_junit4.pl +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/perl -w -i -p -# 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. - -use strict; - -my $filename = $ARGV; -$filename =~ s/.*\/(.*).java/$1/; - -#Change constructor to a no arg constructor -s/(public.*$filename)\(String name\)/$1()/; -s/super\(name\)/super()/; - -#Add @Test annotation -s/^[^\/]*public void test/ \@Test\n public void test/; - -#Extend the correct junit 4 class -s/extends CacheTestCase/extends JUnit4CacheTestCase/; -s/extends DistributedTestCase/extends JUnit4DistributedTestCase/; - -#Add the DistributedTest category -s/(^public class $filename)/\@Category(DistributedTest.class)\n$1/; - -#Change calls to new MyTest("string") to use the no arg constructor -s/new $filename\(\".*?\"\)/new $filename\(\)/; - -#Add imports -s/^(package com.gemstone.*)/$1\n\nimport org.junit.experimental.categories.Category;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\nimport com.gemstone.gemfire.test.dunit.cache.internal.JUnit4CacheTestCase;\nimport com.gemstone.gemfire.test.dunit.internal.JUnit4DistributedTestCase;\nimport com.gemstone.gemfire.test.junit.categories.DistributedTest;/ -