* tests/tools/pretty_check.sh: make the C++ compiler depend on
autotools variables.
Introduce TEST_CXX to force the use of a specific compiler.
---
milena/ChangeLog | 8 ++++++++
milena/tests/tools/pretty_check.sh | 11 +++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index aeba29c..538f285 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ Improve pretty check.
+
+ * tests/tools/pretty_check.sh: make the C++ compiler depend on
+ autotools variables.
+ Introduce TEST_CXX to force the use of a specific compiler.
+
+2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
* tests/img/tiny.png: add a test image.
2009-05-29 Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
diff --git a/milena/tests/tools/pretty_check.sh b/milena/tests/tools/pretty_check.sh
index d73820b..2bb6044 100755
--- a/milena/tests/tools/pretty_check.sh
+++ b/milena/tests/tools/pretty_check.sh
@@ -40,6 +40,10 @@
# - tests.html, the formated test suite results.
#
#
+# Useful Global variables to know:
+# - TEST_DIR Run the tests only in this directory.
+# - TEST_CXX Use a specific compiler.
+#
#
#
# _WARNING_: be aware of the fact this script run a make clean in the
@@ -66,6 +70,9 @@ if [ -z "$base_make_path" ]; then
fi
fi
+if [ -z "$TEST_CXX" ]; then
+ TEST_CXX="$CXX"
+fi
gcc_wrapper="$PWD/$output_directory/gcc-wrapper.sh"
@@ -320,7 +327,7 @@ done
name=\`basename \$file .o\`
# Compile and log the compilation output.
-g++ 2>\$name.comp.log \$@
+$TEST_CXX 2>\$name.comp.log \$@
EOF
chmod +x "$gcc_wrapper"
@@ -399,7 +406,7 @@ main()
# Cleanup temporary files.
cleanup_tmp_files
- cleanup_gcc_wrapper
+# cleanup_gcc_wrapper
}
main
--
1.5.6.5