source:
test/do-tests-datastruct.sh
@
54834a1
Last change on this file since 54834a1 was 54834a1, checked in by Richard Sanger <rsangerarj@…>, 8 years ago | |
---|---|
|
|
File size: 436 bytes |
Rev | Line | |
---|---|---|
[df668eb] | 1 | #!/bin/bash |
2 | ||
3 | OK=0 | |
4 | FAIL="" | |
5 | ||
6 | do_test() { | |
7 | if $@; then | |
8 | OK=$[ $OK + 1 ] | |
9 | else | |
10 | FAIL="$FAIL | |
11 | $@" | |
12 | fi | |
13 | } | |
14 | ||
15 | libdir=../lib/.libs:../libpacketdump/.libs | |
16 | export LD_LIBRARY_PATH="$libdir" | |
17 | export DYLD_LIBRARY_PATH="${libdir}" | |
[014f733] | 18 | echo Testing vector |
[df668eb] | 19 | do_test ./test-datastruct-vector |
[014f733] | 20 | echo Testing deque |
[df668eb] | 21 | do_test ./test-datastruct-deque |
[014f733] | 22 | echo Testing ringbuffer |
[df668eb] | 23 | do_test ./test-datastruct-ringbuffer |
24 | echo | |
25 | echo "Tests passed: $OK" | |
26 | echo "Tests failed: $FAIL" |
Note: See TracBrowser
for help on using the repository browser.