summaryrefslogtreecommitdiff
path: root/tests/SConscript
AgeCommit message (Collapse)AuthorFilesLines
2011-04-02Nuke the scons build scripts.Daniel Burrows1-158/+0
These never worked out as well as I intended, and all indications were that they would be a maintenance burden...or just bitrot. Fully parallel builds are nice, but my builds are pretty quick on my 8-core box even with the artificial chokepoints that automake induces.
2010-07-10Flesh out the implementation of the download progress display and its tests.Daniel_Burrows@alumni.brown.edu1-0/+2
2010-07-03Move the search input controller and view classes over to generic/.Daniel_Burrows@alumni.brown.edu1-2/+2
As a side effect, this creates a "controllers" directory in the generic tree, and removes the now-empty GTK+-specific controller and view directories. The README files are moved over to the generic locations and tweaked to be correct for their new home.
2010-07-03Move the throttle object to src/generic/util.Daniel_Burrows@alumni.brown.edu1-1/+1
2010-07-03Move the core command-line progress view interface to generic/views.Daniel_Burrows@alumni.brown.edu1-0/+1
2010-07-03Fix up the SConscript files.Daniel_Burrows@alumni.brown.edu1-0/+2
2010-06-30Add a view interface for displaying the download progress and an ↵Daniel_Burrows@alumni.brown.edu1-0/+1
implementation for showing the download progress at the command line and a stub implementation. This is mostly just a streamlining of the apt interface, but putting the code behind a clean view will also make it much more testable.
2010-06-18Extract the declarations of the global pointers to apt structures into a ↵Daniel Burrows1-25/+10
separate file to reduce test dependencies. No reason for tests to pull in half of src/generic/apt just because a module linked into the test happens to reference a global pointer.
2010-06-10Write a test of the command-line search progress object.Daniel Burrows1-0/+2
2010-06-09Write tests of the command-line progress display class.Daniel Burrows1-0/+3
2010-06-07Write tests of the transient-message class.Daniel Burrows1-0/+2
One of the tests fails, and it appears to be a legitimate failure.
2010-06-04Write a "teletype" mock/fake object that allows test code to easily examine ↵Daniel Burrows1-0/+2
the effect of a sequence of outputs on a normal terminal.
2010-06-03Write a mock of the terminal object that automatically canonicalizes the ↵Daniel Burrows1-0/+3
terminal output. The extra logic is to avoid having tests that depend on exactly how the code being tested breaks up its terminal writes.
2010-05-28Transition from log4cxx to the new logging framework.Daniel Burrows1-0/+2
Hopefully this will eliminate some of the random crashes on exit that people were seeing.
2010-05-28Experimentally add support for a suite of tests based on gtest, and convert ↵Daniel Burrows1-3/+18
the logging tests to it. gtest has some nice features for producing extra information in failures that could be handy. Also, it integrates well with gmock; the gmock failures in my Boost tests were sometimes kind of obscure.
2010-05-27Write an initial suite of tests for the new logging code.Daniel Burrows1-0/+2
2010-05-24Start using google-mock to test the search input controller logic.Daniel Burrows1-0/+28
I use google-mock to create a mock implementation of the view, then test that the logic interacts with it as expected. Right now, it doesn't. The ability to do this was part of why I wanted to separate the logic from the view. I haven't added google-mock to configure.ac yet; need to do that later.
2010-05-09Add a first implementation of dynamic-set code to go with the dynamic-list code.Daniel Burrows1-0/+1
I think this is actually the abstraction I want for the toplevel UI; order should be determined by the view, not hacked into the container layer.
2010-05-06Add the dynamic list tests into the SCons test suite list.Daniel Burrows1-0/+1
2010-04-30Add a suite of unit tests for the enumerator class and its implementations.Daniel Burrows1-0/+1
2010-04-25Explicitly distribute the build files in SCons*.Daniel Burrows1-1/+4
This seems to be the least worst option I can see. Since my Dist() builder is outside scons and scons doesn't seem to offer any hooks or listeners, I can't (safely) cause build files to always be added to the distribution list. And anyway, I'm not sure I want to. Better to make the distribution fully explicit.
2010-04-25Start adding support for a 'dist' rule that builds a distributed archive.Daniel Burrows1-3/+9
Before this can work, I need to add all the SConscript files to the archive explicitly, which is yucky.
2010-04-24Use Copy() to ensure that the file cache test inputs end up in the build ↵Daniel Burrows1-2/+6
directory. This is IMO a better idiom than adding a dummy dependency, since it will continue to work even when/if I disable the duplication of the source tree into the build directory.
2010-04-24Add explicit dependencies between the test-running target and the test file ↵Daniel Burrows1-0/+5
caches. I could have just used the version in the source directory, but I like using a copy in case anything goes wrong.
2010-04-24Fix the value of SRCDIR for real.Daniel Burrows1-2/+5
This variable is badly conceived. The test should just expect a variable giving the absolute path to the test data. Instead, it wants a path to the parent of the test data, relative to the dirname of argv[0].
2010-04-24Use the new test builder to make sure the unit tests build properly and get ↵Daniel Burrows1-11/+6
executed.
2010-04-24Add explicit dependencies for the Boost test.Daniel Burrows1-0/+5
2010-04-24Shell-escape the value of SRCDIR so it's really correct.Daniel Burrows1-1/+2
2010-04-24Try to use CString to escape the SRCDIR preprocessor #define.Daniel Burrows1-1/+3
Doesn't actually work since scons doesn't escape command-line arguments, so the shell eats the quotes.
2010-04-24Transitively close the dependencies of the test.Daniel Burrows1-1/+31
It ends up depending on a lot of the source code, but this has some good effects: first, the test won't be rebuilt unless its actual dependencies change; second, the test will be rebuilt when its actual dependencies change; third, it makes it explicit exactly what the tests need for a human reader.
2010-04-24Fix how the source directory is defined.Daniel Burrows1-1/+1
A dict apparently can't be appended, but a tuple (var, value) works.
2010-04-24Directly depend on .o files to eliminate the scons warning.Daniel Burrows1-1/+1
Apparently scons is happy to depend on the output of another environment; the problem was that I was implicitly defining a second build rule for the .o in a new environment.
2010-04-24Start adding extra dependencies into src/ to the test build files.Daniel Burrows1-2/+11
This causes a problem (currently nonfatal but should be fixed), because scons doesn't like that I ask for some .cc files with "different" environments. Need to look into how best to fix this.
2010-04-24Define SRCDIR for the Boost test.Daniel Burrows1-0/+3
2010-04-24Try to build and run unit tests, and only build aptitude by default.Daniel Burrows1-0/+39
TODO: probably should add a UnitTest builder.