-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
367 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ mayfly-test | |
*.kate-swp | ||
*.d | ||
*.so | ||
tags | ||
tests/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
# Mayfly | ||
|
||
[![Join the chat at https://gitter.im/reaver-project/Mayfly](https://badges.gitter.im/reaver-project/Mayfly.svg)](https://gitter.im/reaver-project/Mayfly?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
|
||
Mayfly is the Reaver Project's testing framework. It's meant to be lightweight and | ||
benefit from as many modern C++ features as possible. Primary goals for Mayfly are | ||
to be fast, generate readable outputs (and TeamCity-ready results) and later get | ||
closely integrated with Despayre, the Reaver Project's build system. | ||
|
||
## Supported compilers | ||
|
||
Currently supported compilers include GCC 4.9+ and Clang 3.5+, both with libstdc++ | ||
and libc++. | ||
|
||
CI status: | ||
|
||
* Clang: <a href="http://ci.reaver-project.org/viewType.html?buildTypeId=mayfly_TestBuildWithClang&guest=1"> | ||
<img src="http://ci.reaver-project.org/app/rest/builds/buildType:(id:mayfly_TestBuildWithClang)/statusIcon"></a> | ||
* GCC: <a href="http://ci.reaver-project.org/viewType.html?buildTypeId=mayfly_TestBuildWithGcc&guest=1"> | ||
<img src="http://ci.reaver-project.org/app/rest/builds/buildType:(id:mayfly_TestBuildWithGcc)/statusIcon"></a> | ||
Currently supported compilers include GCC 6.1+ and Clang 3.9+, both with libstdc++ | ||
and libc++, and with Boost 1.64.0+. | ||
|
||
CI status can be checked on [Reaver Project's TeamCity server](http://ci.reaver-project.org/viewType.html?buildTypeId=mayfly_Tests&guest=1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xe | ||
|
||
if [[ -f /proc/cpuinfo ]] | ||
then | ||
core_number=$(cat /proc/cpuinfo | grep -c ^processor) | ||
else | ||
core_number=2 | ||
fi | ||
|
||
# this section to be made smarter in the future | ||
# will kinda get automatically smarter once reaverlib itself uses develop and master for stable | ||
function install_package() { | ||
local package=$1 | ||
local branch=$2 | ||
|
||
wget https://github.com/reaver-project/${package}/archive/${branch}.zip | ||
unzip ${branch}.zip | ||
cd ${package}-${branch} | ||
make install # no sudo needed; to be executed in docker as sudo | ||
cd .. | ||
rm -rf ${package}-${branch} ${branch}.zip | ||
} | ||
|
||
install_package reaverlib master | ||
install_package mayfly develop | ||
|
||
make test -j${core_number} -l${core_number} | ||
./tests/test -j ${core_number} -l 3 -r teamcity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.