* Tests
*/
-static int
+static gboolean
test_validate_regexp(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_match(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_validate_glob(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_glob_to_regex(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_match_glob(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_match_tar(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_make_exact_host_expression(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_match_host(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_make_exact_disk_expression(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_match_disk(void)
{
gboolean ok = TRUE;
{ "\\\\\\\\windows\\\\share", "\\\\windows\\share", TRUE },
/* other expressions */
- { "^local", "/local", TRUE },
- { "^local", "/local/vore", TRUE },
+ { "^local", "/local", FALSE },
+ { "^/local", "/local", TRUE },
+ { "^local", "/local/vore", FALSE },
+ { "^/local", "/local/vore", TRUE },
{ "^local", "/usr/local", FALSE },
{ "local/bin", "/local/bin", TRUE },
{ "/usr\\/bin", "/usr/bin", TRUE },
{ "^/usr\\/bin$", "/usr/bin", TRUE },
{ "\\/usr\\/bin", "/usr/bin", FALSE },
- { "^\\/usr\\/bin$", "/usr/bin", FALSE },
+ { "^\\/usr\\/bin$", "/usr/bin", TRUE },
+ { "/usr\\/bin\\/", "/usr/bin/", TRUE },
+ { "^/usr\\/bin\\/$", "/usr/bin/", TRUE },
+ { "\\/usr\\/bin\\/", "/usr/bin/", FALSE },
+ { "^\\/usr\\/bin\\/$", "/usr/bin/", TRUE },
+
+ { "oracle", "oracle", TRUE },
+ { "oracle", "/oracle", TRUE },
+ { "oracle", "oracle/", TRUE },
+ { "oracle", "/oracle/", TRUE },
+ { "/oracle", "oracle", TRUE },
+ { "/oracle", "/oracle", TRUE },
+ { "/oracle", "oracle/", TRUE },
+ { "/oracle", "/oracle/", TRUE },
+ { "^oracle", "oracle", TRUE },
+ { "^oracle", "/oracle", FALSE },
+ { "^oracle", "oracle/", TRUE },
+ { "^oracle", "/oracle/", FALSE },
+ { "^/oracle", "oracle", FALSE },
+ { "^/oracle", "/oracle", TRUE },
+ { "^/oracle", "oracle/", FALSE },
+ { "^/oracle", "/oracle/", TRUE },
+
+ { "oracle", "oracle", TRUE },
+ { "oracle", "/oracle", TRUE },
+ { "oracle", "oracle/", TRUE },
+ { "oracle", "/oracle/", TRUE },
+ { "oracle$", "oracle", TRUE },
+ { "oracle$", "/oracle", TRUE },
+ { "oracle$", "oracle/", FALSE },
+ { "oracle$", "/oracle/", FALSE },
+ { "oracle/$", "oracle", FALSE },
+ { "oracle/$", "/oracle", FALSE },
+ { "oracle/$", "oracle/", TRUE },
+ { "oracle/$", "/oracle/", TRUE },
{ NULL, NULL, FALSE },
}, *t;
return ok;
}
-static int
+static gboolean
test_match_datestamp(void)
{
gboolean ok = TRUE;
return ok;
}
-static int
+static gboolean
test_match_level(void)
{
gboolean ok = TRUE;