A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change path for win32 ucontext files.
[simgrid.git]
/
buildtools
/
scripts
/
test_dist_with_cmake.sh
diff --git
a/buildtools/scripts/test_dist_with_cmake.sh
b/buildtools/scripts/test_dist_with_cmake.sh
index
034be45
..
124dc19
100755
(executable)
--- a/
buildtools/scripts/test_dist_with_cmake.sh
+++ b/
buildtools/scripts/test_dist_with_cmake.sh
@@
-2,21
+2,33
@@
# This script waits that the make_dist script finishes building the right archive in ~/simgrid
# and then builds it using cmake. Warning, cmake is only a wrapper for now, you still need the autotools
# This script waits that the make_dist script finishes building the right archive in ~/simgrid
# and then builds it using cmake. Warning, cmake is only a wrapper for now, you still need the autotools
+if [ -e ~/simgrid-svn/buildtools/scripts/simgrid_build.conf ] ; then
+ source ~/simgrid-svn/buildtools/scripts/simgrid_build.conf
+else
+ source ~/.simgrid_build.conf
+fi
-s
ource ~/simgrid-svn/buildtools/scripts/simgrid_build.conf
-
+s
et -e
+get_version
open_archive
# Make sure we have cmake installed
open_archive
# Make sure we have cmake installed
-which_cmake=`which cmake
`
+which_cmake=`which cmake
2>/dev/null`
if [ x$which_cmake = x ] ; then
echo "Try to install cmake"
if [ x$which_cmake = x ] ; then
echo "Try to install cmake"
- sudo apt-get install cmake
+ if [ -e /usr/bin/apt-get ] ; then # debian based
+ sudo apt-get install cmake
+ fi
+ if [ -e /usr/bin/yum ] ; then # fedora based
+ sudo yum update
+ sudo yum -y install cmake
+ fi
fi
# Launch CMake
cd buildtools/Cmake
fi
# Launch CMake
cd buildtools/Cmake
+echo $version > version
cmake ./
# Run CTest, and push the results
cmake ./
# Run CTest, and push the results
-ctest -D Experimental
CTEST_FULL_OUTPUT
+ctest -D Experimental