flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/6] git commit: [flex-sdk] [refs/heads/develop] - first attempt at email driven testing
Date Fri, 24 May 2013 22:33:50 GMT
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 <aharui@apache.org>
Authored: Fri May 24 23:15:31 2013 +0100
Committer: Alex Harui <aharui@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


Mime
View raw message