From: Alexis Laferrière Date: Wed, 20 Mar 2013 15:29:13 +0000 (-0400) Subject: tests.sh: adds env var to notify tested programs of automated tests X-Git-Tag: v0.6~48^2~9 X-Git-Url: http://nitlanguage.org tests.sh: adds env var to notify tested programs of automated tests Allows for tested programs to know if it is executed normally or if it is being executed by an automated test. The program may then avoid to display UI and such. Will be used the the calculator example program. Signed-off-by: Alexis Laferrière --- diff --git a/tests/tests.sh b/tests/tests.sh index 8fcc039..2ed6906 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -19,6 +19,7 @@ # Set lang do default to avoid failed tests because of locale export LANG=C +export NIT_TESTING=true usage() {