You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2016/08/28 04:47:23 UTC

[1/3] incubator-mnemonic git commit: MNEMONIC-101: Create a runall.sh script

Repository: incubator-mnemonic
Updated Branches:
  refs/heads/master 6e851be16 -> bec526b8b


MNEMONIC-101: Create a runall.sh script


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/ae181ec2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/ae181ec2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/ae181ec2

Branch: refs/heads/master
Commit: ae181ec23e7f5a9001880f05e57f9da0289aedf6
Parents: 29e36cd
Author: Yanhui Zhao <ya...@outlook.com>
Authored: Fri Aug 26 05:17:17 2016 +0000
Committer: Yanhui Zhao <ya...@outlook.com>
Committed: Sun Aug 28 04:16:50 2016 +0000

----------------------------------------------------------------------
 .gitignore            |   2 +-
 build-tools/runall.sh | 109 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/ae181ec2/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 01760c4..eae1343 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,4 +39,4 @@ core.*
 dependency-reduced-pom.xml
 service-dist/
 .*.html
-
+testlog/

http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/ae181ec2/build-tools/runall.sh
----------------------------------------------------------------------
diff --git a/build-tools/runall.sh b/build-tools/runall.sh
new file mode 100755
index 0000000..cf19d68
--- /dev/null
+++ b/build-tools/runall.sh
@@ -0,0 +1,109 @@
+#!/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.
+#
+
+echo [INFO] Cleaning up and re-building...
+cd ..
+git clean -xdf > /dev/null
+
+if [ ! -d "testlog" ]
+then
+mkdir testlog
+fi
+
+mvn clean package install > testlog/build.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] Build failed, please check package dependency and refer to testlog/build.log for error messages.
+exit 1
+fi
+echo [SUCCESS] Build Success!
+
+echo [INFO] Running mnemonic example...
+mvn exec:exec -Pexample -pl mnemonic-examples > testlog/mnemonic-example.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This example requires \"vmem\" memory service to run, please check if \"vmem\" has been configured correctly! If \"vmem\" is installed, please refer to testlog/mnemonic-example.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Mnemonic example is completed!
+
+echo [INFO] Running DurablePersonNGTest test case for \"mnemonic-core\"...
+mvn -Dtest=DurablePersonNGTest test -pl mnemonic-core -DskipTests=false > testlog/DurablePersonNGTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurablePersonNGTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case DurablePersonNGTest for \"mnemonic-core\" is completed!
+
+echo [INFO] Running NonVolatileMemAllocatorNGTest test case for \"mnemonic-core\"...
+mvn -Dtest=NonVolatileMemAllocatorNGTest test -pl mnemonic-core -DskipTests=false > testlog/NonVolatileMemAllocatorNGTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/NonVolatileMemAllocatorNGTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case NonVolatileMemAllocatorNGTest for \"mnemonic-core\" is completed!
+
+echo [INFO] Running VolatileMemAllocatorNGTest test case of \"mnemonic-core\"...
+mvn -Dtest=VolatileMemAllocatorNGTest test -pl mnemonic-core -DskipTests=false > testlog/VolatileMemAllocatorNGTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This example requires \"vmem\" memory service to run, please check if \"vmem\" has been configured correctly! If \"vmem\" is installed, please refer to testlog/VolatileMemAllocatorNGTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case VolatileMemAllocatorNGTest for \"mnemonic-core\" is completed!
+
+echo [INFO] Running MemClusteringNGTest for \"mnemonic-core\"...
+mvn -Dtest=MemClusteringNGTest test -pl mnemonic-core -DskipTests=false > testlog/MemClusteringNGTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This example requires \"vmem\" memory service to run, please check if \"vmem\" has been configured correctly! If \"vmem\" is installed, please refer to testlog/MemClusteringNGTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case MemClusteringNGTest for \"mnemonic-core\" is completed!
+
+echo [INFO] Running DurableSinglyLinkedListNGTest for \"mnemonic-collection\"...
+mvn -Dtest=DurableSinglyLinkedListNGTest  test -pl mnemonic-collections -DskipTests=false > testlog/DurableSinglyLinkedListNGTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurableSinglyLinkedListNGTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case DurableSinglyLinkedListNGTest for \"mnemonic-collection\" is completed!
+
+echo [INFO] Running DurablePersonNGTest for \"mnemonic-collection\"...
+mvn -Dtest=DurablePersonNGTest  test -pl mnemonic-collections -DskipTests=false > testlog/DurablePersonNGTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurablePersonNGTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case DurablePersonNGTest for \"mnemonic-collection\" is completed!
+
+echo [INFO] Running DurableSinglyLinkedListNGPrintTest for \"mnemonic-computing-services/mnemonic-utilities-service\"...
+mvn -Dtest=DurableSinglyLinkedListNGPrintTest test -pl mnemonic-computing-services/mnemonic-utilities-service -DskipTests=false > testlog/DurableSinglyLinkedListNGPrintTest.log
+if [ $? -gt 0 ]
+then
+echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurableSinglyLinkedListNGPrintTest.log for detailed information.
+exit 1
+fi
+echo [SUCCESS] Test case DurableSinglyLinkedListNGPrintTest for \"mnemonic-computing-services/mnemonic-utilities-service\" is completed!
+echo [DONE] All test cases are completed! Log files are available under folder testlog!
+exit 0


[3/3] incubator-mnemonic git commit: Merge pull request #5 from yzz127/master

Posted by ga...@apache.org.
Merge pull request #5 from yzz127/master

MNEMONIC-101: Create a runall.sh script

Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/bec526b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/bec526b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/bec526b8

Branch: refs/heads/master
Commit: bec526b8bf5816a569351b4575fe285c03dce9d7
Parents: 6e851be 8a93897
Author: Wang, Gang <qi...@gmail.com>
Authored: Sat Aug 27 21:45:13 2016 -0700
Committer: GitHub <no...@github.com>
Committed: Sat Aug 27 21:45:13 2016 -0700

----------------------------------------------------------------------
 .gitignore            |   2 +-
 build-tools/runall.sh | 108 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[2/3] incubator-mnemonic git commit: Merge branch 'master' of https://github.com/apache/incubator-mnemonic

Posted by ga...@apache.org.
Merge branch 'master' of https://github.com/apache/incubator-mnemonic


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/8a938978
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/8a938978
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/8a938978

Branch: refs/heads/master
Commit: 8a938978a7c0b027e47e28e1cd4d81428d53fafe
Parents: ae181ec 6e851be
Author: Yanhui Zhao <ya...@outlook.com>
Authored: Sun Aug 28 04:17:05 2016 +0000
Committer: Yanhui Zhao <ya...@outlook.com>
Committed: Sun Aug 28 04:38:56 2016 +0000

----------------------------------------------------------------------
 build-tools/mnemonic-checkstyle.xml             |  8 +++
 build-tools/runall.sh                           |  1 -
 docker/Dockerfile                               | 15 ++---
 docker/README.md                                | 61 ++++++++++++++++++++
 mnemonic-collections/pom.xml                    | 22 +++++++
 .../src/main/resources/log4j.properties         | 33 +++++++++++
 .../src/main/resources/log4j.properties         | 33 +++++++++++
 mnemonic-computing-services/pom.xml             | 22 +++++++
 mnemonic-core/pom.xml                           | 22 +++++++
 .../src/main/resources/log4j.properties         | 33 +++++++++++
 mnemonic-examples/pom.xml                       | 22 +++++++
 .../src/main/resources/log4j.properties         | 33 +++++++++++
 .../src/main/resources/log4j.properties         | 33 +++++++++++
 .../src/main/resources/log4j.properties         | 33 +++++++++++
 mnemonic-memory-services/pom.xml                | 22 +++++++
 pom.xml                                         | 28 +++++++++
 16 files changed, 413 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/8a938978/build-tools/runall.sh
----------------------------------------------------------------------
diff --cc build-tools/runall.sh
index cf19d68,0000000..0d3a17c
mode 100755,000000..100755
--- a/build-tools/runall.sh
+++ b/build-tools/runall.sh
@@@ -1,109 -1,0 +1,108 @@@
 +#!/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.
 +#
 +
 +echo [INFO] Cleaning up and re-building...
- cd ..
 +git clean -xdf > /dev/null
 +
 +if [ ! -d "testlog" ]
 +then
 +mkdir testlog
 +fi
 +
 +mvn clean package install > testlog/build.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] Build failed, please check package dependency and refer to testlog/build.log for error messages.
 +exit 1
 +fi
 +echo [SUCCESS] Build Success!
 +
 +echo [INFO] Running mnemonic example...
 +mvn exec:exec -Pexample -pl mnemonic-examples > testlog/mnemonic-example.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This example requires \"vmem\" memory service to run, please check if \"vmem\" has been configured correctly! If \"vmem\" is installed, please refer to testlog/mnemonic-example.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Mnemonic example is completed!
 +
 +echo [INFO] Running DurablePersonNGTest test case for \"mnemonic-core\"...
 +mvn -Dtest=DurablePersonNGTest test -pl mnemonic-core -DskipTests=false > testlog/DurablePersonNGTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurablePersonNGTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case DurablePersonNGTest for \"mnemonic-core\" is completed!
 +
 +echo [INFO] Running NonVolatileMemAllocatorNGTest test case for \"mnemonic-core\"...
 +mvn -Dtest=NonVolatileMemAllocatorNGTest test -pl mnemonic-core -DskipTests=false > testlog/NonVolatileMemAllocatorNGTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/NonVolatileMemAllocatorNGTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case NonVolatileMemAllocatorNGTest for \"mnemonic-core\" is completed!
 +
 +echo [INFO] Running VolatileMemAllocatorNGTest test case of \"mnemonic-core\"...
 +mvn -Dtest=VolatileMemAllocatorNGTest test -pl mnemonic-core -DskipTests=false > testlog/VolatileMemAllocatorNGTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This example requires \"vmem\" memory service to run, please check if \"vmem\" has been configured correctly! If \"vmem\" is installed, please refer to testlog/VolatileMemAllocatorNGTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case VolatileMemAllocatorNGTest for \"mnemonic-core\" is completed!
 +
 +echo [INFO] Running MemClusteringNGTest for \"mnemonic-core\"...
 +mvn -Dtest=MemClusteringNGTest test -pl mnemonic-core -DskipTests=false > testlog/MemClusteringNGTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This example requires \"vmem\" memory service to run, please check if \"vmem\" has been configured correctly! If \"vmem\" is installed, please refer to testlog/MemClusteringNGTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case MemClusteringNGTest for \"mnemonic-core\" is completed!
 +
 +echo [INFO] Running DurableSinglyLinkedListNGTest for \"mnemonic-collection\"...
 +mvn -Dtest=DurableSinglyLinkedListNGTest  test -pl mnemonic-collections -DskipTests=false > testlog/DurableSinglyLinkedListNGTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurableSinglyLinkedListNGTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case DurableSinglyLinkedListNGTest for \"mnemonic-collection\" is completed!
 +
 +echo [INFO] Running DurablePersonNGTest for \"mnemonic-collection\"...
 +mvn -Dtest=DurablePersonNGTest  test -pl mnemonic-collections -DskipTests=false > testlog/DurablePersonNGTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurablePersonNGTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case DurablePersonNGTest for \"mnemonic-collection\" is completed!
 +
 +echo [INFO] Running DurableSinglyLinkedListNGPrintTest for \"mnemonic-computing-services/mnemonic-utilities-service\"...
 +mvn -Dtest=DurableSinglyLinkedListNGPrintTest test -pl mnemonic-computing-services/mnemonic-utilities-service -DskipTests=false > testlog/DurableSinglyLinkedListNGPrintTest.log
 +if [ $? -gt 0 ]
 +then
 +echo [ERROR] This test case requires \"pmalloc\" memory service to pass, please check if \"pmalloc\" has been configured correctly! If \"pmalloc\" is installed, please refer to testlog/DurableSinglyLinkedListNGPrintTest.log for detailed information.
 +exit 1
 +fi
 +echo [SUCCESS] Test case DurableSinglyLinkedListNGPrintTest for \"mnemonic-computing-services/mnemonic-utilities-service\" is completed!
 +echo [DONE] All test cases are completed! Log files are available under folder testlog!
 +exit 0