]> rtime.felk.cvut.cz Git - omk.git/blob - tests/parallel_make/runtest
Fixed parallel_make test to test only serialized targets
[omk.git] / tests / parallel_make / runtest
1 #!/bin/sh
2
3 . ../functions.sh
4
5 make -j | grep -E '^(include-pass|library-pass|binary-pass)' | tee passes
6
7 cat passes|uniq > passes.uniq
8 LINES_UNIQ=`cat passes.uniq|wc -l`
9
10 cat passes|sort|uniq > passes.sort.uniq
11 LINES_SORT_UNIQ=`cat passes.sort.uniq|wc -l`
12
13 if [ x"$LINES_UNIQ" != x"$LINES_SORT_UNIQ" ]; then
14     echo "=== passes.uniq ==="
15     cat passes.uniq
16     echo "=== passes.sort.uniq ==="
17     cat passes.sort.uniq
18     error "Passes are not correctly serialized under parallel make"
19 fi