summaryrefslogtreecommitdiff
path: root/test/CC
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-10-14 16:23:52 +0000
committerSteven Knight <knight@baldmt.com>2005-10-14 16:23:52 +0000
commitaf962864b108d8fdd654edaf3c0300404ca07e3e (patch)
tree3a6877e15644a6da25570af9ee7aade000983ad4 /test/CC
parent82c2f16e53cba1a639d568fe8d6780dfe30c56ab (diff)
downloadscons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.gz
Get rid of indentation tabs in the test scripts and have runtest.py invoke them with the python -tt option to keep them out.
Diffstat (limited to 'test/CC')
-rw-r--r--test/CC/CC.py22
-rw-r--r--test/CC/CCFLAGS.py10
-rw-r--r--test/CC/SHCC.py12
-rw-r--r--test/CC/SHCCFLAGS.py4
4 files changed, 24 insertions, 24 deletions
diff --git a/test/CC/CC.py b/test/CC/CC.py
index e7795d32..a790baa0 100644
--- a/test/CC/CC.py
+++ b/test/CC/CC.py
@@ -52,7 +52,7 @@ infile = open(args[0], 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:8] != '/*link*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -72,7 +72,7 @@ infile = open(inf, 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:6] != '/*cc*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -88,7 +88,7 @@ infile = open(args[0], 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:8] != '/*link*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -102,7 +102,7 @@ infile = open(args[0], 'rb')
outfile = open(out, 'wb')
for l in infile.readlines():
if l[:6] != '/*cc*/':
- outfile.write(l)
+ outfile.write(l)
sys.exit(0)
""")
@@ -131,7 +131,7 @@ if os.path.normcase('.c') == os.path.normcase('.C'):
cc = Environment().Dictionary('CC')
env = Environment(LINK = r'%s mylink.py',
CC = r'%s mycc.py',
- CXX = cc)
+ CXX = cc)
env.Program(target = 'test2', source = 'test2.C')
""" % (python, python))
@@ -167,9 +167,9 @@ test.write('foo.c', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.c\n");
+ exit (0);
}
""")
@@ -177,9 +177,9 @@ test.write('bar.c', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.c\n");
+ exit (0);
}
""")
diff --git a/test/CC/CCFLAGS.py b/test/CC/CCFLAGS.py
index 66640104..d05cdef5 100644
--- a/test/CC/CCFLAGS.py
+++ b/test/CC/CCFLAGS.py
@@ -53,17 +53,17 @@ test.write('prog.c', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
+ argv[argc++] = "--";
#ifdef FOO
- printf("prog.c: FOO\n");
+ printf("prog.c: FOO\n");
#endif
#ifdef BAR
- printf("prog.c: BAR\n");
+ printf("prog.c: BAR\n");
#endif
#ifdef BAZ
- printf("prog.c: BAZ\n");
+ printf("prog.c: BAZ\n");
#endif
- exit (0);
+ exit (0);
}
""")
diff --git a/test/CC/SHCC.py b/test/CC/SHCC.py
index 35296c7d..3679a9e4 100644
--- a/test/CC/SHCC.py
+++ b/test/CC/SHCC.py
@@ -53,9 +53,9 @@ test.write('foo.c', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.c\n");
+ exit (0);
}
""")
@@ -63,9 +63,9 @@ test.write('bar.c', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("foo.c\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("foo.c\n");
+ exit (0);
}
""")
diff --git a/test/CC/SHCCFLAGS.py b/test/CC/SHCCFLAGS.py
index 610fcd1b..a830058f 100644
--- a/test/CC/SHCCFLAGS.py
+++ b/test/CC/SHCCFLAGS.py
@@ -83,10 +83,10 @@ void
doIt()
{
#ifdef FOO
- printf("prog.c: FOO\n");
+ printf("prog.c: FOO\n");
#endif
#ifdef BAR
- printf("prog.c: BAR\n");
+ printf("prog.c: BAR\n");
#endif
}
""")