---
milena/ChangeLog | 5 +++++
milena/tests/tools/pretty_check.sh | 20 ++++++++++----------
2 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 7fe6681..030398e 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-13 Guillaume Lazzara <guillaume.lazzara(a)lrde.epita.fr>
+
+ * tests/tools/pretty_check.sh: Correctly grep XFAIL and FAIL tests
+ output.
+
2009-07-13 Roland Levillain <roland(a)lrde.epita.fr>
Do not use Doxygen-style comments within an implementation.
diff --git a/milena/tests/tools/pretty_check.sh b/milena/tests/tools/pretty_check.sh
index a13fc62..9ba1635 100755
--- a/milena/tests/tools/pretty_check.sh
+++ b/milena/tests/tools/pretty_check.sh
@@ -1,18 +1,18 @@
#!/bin/sh
# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
-#
+#
# This file is part of Olena.
-#
+#
# Olena is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, version 2 of the License.
-#
+#
# Olena is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
@@ -90,7 +90,7 @@ fi
if [ -z "$TEST_CXX" ]; then
TEST_CXX="$CXX"
fi
-
+
gcc_wrapper="$PWD/$output_directory/gcc-wrapper.sh"
cleanup_last_results()
@@ -140,7 +140,7 @@ end_tmp_files()
{
local ef="error_entry_html.tmp"
local wf="warning_entry_html.tmp"
- close_dir_entry $ef
+ close_dir_entry $ef
close_dir_entry $wf
echo "</ol><br>" >> $ef
echo "</ol><br>" >> $wf
@@ -178,7 +178,7 @@ open_dir()
</table>
<br>
EOF
-
+
}
close_dir()
@@ -384,7 +384,7 @@ main()
# failed during execution.
if [ "$status" == "FAIL" ] || [ "$status" ==
"XFAIL" ]; then
- grep -B 2 ": $name\$" $check_log | head -n 1 >
"$dir/$name.log"
+ grep -B 1 "X*FAIL: $name\$" $check_log | head -n 1 >
"$dir/$name.log"
error_entry $name $bdir error $status
error_node $name $log "./$name" "$dir/$name" $bdir error
$status
fi
@@ -417,11 +417,11 @@ main()
fi
done
done
-
+
# Build pretty output.
end_tmp_files
make_output_file
-
+
# Cleanup temporary files.
cleanup_tmp_files
cleanup_gcc_wrapper
--
1.5.6.5
Show replies by date