• introduce a virtual TARGET_OS=Android that just sets a check category

and switches to the TARGET_OS=Linux
• introduce android as regression test suite category
• add an android specific standard alias
• clean up redundant ‘-o sh’ arg in a few checks
This commit is contained in:
tg
2011-03-16 20:26:36 +00:00
parent 750ad16f3d
commit 79c6d6043e
4 changed files with 87 additions and 13 deletions

7
main.c
View File

@ -33,7 +33,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.181 2011/03/13 16:03:52 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.182 2011/03/16 20:26:35 tg Exp $");
extern char **environ;
@ -70,7 +70,10 @@ static const char *initcoms[] = {
/* not "alias -t --": hash -r needs to work */
"hash=alias -t",
"type=whence -v",
#if !defined(ANDROID) && !defined(MKSH_UNEMPLOYED)
#if defined(ANDROID)
/* evil hack */
"lsmod='cat /proc/modules'",
#elif !defined(MKSH_UNEMPLOYED)
/* not in Android for political reasons */
/* not in ARGE mksh due to no job control */
"stop=kill -STOP",