diff options
author | Steven Knight <knight@baldmt.com> | 2005-10-14 16:23:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-10-14 16:23:52 (GMT) |
commit | af962864b108d8fdd654edaf3c0300404ca07e3e (patch) | |
tree | 3a6877e15644a6da25570af9ee7aade000983ad4 /test/CC | |
parent | 82c2f16e53cba1a639d568fe8d6780dfe30c56ab (diff) | |
download | SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.zip SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.gz SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.bz2 |
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.py | 22 | ||||
-rw-r--r-- | test/CC/CCFLAGS.py | 10 | ||||
-rw-r--r-- | test/CC/SHCC.py | 12 | ||||
-rw-r--r-- | test/CC/SHCCFLAGS.py | 4 |
4 files changed, 24 insertions, 24 deletions
diff --git a/test/CC/CC.py b/test/CC/CC.py index e7795d3..a790baa 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 6664010..d05cdef 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 35296c7..3679a9e 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 610fcd1..a830058 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 } """) |