You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/05/25 00:33:50 UTC

[2/6] git commit: [flex-sdk] [refs/heads/develop] - first attempt at email driven testing

first attempt at email driven testing


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/f02bc3e1
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/f02bc3e1
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/f02bc3e1

Branch: refs/heads/develop
Commit: f02bc3e1751f098a1fa4e25fae762a9fa17ed27c
Parents: 4afac17
Author: Alex Harui <ah...@apache.org>
Authored: Fri May 24 23:15:31 2013 +0100
Committer: Alex Harui <ah...@apache.org>
Committed: Fri May 24 23:27:25 2013 +0100

----------------------------------------------------------------------
 test_patch_by_email.sh |   46 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f02bc3e1/test_patch_by_email.sh
----------------------------------------------------------------------
diff --git a/test_patch_by_email.sh b/test_patch_by_email.sh
new file mode 100644
index 0000000..a775b73
--- /dev/null
+++ b/test_patch_by_email.sh
@@ -0,0 +1,46 @@
+#!/bin/bash
+################################################################################
+##
+##  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.
+##
+################################################################################
+##
+## test_patch_by_email.sh gets email, finds patches, saves them to files 
+## runs test_patch
+##
+
+## rm /var/spool/mail/mustellarunner
+fetchmail
+cd mustella/utilities/PatchExtractor/src
+"$AIR_HOME/bin/adl" -runtime "$AIR_HOME/runtimes/air/win" PatchExtractor-app.xml -- c:/cygwin/var/spool/mail/mustellarunner
+rc=$?
+if [[ $rc != 0 ]] ; then
+    cd ../../../..
+    exit $rc
+fi
+cd ../../../..
+git pull --rebase
+
+for file in *.patch
+do
+d = dirname $file
+b = basename $file .patch
+r = $d/$.reply 
+read replyAddr < $r
+echo "Testing In Progress" >mailbody.txt
+mutt -s "Patch Received" $replyAddr <mailbody.txt
+sh test_patch $file
+done