1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
|
Skip tests that fail for various reasons.
Fails in chroot:
+ acceptance/01_vars/02_functions/network/008.cf
+ acceptance/10_files/templating/timed/expired_edit_line_locks.cf
+ unit/buffer_test
+ unit/enterprise_extension_test
+ unit/mon_processes_test
+ load/run_last_seen_threaded_load
Fails on sparc:
+ unit/mon_cpu_test
Fails on arm64 and s390x:
+ unit/string_lib_test (in particuilar: test_string_to_long_errors)
Fails during reproducibility testing on amd64:
+ unit/rlist_test
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -21,4 +21,4 @@
# (COSL) may apply to this file if you as a licensee so wish it. See
# included file COSL.txt.
#
-SUBDIRS = unit load acceptance static-check valgrind-check
+SUBDIRS = unit static-check valgrind-check
--- a/tests/acceptance/01_vars/02_functions/network/008.cf
+++ /dev/null
@@ -1,66 +0,0 @@
-#######################################################
-#
-# Test host2ip()
-#
-#######################################################
-
-body common control
-{
- inputs => { "../../../default.cf.sub" };
- bundlesequence => { default("$(this.promise_filename)") };
- version => "1.0";
-}
-
-#######################################################
-
-bundle agent init
-{
- vars:
- "dummy" string => "dummy";
-}
-
-#######################################################
-
-bundle agent test
-{
-
- vars:
- # Neither of these are likely to change...
- "localhost" string => host2ip("localhost");
- "a" string => host2ip("a.root-servers.net");
-}
-
-#######################################################
-
-bundle agent check
-{
- vars:
- "localhost" string => "127.0.0.1";
- "localhost_6" string => "::1";
- "a" string => "198.41.0.4";
- "a_6" string => "2001:503:ba3e::2:30";
-
- classes:
- "ok_a" or => {
- strcmp("$(test.a)", "$(a)"),
- strcmp("$(test.a)", "$(a_6)"),
- };
- "ok_localhost" or => {
- strcmp("$(test.localhost)", "$(localhost)"),
- strcmp("$(test.localhost)", "$(localhost_6)"),
- };
- "ok" and => {
- "ok_a",
- "ok_localhost",
- };
-
- reports:
- DEBUG::
- "Expected $(test.localhost) == $(localhost)";
- "Expected $(test.a) == ( $(a) or $(a_6) )";
- ok::
- "$(this.promise_filename) Pass";
- !ok::
- "$(this.promise_filename) FAIL";
-}
-
--- a/tests/acceptance/10_files/templating/timed/expired_edit_line_locks.cf
+++ /dev/null
@@ -1,44 +0,0 @@
-# Check whether file promises have a shorter expiry time than edit_line promises
-# resulting from templates. This will create an empty file because the file is
-# opened for editing, but all the edit_line promises have expired.
-
-body common control
-{
- inputs => { "../../../dcs.cf.sub", "../../../plucked.cf.sub" };
- bundlesequence => { default($(this.promise_filename)) };
-}
-
-bundle agent test
-{
-
- commands:
- # Note, no -K, we are testing locks.
- "$(sys.cf_agent) -v -D AUTO,DEBUG -f $(this.promise_filename).sub"
- contain => in_shell;
-}
-
-bundle agent check
-{
- methods:
- test_pass_1::
- "any" usebundle => dcs_wait($(this.promise_filename), 70);
-
- vars:
- test_pass_2::
- "content_edit_line" string => readfile("$(G.testfile).edit_line", 10000);
- "content_cftemplate" string => readfile("$(G.testfile).cftemplate", 10000);
- "content_mustache" string => readfile("$(G.testfile).mustache", 10000);
-
- classes:
- test_pass_2::
- "ok_edit_line" expression => strcmp($(content_edit_line), "text"),
- scope => "namespace";
- "ok_cftemplate" expression => strcmp($(content_cftemplate), "text"),
- scope => "namespace";
- "ok_mustache" expression => strcmp($(content_mustache), "text"),
- scope => "namespace";
-
- methods:
- test_pass_2::
- "any" usebundle => dcs_passif("ok_edit_line.ok_cftemplate.ok_mustache", $(this.promise_filename));
-}
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -103,7 +103,6 @@ check_PROGRAMS = \
assoc_test \
getopt_test \
item_test \
- rlist_test \
domainname_test \
set_domainname_test \
evalfunction_test \
@@ -144,9 +143,7 @@ check_PROGRAMS = \
variable_test \
verify_databases_test \
protocol_test \
- mon_cpu_test \
mon_load_test \
- mon_processes_test \
mustache_test \
class_test \
key_test \
@@ -212,11 +209,9 @@ TESTS_ENVIRONMENT = DYLD_FORCE_FLAT_NAME
conversion_test_SOURCES = conversion_test.c ../../libpromises/conversion.c
if !BUILTIN_EXTENSIONS
-check_PROGRAMS += enterprise_extension_test
enterprise_extension_test_SOURCES = enterprise_extension_test.c
-check_LTLIBRARIES += cfengine-enterprise.la
cfengine_enterprise_la_SOURCES = enterprise_extension_test_lib.c
cfengine_enterprise_la_LDFLAGS = $(AM_LDFLAGS) \
-avoid-version -module -shared -export-dynamic -rpath /
--- a/tests/load/Makefile.am
+++ b/tests/load/Makefile.am
@@ -39,14 +39,12 @@ AM_CPPFLAGS = $(CORE_CPPFLAGS) \
-I../../libpromises
EXTRA_DIST = \
- run_db_load.sh \
- run_lastseen_threaded_load.sh
+ run_db_load.sh
TESTS = \
- run_db_load.sh \
- run_lastseen_threaded_load.sh
+ run_db_load.sh
-check_PROGRAMS = db_load lastseen_load lastseen_threaded_load
+check_PROGRAMS = db_load lastseen_load
db_load_SOURCES = db_load.c
--- a/libntech/tests/unit/Makefile.am
+++ b/libntech/tests/unit/Makefile.am
@@ -89,7 +89,6 @@ check_PROGRAMS = \
sequence_test \
json_test \
misc_lib_test \
- string_lib_test \
thread_test \
file_lib_test \
file_lock_test \
@@ -98,7 +97,6 @@ check_PROGRAMS = \
logging_timestamp_test \
refcount_test \
list_test \
- buffer_test \
ipaddress_test \
rb-tree-test \
queue_test \
|