#!/usr/bin/env python
#
-# Copyright (c) 2001, 2002 Steven Knight
+# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
status = 2,
stdout = "",
stderr = r"""
-SCons error: No SConstruct file found.
-File "\S+", line \d+, in \S+
-""")
+scons: \*\*\* No SConstruct file found.
+""" + TestSCons.file_expr)
-test.match_func = TestCmd.match_exact
+test.match_function = TestCmd.match_exact
wpath = test.workpath()
test.run(arguments = ".",
stdout = test.wrap_stdout(read_str = 'sconstruct %s\n' % wpath,
- build_str = 'scons: "." is up to date.\n'))
+ build_str = "scons: `.' is up to date.\n"))
test.write('Sconstruct', """
test.run(arguments = ".",
stdout = test.wrap_stdout(read_str = 'Sconstruct %s\n' % wpath,
- build_str = 'scons: "." is up to date.\n'))
+ build_str = "scons: `.' is up to date.\n"))
test.write('SConstruct', """
import os
test.run(arguments = ".",
stdout = test.wrap_stdout(read_str = 'SConstruct %s\n' % wpath,
- build_str = 'scons: "." is up to date.\n'))
+ build_str = "scons: `.' is up to date.\n"))
test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: