Commit Graph

  • b60dcfa7d6 Merge branch 'dev/next' of https://github.com/Tripwire/tripwire-open-source into dev/next Brian Cox 2017-09-21 13:07:46 -0700
  • 096a96ad55 Platform.h tweak & policy file for MirOS BSD Brian Cox 2017-09-21 13:06:52 -0700
  • 7545beb0e6 Make sure cFile_i is constructed & destructed cleanly; clean up GetSymLinkStr a bit more; improve Debug/Basic & UnixFSServices/GetExecutableFilename unit tests Brian Cox 2017-09-21 01:12:28 -0700
  • a4ae3af444 Fix/implement RISC OS path handling brc0x1 2017-09-18 17:55:17 -0700
  • e18003bb14 AROS path fix Brian Cox 2017-09-13 23:39:50 -0700
  • f67c370f29 Enable some new path unit tests Brian Cox 2017-09-13 23:01:22 -0700
  • 769874d34b Path fixes for FreeDOS/DJGPP Brian Cox 2017-09-13 21:35:56 -0700
  • 4abec97664 Last tweak to dbupdate harness test needed help Brian Cox 2017-09-10 21:01:46 -0700
  • 6cf3936319 Test-harness tweaks for DragonflyBSD, where we expect a few fewer changes (access/modify times). Tweak one test expected values to pass, skip 2 more with notes saying they need refactoring. Brian Cox 2017-09-10 20:29:53 -0700
  • ee8c63b8f9 In inode count test, update the list of platforms that don't do hardlinks Brian Cox 2017-09-10 12:59:21 -0700
  • 541c951715 Fix a typo in readonly test Brian Cox 2017-09-10 01:22:31 -0700
  • 8d8652fe93 More platform tweaks for harness tests, this time TODO-ing out a couple of tests for Hurd since it's expected to get fewer violations Brian Cox 2017-09-10 01:16:17 -0700
  • 5bea3693b4 One more harness test tweak, avoiding access time violations in the readonly test Brian Cox 2017-09-10 00:44:17 -0700
  • 15b7d18104 Couple more test-harness platform tweaks Brian Cox 2017-09-10 00:21:44 -0700
  • 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 Brian Cox 2017-09-09 23:26:45 -0700
  • 9b194b5122 Include OS name in test-harness output Brian Cox 2017-09-09 20:24:17 -0700
  • 6f13e00055 Tweak siggen test-harness test for portability, since a few outlier impls of ps (e.g. Haiku) don't support -ef args Brian Cox 2017-09-08 23:00:36 -0700
  • 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. Brian Cox 2017-09-08 18:04:35 -0700
  • e7b00507e9 Skip a TWLocale test on Cygwin since it doesn't like the 'C' locale Brian Cox 2017-09-08 16:51:49 -0700
  • 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. Brian Cox 2017-09-08 16:31:36 -0700
  • f05b85726e Merge branch 'dev/next' of https://github.com/Tripwire/tripwire-open-source into dev/next Brian Cox 2017-09-08 11:59:59 -0700
  • 2a3d69e8c9 Fixes for Cygwin: Use local swab() impl, and tweak policy update test-harness test path handling -- it was prepending a path variable that's always empty, but we were also using absolute paths so we didn't notice elsewhere, though we were using paths of the form //foo/bar/baz. Leading double slashes are significant on Cygwin since they're used to denote UNC paths, so tests failed there & uncovered this problem Brian Cox 2017-09-08 11:58:19 -0700
  • 140ed7c26c Build fix for AROS (wasn't pulling in errno.h in fsprocalc.cpp, which is now needed for ERANGE symlink check) Brian Cox 2017-09-07 20:42:00 -0700
  • 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) Brian Cox 2017-09-07 01:00:58 -0700
  • 03bca0ebd4 Modify GetSymLinkStr for platforms that return ERANGE when buffer is too small, like HP_UX; tweak field splitting in crc32 test-harness test, for platforms that separate cksum fields with tabs, like Solaris 10 & maybe earlier. Brian Cox 2017-09-06 12:25:52 -0700
  • 159e735ebc Merge branch 'dev/next' of https://github.com/Tripwire/tripwire-open-source into dev/next Brian Cox 2017-09-06 12:11:14 -0700
  • 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 Brian Cox 2017-09-05 19:14:27 -0700
  • 1566771be0 Tweak install.sh slightly so you can optionally run it standalone instead of thru make install, & add a custom install dir param to it. Brian Cox 2017-09-04 17:24:47 -0700
  • e74d916a09 Rename misspelled crytpo_t.cpp -> crypto_t.cpp Brian Cox 2017-09-04 15:37:07 -0700
  • a47236408c Add tests to check MD5 & SHA1 impls against RFC test cases Brian Cox 2017-09-04 13:31:44 -0700
  • 25ddcc0ca6 Break some big unit tests into smaller ones Brian Cox 2017-09-04 11:47:35 -0700
  • e453a81c87 Tweak unit tests that didn't invoke TEST() at all; add operator== to cFCOSpecAttr & cFSPropDisplayer for the sake of unit testing. Brian Cox 2017-09-04 01:35:27 -0700
  • 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 Brian Cox 2017-09-03 20:28:24 -0700
  • 0d21e71407 Skip crc32 test if 'cksum' is not present for comparison (e.g. SkyOS) Brian Cox 2017-09-03 00:12:54 -0700
  • 736a761bff Fix a couple of twtest-only valgrind issues Brian Cox 2017-09-01 19:43:05 -0700
  • 7a262bf1c1 Fix AROS build issue that crept in somehow Brian Cox 2017-09-01 17:13:57 -0700
  • 9d1d1e19d3 Re-add 'compile' script since make dist/distcheck seem to want it; remove it from .gitignore; recreate root Makefile.in with automake 1.15.1 Brian Cox 2017-09-01 14:18:19 -0700
  • ce25569eea Use 0 instead of CHILD_ERROR_NATIVE since the latter only exists in Perl >= 5.14.2, and doesn't seem to have any obvious advantages. Brian Cox 2017-09-01 13:48:57 -0700
  • 0886ea31be Tweak a couple of test-harness tests to exclude variable properties like access time, since tests aren't interested in that behavior. Brian Cox 2017-08-31 21:44:24 -0700
  • 5184fe01c4 Customize 'make clean' to also remove test data dirs and gcov files Brian Cox 2017-08-31 19:51:50 -0700
  • 7fe1e4f79a Detect support for doors & event ports in a proper autoconf way. Brian Cox 2017-08-31 18:50:02 -0700
  • 5a34e6f48c Add a 'targets' make target to list make targets. Also add a 'test' target as an alias of 'check'. Brian Cox 2017-08-29 18:57:59 -0700
  • 02dd677d71 Tweak .gitignore to ignore gcov files; add a convenience script (lcov.sh) to run lcov & package results Brian Cox 2017-08-28 23:01:35 -0700
  • 78b09e081f Add configure options for instrumentation: --enable-coverage & --enable-profiling Brian Cox 2017-08-28 22:28:30 -0700
  • 7310422053 Clean up iCodeConverter singleton on exit Brian Cox 2017-08-28 20:08:38 -0700
  • 8bb3669cf7 Enable SYSLOGREPORTING for test-harness tests, so that syslog code gets exercised in testing. Brian Cox 2017-08-27 23:46:31 -0700
  • d724c07873 Use a static cFSPropDisplayer instead of creating a fresh one each time someone asks. Addresses a valgrind leak that only manifests in interactive db update mode. Brian Cox 2017-08-27 22:58:58 -0700
  • b3b74fd76e Delete cParseRules when we're done with them. I think this is the last real valgrind issue. Brian Cox 2017-08-27 17:22:31 -0700
  • 3481d2622a Fix another leak (via valgrind), this time in cCryptoArchive Brian Cox 2017-08-26 16:10:12 -0700
  • 79933005b7 Switch to rbegin() since std::string::back() is a C++11-ism brc0x1 2017-08-25 08:12:20 -0700
  • 236d67b941 Sort out a valgrind issue w/ handling TEMPDIRECTORY paths. Clean up formatting in twcmdline's FillOutConfigInfo(). Brian Cox 2017-08-26 10:07:27 -0700
  • 92580983ec Remove more leakage in cHashTable & policy parser brc0x1 2017-08-25 04:43:52 -0700
  • 265bc4701e Turn #ifdef YACC_WINDOWS to #if 0 to make sure untested & unused code stays unused. Brian Cox 2017-08-25 21:37:15 -0700
  • dbc48d0326 Merge branch 'dev/next' of https://github.com/Tripwire/tripwire-open-source into dev/next Brian Cox 2017-08-25 19:02:30 -0700
  • f4263cf2b8 Comment out some #line directives in twparser, since they confuse gcov Brian Cox 2017-08-25 19:00:39 -0700
  • 55020401d9 Fix a few simple leaks inside twtest; fix some file permissions that got set wrong in last commit Brian Cox 2017-08-25 18:28:09 -0700
  • b3bcdbbcd9 Fix low hanging fruit items from valgrind memcheck results, mostly array deletes Brian Cox 2017-08-25 12:36:15 -0700
  • 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 brc0x1 2017-08-24 19:20:40 -0700
  • bd3b071e1b ifdef out some unused methods in our HAVAL impl. Brian Cox 2017-08-24 00:57:11 -0700
  • d0b9b03561 Also tweak unit tests that dropped files in working directory to use our test data dir instead Brian Cox 2017-08-23 23:54:18 -0700
  • 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 Brian Cox 2017-08-23 23:36:21 -0700
  • fafa681bce Fix dbupdate secure-mode test, add a case for updating db twice w/ same report, clean up twtools methods a bit more. Brian Cox 2017-08-23 17:58:12 -0700
  • 01e25eb493 Remove a couple of unused FSServices methods Brian Cox 2017-08-19 20:38:57 -0700
  • 97a2d44481 Disable incomplete impl for long property names, but don't remove it in case we want to finish it someday. This ensures that '&unimplemented' is not recognized as a valid property name in policy files. Brian Cox 2017-08-19 20:13:07 -0700
  • 6582fb77fb Remove a bunch of unused methods in cTWUtil Brian Cox 2017-08-19 19:54:35 -0700
  • dc943880de Add more bad policy test cases; split good & bad policies into separate tests Brian Cox 2017-08-17 21:26:51 -0700
  • b4e530b40f Clean up create-policy acceptance test; add a dir for bad policy text files (expected to fail) & add the first one, which is just a zero-byte file. Brian Cox 2017-08-17 00:17:28 -0700
  • 72f042644b Add test-harness test for policy creation; among other things it tries the policy files in src/parser/testfiles, plus some other test cases. Updated one of the test files so user doesn't need to hand edit it before use. Brian Cox 2017-08-09 23:55:30 -0700
  • 85fcbb1371 Add IC test cases for named severity, ignored props, & email reporting Brian Cox 2017-08-09 19:39:03 -0700
  • 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) Brian Cox 2017-08-06 18:55:52 -0700
  • f02e2c10b5 Add new test-harness tests to exercise various IC mode options, plus tripwire help & version modes Brian Cox 2017-08-05 18:05:21 -0700
  • db60f15f23 Fix misspelling of 'UNKNOWN' in a constant name; add a missing bracket in twprint print-db mode help Brian Cox 2017-08-04 23:14:54 -0700
  • 121ccea9b5 Add a siggen test-harness test to cover various options that aren't covered elsewhere. Like the twadmin & twprint tests added in the last commit, this was motivated by gcov results showing that a 'make check' was missing a bunch of code paths, particularly around command line args and error handling. Brian Cox 2017-08-04 00:16:43 -0700
  • a6c796a501 Add new twadmin & twprint test-harness tests, to exercise modes, options & errors that aren't covered elsewhere. Update twtools module with additional methods these new tests need. Brian Cox 2017-08-03 23:35:53 -0700
  • d8e323e186 Rename 2038 epoch check to something more accurate & less alarming than 'TimeBombExploded' (sheesh), and only bother with it if time_t is 32 bits. Brian Cox 2017-07-31 18:49:36 -0700
  • 24dba1b374 Remove or disable a little dead code uncovered by gcov Brian Cox 2017-07-28 20:15:50 -0700
  • 148a5e38d4 A bit more urandom cleanup Brian Cox 2017-07-19 23:02:13 -0700
  • 5757a53d61 Simplify urandom usage, & keep device open between uses Brian Cox 2017-07-17 22:35:17 -0700
  • 60fede7678 Tweak device random stuff for Linux Brian Cox 2017-07-15 22:59:50 -0700
  • eec812814a Use RNG device(s) if available (experimental) Brian Cox 2017-07-15 18:10:42 -0700
  • b26422fa07 If an exception throws out of an IC, catch it & add to the report file instead of just falling over. Brian Cox 2017-07-09 10:10:16 -0700
  • 2fc9faaee1 remove a backup file I hadn't meant to commit Brian Cox 2017-07-09 00:11:05 -0700
  • 180bf761e0 Buildsys files regenerated with automake 1.15.1, with no exciting new features Brian Cox 2017-07-08 22:18:04 -0700
  • 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. Brian Cox 2017-07-08 19:51:23 -0700
  • def126e190 aclocal.m4 got regenerated by automake 1.15.1, though it actually only updated the version number & copyright year Brian Cox 2017-07-08 19:49:22 -0700
  • ad9a79a84a Add '.' to test-harness @INC path, since latest Perl 5 apparently now excludes it by default. Brian Cox 2017-07-08 19:47:49 -0700
  • 65d97e2892 Rework fileutil_t test to not require /etc/hosts; tweak twutil_t test to work properly if run as root Brian Cox 2017-07-08 16:29:34 -0700
  • 122010acc2 In examine-encryption mode, say 'Unknown' & exit w/ nonzero value if can't find a keyfile that goes with the file being examined Brian Cox 2017-07-08 15:18:58 -0700
  • 4176c1db12 Add a new test-harness test to exercise twadmin change-passphrases mode Brian Cox 2017-06-28 20:05:52 -0700
  • 73a8f0e59b Add a test-harness that does a happy path thru the twadmin file crypto modes. Brian Cox 2017-06-25 14:48:56 -0700
  • 60b24b0201 Add a test-harness test for policy updates, & tidy up some existing test code Brian Cox 2017-06-24 10:57:18 -0700
  • 1ffe02226b Bump version to 2.4.3.6 Brian Cox 2017-06-22 17:45:41 -0700
  • 54b3b6a2c2 Fix a few more copyright years Brian Cox 2017-04-25 18:52:26 -0700
  • dae64c48ed Update copyright years Brian Cox 2017-04-25 18:31:11 -0700
  • 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. Brian Cox 2017-04-24 22:44:03 -0700
  • 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. Brian Cox 2017-04-23 22:52:32 -0700
  • 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 Brian Cox 2017-04-19 23:37:35 -0700
  • 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 Brian Cox 2017-04-19 20:20:08 -0700
  • fdb25ca903 Define NDEBUG for non-debug builds Brian Cox 2017-04-12 22:42:49 -0700
  • 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. Brian Cox 2017-04-12 21:44:51 -0700