Skip to content

Memory regression test [blocks: #2035] #1971

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 36 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,44 @@ jobs:
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
install:
- ccache -z
- ccache --max-size=1G
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
- ccache --max-size=2G
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have these two changes accidentally escaped here from other work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they are intentional; the commit message tries to call them out, but it might not be sufficiently clear?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that this was an intentional change that @tautschnig and I
discussed in an earlier part of this PR.

- cmake --build build -- -j4
script: (cd build; ctest -V -L CORE -j2)

# cmake build using g++-5 + memory regression test
- &memory-regression-test
stage: Test different OS/CXX/Flags
os: linux
compiler: gcc
cache: ccache
env:
- BUILD_SYSTEM=cmake
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- valgrind
before_install:
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
install:
- ccache -z
- ccache --max-size=2G
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
- cmake --build build -- -j4
env:
- NAME="memory-regression"
script:
- cd build
- valgrind --tool=massif --massif-out-file=massif.out --time-unit=B
bin/cbmc ../regression/cbmc/address_space_size_limit1/test.c
--no-simplify --unwind 300 --object-bits 8 || true
- if ! ../scripts/memory-test/memory.py --fuzzy --peak-diff
-r ../scripts/memory-test/massif.ref.x86-64 massif.out ; then
echo "Dumping massif.out" ; cat massif.out ; exit 1 ; fi

- stage: Test different OS/CXX/Flags
os: osx
compiler: clang
Expand Down Expand Up @@ -262,6 +295,7 @@ jobs:
allow_failures:
- <<: *formatting-stage
- <<: *linter-stage
- <<: *memory-regression-test

install:
- ccache -z
Expand Down
Loading