Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature nrtest #121

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5e37e92
Configured python setup to automatically build nrtest tools.
michaeltryby Oct 10, 2017
e950662
Working on build / testing automation
michaeltryby Oct 13, 2017
22ff4bb
Adding EPANET 2.0.12 benchmark
michaeltryby Oct 13, 2017
9077dfe
Updated Travis yml to run nrtest
michaeltryby Oct 13, 2017
4202417
Fixing InsecurePlatformWarning
michaeltryby Oct 13, 2017
fa1509b
Fixing InsecurePlatformWarning again
michaeltryby Oct 13, 2017
9272334
Fixing InsecurePlatformWarning
michaeltryby Oct 13, 2017
3d5627b
Fixing InsecurePlatformWarning
michaeltryby Oct 13, 2017
3952ebe
Fixing InsecurePlatformWarning
michaeltryby Oct 13, 2017
670d35a
Update .travis.yml
michaeltryby Oct 13, 2017
848ede2
Update .travis.yml
michaeltryby Oct 13, 2017
694e645
Update .travis.yml
michaeltryby Oct 16, 2017
96108f5
Update .travis.yml
michaeltryby Oct 16, 2017
1f68430
Working on configuring python environment and building test tools und…
michaeltryby Oct 16, 2017
c7fa467
Merge branch 'feature-nrtest' of https://github.com/michaeltryby/EPAN…
michaeltryby Oct 16, 2017
e30a607
Making gen-config.sh and run-nrtest.sh executable
michaeltryby Oct 16, 2017
1dd7fb5
Debugging .travis.yml
michaeltryby Oct 16, 2017
3b99135
Debugging .travis.yml
michaeltryby Oct 16, 2017
5e37520
Debugging .travis.yml again
michaeltryby Oct 16, 2017
07f26e4
Debugging .travis.yml again
michaeltryby Oct 16, 2017
56ec37c
debugging travis setup
michaeltryby Oct 17, 2017
b39c2f6
debugging Travis setup
michaeltryby Oct 17, 2017
f2bde6d
debugging Travis setup
michaeltryby Oct 17, 2017
8f319b2
debugging Travis setup
michaeltryby Oct 17, 2017
4360468
debugging Travis setup
michaeltryby Oct 17, 2017
81c1302
debugging Travis setup
michaeltryby Oct 17, 2017
608f9c2
debugging Travis setup
michaeltryby Oct 17, 2017
203d5bc
debugging Travis setup
michaeltryby Oct 17, 2017
4ac6266
debugging Travis setup
michaeltryby Oct 17, 2017
ccfea14
debugging Travis setup
michaeltryby Oct 17, 2017
671af30
debugging Travis setup
michaeltryby Oct 17, 2017
0ed18f6
Fixing bug with __strncpy_chk destlen < len
michaeltryby Oct 18, 2017
206e732
nrtesting clean up
michaeltryby Oct 18, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
language: c
language: python

env:
global:
- EPANET_HOME=`pwd`
- BUILD_HOME=build/CMake/buildproducts
- TEST_HOME=tests/epanet-nrtestsuite

before_install:
- sudo apt-get -qq update
- sudo apt-get install -y swig

install:
- pip install -r requirements.txt

before_script:
- cd build/CMake
- mkdir buildproducts
- cd buildproducts
- mkdir -p $BUILD_HOME
- cd $BUILD_HOME
- cmake ..

script:
- make
# - cd ../../../tests
# - ./test_networks.sh
- cd $EPANET_HOME
- tools/gen-config.sh $EPANET_HOME/$BUILD_HOME/bin > $TEST_HOME/apps/epanet-$TRAVIS_COMMIT.json
- tools/run-nrtest.sh $TEST_HOME $TRAVIS_COMMIT
40 changes: 33 additions & 7 deletions build/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
## cmake .
## make
# CMakeLists.txt - CMake configuration file for EPANET 2.0
#
# CMake is a cross-platform build tool. CMake generates platform native
# makefiles that can be used with your compiler of choice. CMake uses a
# generator concept to represent different build tooling. CMake automatically
# detects the platform it is running on and generates the appropriate makefiles
# for the platform default compiler. Different generators can also be specified.
#
# Note: CMake requires that your platform build system and compiler are
# properly installed. Build using Visual Studio requires msbuild shell.
#
# Example Usage:
# cd build/cmake
# mkdir buildproducts
# cd buildproducts
# cmake ..
# make
#
# Building MSYS on Windows:
# ...
# cmake -G "MSYS Makefiles" ..
# make
#
# Building Visual Studio on Windows:
# ...
# cmake -G "Visual Studio 10 2010" ..
# msbuild /p:Configuration=Release ALL_BUILD.vcxproj
#
# More information:
# cmake --help
#
# CMake is available at https://cmake.org/download/
#

cmake_minimum_required (VERSION 2.6)

Expand All @@ -22,8 +53,3 @@ add_library(epanet STATIC ${EPANET_SOURCES})
include_directories(../../src)
add_executable(runepanet ../../run/main.c)
target_link_libraries (runepanet LINK_PUBLIC epanet m)

# the binary hydraulics file API
include_directories(../../tools/epanet-output/src)
file(GLOB EN_OUTPUT_SOURCES ../../tools/epanet-output/src/*.c)
add_library(ENBinaryOut SHARED ${EN_OUTPUT_SOURCES})
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# requirements.txt
#
# Useful for configuring a python environment to run epanet-nrtestsuite.
#
# command: pip install -r requirements.txt
#

-e ./tools/epanet-output
-e ./tools/epanet-reader
-e ./tools/nrtest-epanet
9 changes: 9 additions & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore app description files generated for nrtest
apps/

# Ignore results generated during nrtest execution
benchmark/

# Except changes to reference benchmark
!benchmark/epanet-2012 # Results for EPANET 2.0.12 MSVC 2010 32-bit

Binary file not shown.
Loading