Brian Cox
|
2a278ad29b
|
Make 'syslog not supported' a warning vs a fatal error if someone tries to use it on syslog-less platforms; clean up unit & harness tests & handle some per-platform quirks
|
2017-09-09 23:26:45 -07:00 |
Brian Cox
|
041ca7f3b3
|
Tweak a couple of tests that generally fail due to environmental issues (locale configuration, local IP <--> hostname mapping, current username) so they're marked as skipped instead of failed when it looks like a configuration problem.
|
2017-09-08 18:04:35 -07:00 |
Brian Cox
|
e7b00507e9
|
Skip a TWLocale test on Cygwin since it doesn't like the 'C' locale
|
2017-09-08 16:51:49 -07:00 |
Brian Cox
|
b648b2493f
|
Fix various unit tests that didn't test anything, or needed cleanup; disable some cTWLocale methods that were unused outside of their own unit tests.
|
2017-09-08 16:31:36 -07:00 |
Brian Cox
|
078bf28164
|
A few little tweaks for SkyOS unit tests & configure robustitude (i.e. relying on stdint.h (if present) to tell us which intrinsic type is 64 bits)
|
2017-09-07 01:00:58 -07:00 |
Brian Cox
|
a56bae5397
|
Only use /dev/urandom if --enable-urandom configure arg is used, since current impl falls over on HP-UX & Solaris 10 SPARC & possibly elsewhere
|
2017-09-05 19:14:27 -07:00 |
Brian Cox
|
e74d916a09
|
Rename misspelled crytpo_t.cpp -> crypto_t.cpp
|
2017-09-04 15:37:07 -07:00 |
Brian Cox
|
a47236408c
|
Add tests to check MD5 & SHA1 impls against RFC test cases
|
2017-09-04 13:31:44 -07:00 |
Brian Cox
|
25ddcc0ca6
|
Break some big unit tests into smaller ones
|
2017-09-04 11:47:35 -07:00 |
Brian Cox
|
e453a81c87
|
Tweak unit tests that didn't invoke TEST() at all; add operator== to cFCOSpecAttr & cFSPropDisplayer for the sake of unit testing.
|
2017-09-04 01:35:27 -07:00 |
Brian Cox
|
8c73f1cf3b
|
Rework unit test framework (such as it is) to refer to tests by name & not numeric id. Mark tests as skipped if they don't make any TEST assertions or are skipped explicitly
|
2017-09-03 20:28:24 -07:00 |
Brian Cox
|
736a761bff
|
Fix a couple of twtest-only valgrind issues
|
2017-09-01 19:43:05 -07:00 |
Brian Cox
|
5184fe01c4
|
Customize 'make clean' to also remove test data dirs and gcov files
|
2017-08-31 19:51:50 -07:00 |
Brian Cox
|
55020401d9
|
Fix a few simple leaks inside twtest; fix some file permissions that got set wrong in last commit
|
2017-08-25 18:28:09 -07:00 |
Brian Cox
|
b3bcdbbcd9
|
Fix low hanging fruit items from valgrind memcheck results, mostly array deletes
|
2017-08-25 12:36:15 -07:00 |
brc0x1
|
8cec86246f
|
Fix build issues cross compiling for RISC OS (haven't verified we actually work yet, though); fix a couple of build issues left over from recent test-dir changes to twtest
|
2017-08-24 19:20:40 -07:00 |
Brian Cox
|
d0b9b03561
|
Also tweak unit tests that dropped files in working directory to use our test data dir instead
|
2017-08-23 23:54:18 -07:00 |
Brian Cox
|
f5e76827be
|
Robustify symlink reading in cFSPropCalc, & add a unit test for it. Tweak other unit tests to use a test directory we control, rather than dumping stuff in /tmp
|
2017-08-23 23:36:21 -07:00 |
Brian Cox
|
01e25eb493
|
Remove a couple of unused FSServices methods
|
2017-08-19 20:38:57 -07:00 |
Brian Cox
|
4cdb384445
|
gcov revealed that a few unit tests weren't actually being run, so fixing those, & tweak exception handling in other tests to be more uniform (since we catch everything at the test harness level now)
|
2017-08-06 18:55:52 -07:00 |
Brian Cox
|
180bf761e0
|
Buildsys files regenerated with automake 1.15.1, with no exciting new features
|
2017-07-08 22:18:04 -07:00 |
Brian Cox
|
dbc00a2ed4
|
Fix logic error in cFCOPropVector::isExtended(), which only manifests with large prop vectors we currently won't see in the wild. Exposed by intermittently failing test in fcopropvector_t.cpp circa line 132, which now passes reliably on platforms where it used to fail.
|
2017-07-08 19:51:23 -07:00 |
Brian Cox
|
65d97e2892
|
Rework fileutil_t test to not require /etc/hosts; tweak twutil_t test to work properly if run as root
|
2017-07-08 16:29:34 -07:00 |
Brian Cox
|
dae64c48ed
|
Update copyright years
|
2017-04-25 18:31:11 -07:00 |
Brian Cox
|
47c9861baa
|
Clean up various unit test TODOs, including re-enabling some test code that had been ifdef'd out; improve reporting of failures and how many actual tests were run
|
2017-04-19 23:37:35 -07:00 |
Brian Cox
|
5a425591ce
|
Redo hierdatabase & dbdatasource unit tests so they do something useful; add sanity checks to cBlockRecordFile::FindRoomForData and cDbDataSourceIter::SetFCOData, the need for these was exposed by the new tests. Also update debug-only DB Explore mode with a few more commands
|
2017-04-19 20:20:08 -07:00 |
Brian Cox
|
8ba032c424
|
Change uses of _DEBUG and _DEBUG_DB defines to be DEBUG, since that's the only symbol that gets defined by configuring with --enable-debug.
|
2017-04-12 21:44:51 -07:00 |
Brian Cox
|
a1e614d694
|
Remove irritating 'eof:' comments, and some ancient dead code in stringutil.cpp
|
2017-04-11 21:29:32 -07:00 |
Brian Cox
|
65e0a0d664
|
Tweak unit test error reporting slightly
|
2017-03-31 23:08:44 -07:00 |
Brian Cox
|
7b86cdd134
|
Unit test build fix, make sure <typeinfo> is included
|
2017-03-31 15:09:43 -07:00 |
Brian Cox
|
a67d3c3a86
|
Clean up installer (remove unneeded checks, better editor & pager detection & path handling); update twtest to count failures instead of exiting on first one.
|
2017-03-30 22:22:52 -07:00 |
Brian Cox
|
4af1375fb1
|
More unit test cleanup, + fix a warning in msystem le_set()
|
2017-03-27 22:45:55 -07:00 |
Brian Cox
|
7d66656c10
|
Build fix for tests, since you don't always have an ifstream/ofstream constructor that takes a string reference
|
2017-03-27 16:43:00 -07:00 |
Brian Cox
|
2c03fdf878
|
Enable/repair more unit tests, and undo an earlier change to hex_to_char() that was causing test failures
|
2017-03-27 00:50:33 -07:00 |
Brian Cox
|
cdb7310dae
|
Enable & (at least partly) fix charutil, displayencoder, & policyparser tests, which weren't running until now.
|
2017-03-26 20:16:37 -07:00 |
Brian Cox
|
911e051091
|
Fix more warnings, & make TestFCOSpec() do something useful in non-debug builds
|
2017-03-23 23:45:20 -07:00 |
Brian Cox
|
9c38b49839
|
Prefer prefix ++/-- operators where possible, for performance reasons (per CppCheck)
|
2017-03-23 19:30:52 -07:00 |
Brian Cox
|
5c1cfe4702
|
Use unique_ptr instead of auto_ptr where available (and define a macro to pick which one to use); fix a few other remaining warnings.
|
2017-03-22 20:00:08 -07:00 |
Brian Cox
|
ea2170fd20
|
Tweak a memory alignment unit test that doesn't (and should not be expected to) work on HP-UX.
|
2017-03-21 23:36:26 -07:00 |
Brian Cox
|
2b067176ad
|
Fix some clang extended warnings: non-virtual-dtor, shadow, unneeded-internal-declaration
|
2017-03-17 00:04:21 -07:00 |
Brian Cox
|
aaee78c061
|
Tweaks for 'make check': Don't assume location of perl, or existence of /etc/hosts
|
2017-03-16 20:51:12 -07:00 |
Brian Cox
|
900fad8ca4
|
Remove some dead code, including objectpool & Unicode-only utf8 stuff
|
2017-03-15 20:58:49 -07:00 |
Brian Cox
|
1fb5f332e6
|
For clarity, remove a bunch of IS_UNIX ifdefs, since configure.ac always defines IS_UNIX to 1 no matter the OS.
|
2017-03-15 20:31:38 -07:00 |
Brian Cox
|
062523a60e
|
Add a working 'make check' target, which runs both the test suite in src/test-harness, and all the twtest unit tests; update unit test binary to return standard success/fail values, to keep make happy
|
2017-03-14 01:23:23 -07:00 |
brc0x1
|
86baf94ddf
|
Fix man page handling in make install
|
2017-02-20 17:03:24 -08:00 |
Brian Cox
|
f9aa5de896
|
Add ability to optionally *not* resolve uid/gid to name, to accomodate the Linux static binary vs. nsswitch name resolution issue; add RESOLVE_IDS_TO_NAMES config option to control this feature; avoid redundant lstats when turning IDs into names, since the lstat is to fetch the ID we already have; remove a bunch of unused code in UnixFSServices
|
2016-11-24 17:26:02 -08:00 |
Brian Cox
|
78fdac5efc
|
Tweak include paths so we're buildable outside of source tree.
|
2016-06-20 19:49:21 -07:00 |
Brian Cox
|
f41e3e06b6
|
Use the right 'ar' when cross compiling, instead of always wanting to use default system 'ar'. This happened because autoconf doesn't have a builtin AC_PROG_AR macro, so we have to provide our own.
|
2016-06-17 20:33:10 -07:00 |
Brian Cox
|
03622ed0f0
|
Specify headers in makefiles, so 'make dist' knows to include them
|
2016-06-14 01:15:37 -07:00 |
Brian Cox
|
7ad2b52d14
|
Remove UCS2-related dead code, in the name of clarity
|
2016-06-13 20:11:13 -07:00 |