<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/scons-git.git/test/AS, branch master</title>
<subtitle>github.com: SCons/scons.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/'/>
<entry>
<title>Massage test fixtures a bit</title>
<updated>2022-01-17T19:46:23+00:00</updated>
<author>
<name>Mats Wichmann</name>
<email>mats@linux.com</email>
</author>
<published>2022-01-16T21:15:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=b2d5bd79c01af8f51ab41a3d7b7a4b996d1944f8'/>
<id>b2d5bd79c01af8f51ab41a3d7b7a4b996d1944f8</id>
<content type='text'>
To avoid double loops, a couple now use fileinput module.

CC and CXX tests switch to using general mylink.py fixture instead of
locally defined linker script.  This did mean that the marker for the
mock linker that the script removes had to be harmonized as #link - some
were using /*link*/.

Could not switch CC/CXX to use the general mycompile.py mock compiler
due to difference in intent: mycompile.py is intended to plug in as a
*COM variable, which means the whole cmdline is in the caller's control.
mycc.py is intended to plug in as CC and mycxx.py as CXX, which means
standard os-dependent construction vars will be passed via the default
CCCOM and CXXCOM and have to be handled.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To avoid double loops, a couple now use fileinput module.

CC and CXX tests switch to using general mylink.py fixture instead of
locally defined linker script.  This did mean that the marker for the
mock linker that the script removes had to be harmonized as #link - some
were using /*link*/.

Could not switch CC/CXX to use the general mycompile.py mock compiler
due to difference in intent: mycompile.py is intended to plug in as a
*COM variable, which means the whole cmdline is in the caller's control.
mycc.py is intended to plug in as CC and mycxx.py as CXX, which means
standard os-dependent construction vars will be passed via the default
CCCOM and CXXCOM and have to be handled.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Run autoflake on code</title>
<updated>2020-09-21T16:39:39+00:00</updated>
<author>
<name>Mats Wichmann</name>
<email>mats@linux.com</email>
</author>
<published>2020-09-21T14:21:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=22c489260a659971aa6cea88f1024824fe31152d'/>
<id>22c489260a659971aa6cea88f1024824fe31152d</id>
<content type='text'>
Eliminate unneeded imports, and a few unneeded statements -
usually "pass" where it is not syntactically needed.

A couple of import try blocks were eliminated or changed
when they're "cannot happen" due to current floor Python version.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Eliminate unneeded imports, and a few unneeded statements -
usually "pass" where it is not syntactically needed.

A couple of import try blocks were eliminated or changed
when they're "cannot happen" due to current floor Python version.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix testing subdir usage</title>
<updated>2020-06-19T18:45:48+00:00</updated>
<author>
<name>Mats Wichmann</name>
<email>mats@linux.com</email>
</author>
<published>2020-06-18T00:49:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=fb051bdc215244d352c2067d93d30ea64200e71f'/>
<id>fb051bdc215244d352c2067d93d30ea64200e71f</id>
<content type='text'>
Various tests called subdir several times with the same directory,
which is pointless.  In previous code, this emitted a message
though it did not fail.  Stop doing that.

The dir_fixture() method did some convoluted things to make sure
the directories to write to exist, change this around to simplify.
The subdir() method already combines the testdir, so dir_fixture
doesn't need to.  Also handle more cleanly the case of the target
directory being an absolute path, which seems to have been intended,
but would not work.

Also clean up file_fixture() along the same principles.

Change the subdir() method to not need to be given an ordered
list of directories; instead call os.makedirs on each so
intermediate steps are made automatically.  Along the way,
the print about making a directory that already existed vanishes.

Tests which did os.path.join on directory pieces when calling
file_fixture no longer do so, since file_fixture (and dir_fixture)
do joining on an arg which is a list of paths like many other scons
functions.

The testing doc was updated to fix some wording and reflect
the above changes.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Various tests called subdir several times with the same directory,
which is pointless.  In previous code, this emitted a message
though it did not fail.  Stop doing that.

The dir_fixture() method did some convoluted things to make sure
the directories to write to exist, change this around to simplify.
The subdir() method already combines the testdir, so dir_fixture
doesn't need to.  Also handle more cleanly the case of the target
directory being an absolute path, which seems to have been intended,
but would not work.

Also clean up file_fixture() along the same principles.

Change the subdir() method to not need to be given an ordered
list of directories; instead call os.makedirs on each so
intermediate steps are made automatically.  Along the way,
the print about making a directory that already existed vanishes.

Tests which did os.path.join on directory pieces when calling
file_fixture no longer do so, since file_fixture (and dir_fixture)
do joining on an arg which is a list of paths like many other scons
functions.

The testing doc was updated to fix some wording and reflect
the above changes.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop calling os.system in tests.</title>
<updated>2020-02-07T23:39:37+00:00</updated>
<author>
<name>Mats Wichmann</name>
<email>mats@linux.com</email>
</author>
<published>2020-02-07T18:52:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=e8e8d71df80b9b690ef9f2d5b83378f23677e30f'/>
<id>e8e8d71df80b9b690ef9f2d5b83378f23677e30f</id>
<content type='text'>
This converts the remaining tests that called os.system
themselves to use subprocess instead.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This converts the remaining tests that called os.system
themselves to use subprocess instead.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PR #3345] fix more PY3.8 fails</title>
<updated>2019-04-26T19:11:59+00:00</updated>
<author>
<name>Mats Wichmann</name>
<email>mats@linux.com</email>
</author>
<published>2019-04-26T17:10:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=15326cf04732bbcc5ef62c5452349a4bd029b70e'/>
<id>15326cf04732bbcc5ef62c5452349a4bd029b70e</id>
<content type='text'>
File closes in msvs tool
Context manager in rpm tool
Dummy compiler, assembler scripts can be called in unexpected
  ways (namely by gcc tool init), which passes --version flag.
  don't take exception on the getopt call.
Try again to undo my breakage of _subproc, which was failing on Win+PY27

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
File closes in msvs tool
Context manager in rpm tool
Dummy compiler, assembler scripts can be called in unexpected
  ways (namely by gcc tool init), which passes --version flag.
  don't take exception on the getopt call.
Try again to undo my breakage of _subproc, which was failing on Win+PY27

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PY 3.8] test fixes for file closings, rawstrings</title>
<updated>2019-04-25T15:37:04+00:00</updated>
<author>
<name>Mats Wichmann</name>
<email>mats@linux.com</email>
</author>
<published>2019-03-31T13:01:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=f61d3bcd112285644c1a6ce253b267ef690a7e06'/>
<id>f61d3bcd112285644c1a6ce253b267ef690a7e06</id>
<content type='text'>
On a linux host (missing some things that may be on the Travis CI
setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On a linux host (missing some things that may be on the Travis CI
setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages.

Signed-off-by: Mats Wichmann &lt;mats@linux.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bytes-&gt;string decoding issue as subprocess returned stdout is bytes in py3</title>
<updated>2018-08-20T14:43:39+00:00</updated>
<author>
<name>William Deegan</name>
<email>bill@baddogconsulting.com</email>
</author>
<published>2018-08-20T14:43:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=6719b7292b7bd42d9e8e62391134a2e3d10001bf'/>
<id>6719b7292b7bd42d9e8e62391134a2e3d10001bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test/AS/nasm.py as it previously would only run with nasm version 0.98</title>
<updated>2018-08-20T01:01:34+00:00</updated>
<author>
<name>William Deegan</name>
<email>bill@baddogconsulting.com</email>
</author>
<published>2018-08-20T01:01:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=9968415b4bbb46ab95023077844590b962e1ffcf'/>
<id>9968415b4bbb46ab95023077844590b962e1ffcf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>When iterating over dict.items(), we do not need a new list.</title>
<updated>2017-03-12T02:46:09+00:00</updated>
<author>
<name>Craig Rodrigues</name>
<email>rodrigc@FreeBSD.org</email>
</author>
<published>2017-03-12T02:46:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=056622b43309af38e4b6dcbbdcdd0e7b9b176a0d'/>
<id>056622b43309af38e4b6dcbbdcdd0e7b9b176a0d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Additional fixture cleanup for test/AS directory.</title>
<updated>2017-03-01T01:42:59+00:00</updated>
<author>
<name>William Blevins</name>
<email>wblevins001@gmail.com</email>
</author>
<published>2017-03-01T01:42:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/scons-git.git/commit/?id=883c36995a2dc7d1b3c49e04b00aaf7af1dde4cd'/>
<id>883c36995a2dc7d1b3c49e04b00aaf7af1dde4cd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
