Commit Graph

239 Commits

Author SHA1 Message Date
Brian Cox 60fede7678 Tweak device random stuff for Linux 2017-07-15 22:59:50 -07:00
Brian Cox eec812814a Use RNG device(s) if available (experimental) 2017-07-15 18:10:42 -07:00
Brian Cox b26422fa07 If an exception throws out of an IC, catch it & add to the report file instead of just falling over. 2017-07-09 10:10:16 -07:00
Brian Cox 2fc9faaee1 remove a backup file I hadn't meant to commit 2017-07-09 00:11:05 -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 def126e190 aclocal.m4 got regenerated by automake 1.15.1, though it actually only updated the version number & copyright year 2017-07-08 19:49:22 -07:00
Brian Cox ad9a79a84a Add '.' to test-harness @INC path, since latest Perl 5 apparently now excludes it by default. 2017-07-08 19:47:49 -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 122010acc2 In examine-encryption mode, say 'Unknown' & exit w/ nonzero value if can't find a keyfile that goes with the file being examined 2017-07-08 15:18:58 -07:00
Brian Cox 4176c1db12 Add a new test-harness test to exercise twadmin change-passphrases mode 2017-06-28 20:05:52 -07:00
Brian Cox 73a8f0e59b Add a test-harness that does a happy path thru the twadmin file crypto modes. 2017-06-25 14:48:56 -07:00
Brian Cox 60b24b0201 Add a test-harness test for policy updates, & tidy up some existing test code 2017-06-24 10:57:18 -07:00
Brian Cox 1ffe02226b Bump version to 2.4.3.6 2017-06-22 17:45:41 -07:00
Brian Cox 54b3b6a2c2 Fix a few more copyright years 2017-04-25 18:52:26 -07:00
Brian Cox dae64c48ed Update copyright years 2017-04-25 18:31:11 -07:00
Brian Cox b1f0ed4b71 Add an email reporting test, which runs tripwire --test mode & verifies the required mail header fields look right. This test only uses the sendmail (pipe) mailmethod, since I'm not sure how to automate SMTP testing in our Perl framework. 2017-04-24 22:44:03 -07:00
Brian Cox cdfb2096c5 Fixes for the Perl acceptance test suite: Enhance reporting to show total/pass/fail/skip tests, fix DB Update tests that were failing silently, fix 'hash check' tests that were passing incorrectly even if md5sum wasn't present, add a sha1 hash test. 2017-04-23 22:52:32 -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 fdb25ca903 Define NDEBUG for non-debug builds 2017-04-12 22:42:49 -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 e653e83058 Expanded exception handling for file operations during a check, plus some refactoring & cleanup 2017-04-11 21:23:25 -07:00
Brian Cox 7af2781a19 Merge pull request #23 from Tripwire/dev/2435
Open Source Tripwire 2.4.3.5
2017-04-02 00:18:57 -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 a0d04d89ad Merge branch 'dev/2435' of https://github.com/Tripwire/tripwire-open-source into dev/2435 2017-03-31 14:34:10 -07:00
Brian Cox 65625c6d0e Tweak message about documentation location at end of install, so it points somewhere real vs. an empty string 2017-03-31 00:02:14 -07:00
Brian Cox 87750882e4 Update Changelog & fix a hyphen in ReadMe 2017-03-30 23:05:37 -07:00
Brian Cox 2df8802a71 Update readme file 2017-03-30 22:52:03 -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 9e1b078aac Fix setting of IS_xxx OS macros for various platforms 2017-03-29 00:13:22 -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 ffd6dd8720 Merge branch 'dev/2435' of https://github.com/Tripwire/tripwire-open-source into dev/2435 2017-03-27 18:49:17 -07:00
Brian Cox f549b069af Remove installer check for tar since installer doesn't actually use it; remove some cleanup meant for an ancient patch lost in the mists of time 2017-03-27 18:49:07 -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 be0b374cad Tweak le_set() for clarity in msystem.cpp 2017-03-26 00:28:04 -07:00
Brian Cox c931a13ecd Disable unused tss::mbsdec() 2017-03-26 00:06:09 -07:00
Brian Cox da8748b6f2 fix file mode printing 2017-03-25 23:41:37 -07:00
Brian Cox 76868c5ccc Resolve assorted GCC 7 warnings 2017-03-25 19:40:54 -07:00
Brian Cox e04b97132b Ok, actually don't use strl* string functions since they're a BSD-ism & Linux doesn't have them. 2017-03-25 16:02:51 -07:00
Brian Cox 7ce1df0a04 Remove the few remaining exception specifications, since they're deprecated in C++11 & cause warnings in GCC 7 2017-03-25 15:31:47 -07:00
Brian Cox 8cdca39103 Prefer strl* string functions over strn* ones 2017-03-25 15:06:22 -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 4cb15a741a Remove 'util_EatAllSpaces' method, which did shady things with iterators and didn't even eat all whitespace 2017-03-22 00:11:20 -07:00