tests.sh: adds env var to notify tested programs of automated tests
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 20 Mar 2013 15:29:13 +0000 (11:29 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 21 Mar 2013 18:32:53 +0000 (14:32 -0400)
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 <alexis.laf@xymus.net>

tests/tests.sh

index 8fcc039..2ed6906 100755 (executable)
@@ -19,6 +19,7 @@
 
 # Set lang do default to avoid failed tests because of locale
 export LANG=C
+export NIT_TESTING=true
 
 usage()
 {