diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-24 18:36:07 -0400 |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-24 18:36:07 -0400 |
commit | fd8260b1ea1ec158bcabc8030d3a47eadf7c1255 (patch) | |
tree | 636743a257afd12512616d2aab449ad06215dfd6 /test/fixture | |
parent | 113f84743fd140779ca30260a43ec038e1ee6cc4 (diff) | |
download | scons-fd8260b1ea1ec158bcabc8030d3a47eadf7c1255.tar.gz |
Moved fixture directory under #test.
Diffstat (limited to 'test/fixture')
-rw-r--r-- | test/fixture/mylink.py | 31 | ||||
-rw-r--r-- | test/fixture/sconstest.skip | 0 | ||||
-rw-r--r-- | test/fixture/wrapper.py | 6 |
3 files changed, 37 insertions, 0 deletions
diff --git a/test/fixture/mylink.py b/test/fixture/mylink.py new file mode 100644 index 00000000..7c03f007 --- /dev/null +++ b/test/fixture/mylink.py @@ -0,0 +1,31 @@ +import sys + +if sys.platform == 'win32': + args = sys.argv[1:] + while args: + a = args[0] + if a == '-o': + out = args[1] + args = args[2:] + continue + if not a[0] in '/-': + break + args = args[1:] + if a[:5].lower() == '/out:': out = a[5:] + infile = open(args[0], 'rb') + outfile = open(out, 'wb') + for l in infile.readlines(): + if l[:5] != b'#link': + outfile.write(l) + sys.exit(0) +else: + import getopt + opts, args = getopt.getopt(sys.argv[1:], 'o:') + for opt, arg in opts: + if opt == '-o': out = arg + infile = open(args[0], 'rb') + outfile = open(out, 'wb') + for l in infile.readlines(): + if l[:5] != b'#link': + outfile.write(l) + sys.exit(0) diff --git a/test/fixture/sconstest.skip b/test/fixture/sconstest.skip new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/fixture/sconstest.skip diff --git a/test/fixture/wrapper.py b/test/fixture/wrapper.py new file mode 100644 index 00000000..f02ea03d --- /dev/null +++ b/test/fixture/wrapper.py @@ -0,0 +1,6 @@ +import os +import sys +if '--version' not in sys.argv and '-dumpversion' not in sys.argv: + path = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'wrapper.out') + open(path, 'wb').write(b"wrapper.py\n") +os.system(" ".join(sys.argv[1:])) |