Merge pull request #29 from klondi/run_travis_tests

Run travis tests
This commit is contained in:
Jan Vidar Krey 2014-11-26 13:55:52 +01:00
commit 5151badbeb
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
set -x set -x
set -e
export CFLAGS="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)" export CFLAGS="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)"
export LDFLAGS="$(dpkg-buildflags --get LDFLAGS) -Wl,--as-needed" export LDFLAGS="$(dpkg-buildflags --get LDFLAGS) -Wl,--as-needed"
@ -33,6 +34,10 @@ cmake ${CMAKEOPTS} \
make VERBOSE=1 make VERBOSE=1
make VERBOSE=1 test
./test
sudo make install sudo make install
du -shc /etc/uhub/ /usr/bin/uhub* /usr/lib/uhub/ du -shc /etc/uhub/ /usr/bin/uhub* /usr/lib/uhub/

View File

@ -24,7 +24,6 @@
uhub_assert(X); \ uhub_assert(X); \
uhub_assert(X->cache); \ uhub_assert(X->cache); \
uhub_assert(X->capacity); \ uhub_assert(X->capacity); \
uhub_assert(X->length); \
uhub_assert(X->length <= X->capacity); \ uhub_assert(X->length <= X->capacity); \
uhub_assert(X->references > 0); \ uhub_assert(X->references > 0); \
uhub_assert(X->length == strlen(X->cache)); uhub_assert(X->length == strlen(X->cache));