@@ -0,0 +1,1002 @@
+#!/usr/bin/env python%0A%0A__revision__ = %22test/option-n.py __REVISION__ __DATE__ __DEVELOPER__%22%0A%0Aimport TestCmd%0Aimport os.path%0Aimport string%0Aimport sys%0A%0Atest = TestCmd.TestCmd(program = 'scons.py',%0A                       workdir = '',%0A                       interpreter = 'python')%0A%0Atest.write('build.py', r%22%22%22%0Aimport sys%0Afile = open(sys.argv%5B1%5D, 'w')%0Afile.write(%22build.py: %25s%5Cn%22 %25 sys.argv%5B1%5D)%0Afile.close()%0A%22%22%22)%0A%0Atest.write('SConstruct', %22%22%22%0AMyBuild = Builder(name = %22MyBuild%22,%0A%09%09  action = %22python build.py %25(target)s%22)%0Aenv = Environment(BUILDERS = %5BMyBuild%5D)%0Aenv.MyBuild(target = '-f1.out', source = 'f1.in')%0Aenv.MyBuild(target = '-f2.out', source = 'f2.in')%0A%22%22%22)%0A%0Aexpect = %22python build.py -f1.out%5Cnpython build.py -f2.out%5Cn%22%0A%0Atest.run(chdir = '.', arguments = '-- -f1.out -f2.out')%0A%0Atest.fail_test(test.stdout() != expect)%0Atest.fail_test(test.stderr() != %22%22)%0Atest.fail_test(not os.path.exists(test.workpath('-f1.out')))%0Atest.fail_test(not os.path.exists(test.workpath('-f2.out')))%0A%0Atest.pass_test()%0A%0A

Add a test for -- terminating option processing.