diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/numactl/numactl/Fix-the-test-output-format.patch | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/numactl/numactl/Fix-the-test-output-format.patch')
-rw-r--r-- | meta-oe/recipes-support/numactl/numactl/Fix-the-test-output-format.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/numactl/numactl/Fix-the-test-output-format.patch b/meta-oe/recipes-support/numactl/numactl/Fix-the-test-output-format.patch new file mode 100644 index 000000000..8c309a4b5 --- /dev/null +++ b/meta-oe/recipes-support/numactl/numactl/Fix-the-test-output-format.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | [PATCH] Fix the test output format | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
6 | --- | ||
7 | test/regress | 6 +++--- | ||
8 | test/regress2 | 9 ++++----- | ||
9 | 2 files changed, 7 insertions(+), 8 deletions(-) | ||
10 | |||
11 | diff --git a/test/regress b/test/regress | ||
12 | index 05eff5b..10d72f7 100755 | ||
13 | --- a/test/regress | ||
14 | +++ b/test/regress | ||
15 | @@ -73,6 +73,7 @@ probe_hardware() | ||
16 | if [ $numnodes -lt 2 ] ; then | ||
17 | echo "need at least two nodes with at least $NEEDPAGES each of" | ||
18 | echo "free memory for mempolicy regression tests" | ||
19 | + echo "FAIL: numa regress" | ||
20 | exit 1 | ||
21 | fi | ||
22 | } | ||
23 | @@ -206,10 +207,9 @@ main() | ||
24 | rm A B | ||
25 | |||
26 | if [ "$EXIT" = 0 ] ; then | ||
27 | - echo '========SUCCESS' | ||
28 | + echo 'PASS: numactl regress' | ||
29 | else | ||
30 | - echo '========FAILURE' | ||
31 | - exit 1 | ||
32 | + echo 'FAIL: numactl regress' | ||
33 | fi | ||
34 | } | ||
35 | |||
36 | diff --git a/test/regress2 b/test/regress2 | ||
37 | index 6a254fa..9c97943 100755 | ||
38 | --- a/test/regress2 | ||
39 | +++ b/test/regress2 | ||
40 | @@ -6,12 +6,11 @@ VALGRIND=${VALGRIND:-} | ||
41 | export LD_LIBRARY_PATH=`pwd`/.. | ||
42 | |||
43 | T() { | ||
44 | - echo "$@" | ||
45 | - if ! $VALGRIND "$@" ; then | ||
46 | - echo $1 FAILED!!!! | ||
47 | - exit 1 | ||
48 | + if ! $VALGRIND "$@" 2>&1 1>/dev/null; then | ||
49 | + echo "FAIL: $1" | ||
50 | + else | ||
51 | + echo "PASS: $1" | ||
52 | fi | ||
53 | - echo | ||
54 | } | ||
55 | |||
56 | # various tests | ||
57 | -- | ||
58 | 1.7.10.4 | ||
59 | |||