Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61238458
compile_revision.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 5, 10:07
Size
1 KB
Mime Type
text/x-shellscript
Expires
Tue, May 7, 10:07 (2 d)
Engine
blob
Format
Raw Data
Handle
17484200
Attached To
R12526 perf-test-akantu
compile_revision.sh
View Options
#!/usr/bin/env bash
akantu_src
=
$1
test_src
=
$2
revision
=
$3
usage
()
{
echo
$1
<akantu_src> <test_src> <revision>
}
if
[
! -e
${
akantu_src
}
-o -z
${
akantu_src
}
]
;
then
usage
()
;
exit
1
fi
if
[
! -e
${
test_src
}
-o -z
${
test_src
}
]
;
then
usage
()
;
exit
2
fi
cd
${
akantu_src
}
git checkout
${
revision
}
revision_date
=
$(
git log -1 --format
=
'%ct'
)
mkdir build-
${
revision
}
cd
build-
${
revision
}
echo
"*** Configuring revision r${revision} ***"
cmake -DCMAKE_BUILD_TYPE:STRING
=
Release -DCMAKE_CXX_COMPILE_FLAGS:STRING
=
'-march=native'
-DAKANTU_DEBUG:BOOL
=
OFF
${
akantu_src
}
> configure.log 2>&1
if
[
!
$?
-eq 0
]
;
then
exit
100
fi
echo
"*** Building revision r${revision} ***"
make > make.log 2>&1
if
[
!
$?
-eq 0
]
;
then
exit
200
fi
cd
${
test_src
}
mkdir build-
${
revision
}
cd
build-
${
revision
}
# 1413714847 epoch of tag v2.2
if
[
$revision
-lt 1413714847
]
;
then
echo
"MAJOR 1"
VERSION
=
1
else
echo
"MAJOR 2"
VERSION
=
2
fi
echo
"*** Configuring test for r${revision} ***"
cmake -DAKANTU_VERSION_MAJOR:STRING
=
$VERSION
-DAkantu_DIR:PATH
=
${
akantu_src
}
/buidl-
${
revision
}
${
test_src
}
> configure.log 2>&1
if
[
!
$?
-eq 0
]
;
then
exit
300
fi
echo
"*** Building test for r${revision} ***"
make > make.log 2>&1
if
[
!
$?
-eq 0
]
;
then
exit
400
fi
Event Timeline
Log In to Comment