diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-24 22:36:07 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-24 22:36:07 (GMT) |
commit | 6dd3fd8b838d18d65edd6e7adabf3a363437f8a9 (patch) | |
tree | 636743a257afd12512616d2aab449ad06215dfd6 /test | |
parent | 203e9a690d471e53c88e6fe577188593c98bd9ef (diff) | |
download | SCons-6dd3fd8b838d18d65edd6e7adabf3a363437f8a9.zip SCons-6dd3fd8b838d18d65edd6e7adabf3a363437f8a9.tar.gz SCons-6dd3fd8b838d18d65edd6e7adabf3a363437f8a9.tar.bz2 |
Moved fixture directory under #test.
Diffstat (limited to 'test')
-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 0000000..7c03f00 --- /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 0000000..e69de29 --- /dev/null +++ b/test/fixture/sconstest.skip diff --git a/test/fixture/wrapper.py b/test/fixture/wrapper.py new file mode 100644 index 0000000..f02ea03 --- /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:])) |