# # # add_dir "tests/netsync_permissions_wildcards" # # add_file "tests/netsync_permissions_wildcards/__driver__.lua" # content [c37b3b8d12a534081ab2cdee9af046cb1014e29c] # # add_file "tests/netsync_permissions_wildcards/read-permissions" # content [6fd283ca6d9771aa1354cf33b0ebc42957667e2a] # # add_file "tests/netsync_permissions_wildcards/write-permissions" # content [7c7c39a59bd0707ca1d72192adc9b3871f554918] # # patch "ChangeLog" # from [1233526c545cd9f70e047874a172a37f328701e9] # to [b02173489f6962d62bbbe7961eae51c520c10590] # # patch "testsuite.lua" # from [199bc84326e83c769ea610d147a2a0d705053245] # to [2188f4ffa8cfc4a560da9af28c071820f1a889ca] # ============================================================ --- tests/netsync_permissions_wildcards/__driver__.lua c37b3b8d12a534081ab2cdee9af046cb1014e29c +++ tests/netsync_permissions_wildcards/__driver__.lua c37b3b8d12a534081ab2cdee9af046cb1014e29c @@ -0,0 +1,19 @@ + +include("/common/netsync.lua") +mtn_setup() + +netsync.setup() + +srv = netsync.start({"--confdir=."}, nil, true) + +-- Try pushing just one exact branch +addfile("testfile1", "test file 1") +commit("testbranch", "testfile") +srv:push("testbranch") + +-- Try pushing just branches matching a wild card +addfile("testfile2", "test file 2") +commit("testbranch", "testfile") +srv:push("testbra*") + +srv:stop() ============================================================ --- tests/netsync_permissions_wildcards/read-permissions 6fd283ca6d9771aa1354cf33b0ebc42957667e2a +++ tests/netsync_permissions_wildcards/read-permissions 6fd283ca6d9771aa1354cf33b0ebc42957667e2a @@ -0,0 +1,2 @@ +pattern "test*" +allow "address@hidden" ============================================================ --- tests/netsync_permissions_wildcards/write-permissions 7c7c39a59bd0707ca1d72192adc9b3871f554918 +++ tests/netsync_permissions_wildcards/write-permissions 7c7c39a59bd0707ca1d72192adc9b3871f554918 @@ -0,0 +1 @@ address@hidden ============================================================ --- ChangeLog 1233526c545cd9f70e047874a172a37f328701e9 +++ ChangeLog b02173489f6962d62bbbe7961eae51c520c10590 @@ -1,3 +1,12 @@ +2006-12-09 Richard Levitte + + * tests/netsync_permissions_wildcards/__driver__.lua, + tests/netsync_permissions_wildcards/read-permissions, + tests/netsync_permissions_wildcards/write-permissions, + testsuite.lus: Test how well netsync works when read-permissions + contains wildcards as part of the pattern. + THIS IS REALLY A BUG REPORT + 2006-12-08 Richard Levitte * INSTALL: A build failure showed me I needed to install ============================================================ --- testsuite.lua 199bc84326e83c769ea610d147a2a0d705053245 +++ testsuite.lua 2188f4ffa8cfc4a560da9af28c071820f1a889ca @@ -692,3 +692,4 @@ table.insert(tests, "import") table.insert(tests, "automate_stdio_options") table.insert(tests, "spawn_redirected_hook_helper") table.insert(tests, "import") +table.insert(tests, "netsync_permissions_wildcards")