Commit Graph

31 Commits

Author SHA1 Message Date
Brian Cox 4abec97664 Last tweak to dbupdate harness test needed help 2017-09-10 21:01:46 -07:00
Brian Cox 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. 2017-09-10 20:29:53 -07:00
Brian Cox ee8c63b8f9 In inode count test, update the list of platforms that don't do hardlinks 2017-09-10 12:59:21 -07:00
Brian Cox 541c951715 Fix a typo in readonly test 2017-09-10 01:22:31 -07:00
Brian Cox 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 2017-09-10 01:16:17 -07:00
Brian Cox 5bea3693b4 One more harness test tweak, avoiding access time violations in the readonly test 2017-09-10 00:44:17 -07:00
Brian Cox 15b7d18104 Couple more test-harness platform tweaks 2017-09-10 00:21:44 -07:00
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 9b194b5122 Include OS name in test-harness output 2017-09-09 20:24:17 -07:00
Brian Cox 6f13e00055 Tweak siggen test-harness test for portability, since a few outlier impls of ps (e.g. Haiku) don't support -ef args 2017-09-08 23:00:36 -07:00
Brian Cox 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 2017-09-08 11:58:19 -07:00
Brian Cox 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. 2017-09-06 12:25:52 -07:00
Brian Cox 0d21e71407 Skip crc32 test if 'cksum' is not present for comparison (e.g. SkyOS) 2017-09-03 00:12:54 -07:00
Brian Cox 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. 2017-09-01 13:48:57 -07:00
Brian Cox 0886ea31be Tweak a couple of test-harness tests to exclude variable properties like access time, since tests aren't interested in that behavior. 2017-08-31 21:44:24 -07:00
Brian Cox 8bb3669cf7 Enable SYSLOGREPORTING for test-harness tests, so that syslog code gets exercised in testing. 2017-08-27 23:46:31 -07:00
Brian Cox fafa681bce Fix dbupdate secure-mode test, add a case for updating db twice w/ same report, clean up twtools methods a bit more. 2017-08-23 17:58:12 -07:00
Brian Cox dc943880de Add more bad policy test cases; split good & bad policies into separate tests 2017-08-17 21:26:51 -07:00
Brian Cox 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. 2017-08-17 00:17:28 -07:00
Brian Cox 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. 2017-08-09 23:55:30 -07:00
Brian Cox 85fcbb1371 Add IC test cases for named severity, ignored props, & email reporting 2017-08-09 19:39:03 -07:00
Brian Cox f02e2c10b5 Add new test-harness tests to exercise various IC mode options, plus tripwire help & version modes 2017-08-05 18:05:21 -07:00
Brian Cox 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. 2017-08-04 00:16:43 -07:00
Brian Cox 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. 2017-08-03 23:35:53 -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 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 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
Ken Westin c8dc58df50 Open Source Tripwire 2.4.2.2
Initial commit of code from Sourceforge repository.
2015-05-03 22:26:18 -07:00