nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad8537
)
tests.sh: adds env var to notify tested programs of automated tests
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 20 Mar 2013 15:29:13 +0000
(11:29 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/tests/tests.sh
b/tests/tests.sh
index
8fcc039
..
2ed6906
100755
(executable)
--- 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()
{