Browse code

* local repositories and archives (as possible symlink or clone origins) are now considered to be locals. This removes the confusing name caches for this functionality. The only caches that still exist are those used by git and curl to actually cache stuff

Nat! authored on 21-08-2017 15:39:44
Showing 26 changed files
... ...
@@ -352,7 +352,7 @@ bootstrap_main()
352 352
    local MULLE_FLAG_DONT_DEFER="NO"
353 353
    local MULLE_FLAG_EXEKUTOR_DRY_RUN="NO"
354 354
    local MULLE_FLAG_FOLLOW_SYMLINKS="YES"
355
-   local MULLE_FLAG_LOG_CACHE="NO"
355
+   local MULLE_FLAG_LOG_LOCAL="NO"
356 356
    local MULLE_FLAG_LOG_DEBUG="NO"
357 357
    local MULLE_FLAG_LOG_EXEKUTOR="NO"
358 358
    local MULLE_FLAG_LOG_FLUFF="NO"
... ...
@@ -105,10 +105,7 @@ fetch_brew_if_needed()
105 105
       fail "brew was not successfully installed (PATH=$PATH)"
106 106
    fi
107 107
 
108
-   #
109
-   # if brew is from clone cache update it
110
-   #
111
-   if [ ! -z "${CLONE_CACHE}" ]
108
+   if 1
112 109
    then
113 110
       "${BREW}" update
114 111
    fi
... ...
@@ -67,7 +67,7 @@ Commands:
67 67
    upgrade  :  execute a "pull" in fetched repositories
68 68
 
69 69
 Options:
70
-   --caches            :  use CACHES_PATH to locate local repositories
70
+   --caches            :  use LOCALS_PATH to locate local repositories
71 71
    --check-usr-local   :  check /usr/local for duplicates
72 72
    --embedded-only     :  fetch embedded repositories only
73 73
 
... ...
@@ -244,23 +244,21 @@ So symlinking is the only way to go."
244 244
 }
245 245
 
246 246
 
247
-_search_for_git_repository_in_cache()
247
+_git_search_local()
248 248
 {
249
-   local directory
250
-   local name
251
-   local branch
249
+   log_entry "_git_search_local" "$@"
252 250
 
253
-   [ $# -ne 3 ] && internal_fail "fail"
251
+   local directory="$1"
252
+   local name="$2"
253
+   local branch="$3"
254 254
 
255
-   directory="$1"
256
-   name="$2"
257
-   branch="$3"
255
+   [ $# -ne 3 ] && internal_fail "fail"
258 256
 
259 257
    local found
260 258
 
261
-   if [ "${MULLE_FLAG_LOG_CACHE}" = "YES" ]
259
+   if [ "${MULLE_FLAG_LOG_LOCALS}" = "YES" ]
262 260
    then
263
-      log_trace "Checking cache path \"${directory}\""
261
+      log_trace "Checking local path \"${directory}\""
264 262
    fi
265 263
 
266 264
    if [ ! -z "${branch}" ]
... ...
@@ -299,31 +297,35 @@ _search_for_git_repository_in_cache()
299 297
 }
300 298
 
301 299
 
302
-search_for_git_repository_in_caches()
300
+git_search_local()
303 301
 {
304
-   log_entry "search_for_git_repository_in_caches(${CACHES_PATH})" "$@"
302
+   log_entry "git_search_local [${LOCAL_PATH}]" "$@"
303
+
304
+   local name="$1"
305
+   local branch="$2"
306
+#   local url="$3"
305 307
 
306 308
    local found
307 309
    local directory
308 310
    local realdir
309 311
    local curdir
310 312
 
311
-   if [ "${MULLE_FLAG_LOG_CACHE}" = "YES" -a -z "${CACHES_PATH}" ]
313
+   if [ "${MULLE_FLAG_LOG_LOCAL}" = "YES" -a -z "${LOCAL_PATH}" ]
312 314
    then
313
-      log_trace "CACHES_PATH is empty"
315
+      log_trace "LOCAL_PATH is empty"
314 316
    fi
315 317
 
316 318
    curdir="`pwd -P`"
317 319
    IFS=":"
318
-   for directory in ${CACHES_PATH}
320
+   for directory in ${LOCAL_PATH}
319 321
    do
320 322
       IFS="${DEFAULT_IFS}"
321 323
 
322 324
       if [ ! -d "${directory}" ]
323 325
       then
324
-         if [ "${MULLE_FLAG_LOG_CACHE}" = "YES" ]
326
+         if [ "${MULLE_FLAG_LOG_LOCALS}" = "YES" ]
325 327
          then
326
-            log_trace2 "Cache path \"${realdir}\" does not exist"
328
+            log_trace2 "Local path \"${realdir}\" does not exist"
327 329
          fi
328 330
          continue
329 331
       fi
... ...
@@ -331,10 +333,10 @@ search_for_git_repository_in_caches()
331 333
       realdir="`realpath "${directory}"`"
332 334
       if [ "${realdir}" = "${curdir}" ]
333 335
       then
334
-         fail "config setting \"search_path\" mistakenly contains \"${directory}\", which is the current directory"
336
+         fail "Config setting \"search_path\" mistakenly contains \"${directory}\", which is the current directory"
335 337
       fi
336 338
 
337
-      found="`_search_for_git_repository_in_cache "${realdir}" "$@"`" || exit 1
339
+      found="`_git_search_local "${realdir}" "${name}" "${branch}"`" || exit 1
338 340
       if [ ! -z "${found}" ]
339 341
       then
340 342
          echo "${found}"
... ...
@@ -347,9 +349,9 @@ search_for_git_repository_in_caches()
347 349
 }
348 350
 
349 351
 
350
-_search_for_archive_in_caches()
352
+_archive_search_local()
351 353
 {
352
-   log_entry "_search_for_archive_in_caches" "$@"
354
+   log_entry "_archive_search_local" "$@"
353 355
 
354 356
    local directory="$1"
355 357
    local name="$2"
... ...
@@ -381,22 +383,27 @@ _search_for_archive_in_caches()
381 383
 }
382 384
 
383 385
 
384
-search_for_archive_in_caches()
386
+archive_search_local()
385 387
 {
386
-   log_entry "search_for_archive_in_caches" "$@"
388
+   log_entry "archive_search_local" "$@"
387 389
 
388 390
    local name="$1"
389
-   local filename="$2"
391
+#   local branch="$2"
392
+   local url="$3"
393
+
394
+   local  filename
395
+
396
+   filename="`basename -- "${url}"`"
390 397
 
391 398
    local found
392 399
    local directory
393 400
 
394 401
    IFS=":"
395
-   for directory in ${CACHES_PATH}
402
+   for directory in ${LOCAL_PATH}
396 403
    do
397 404
       IFS="${DEFAULT_IFS}"
398 405
 
399
-      found="`_search_for_archive_in_caches "${directory}" "${name}" "${filename}"`" || exit 1
406
+      found="`_archive_search_local "${directory}" "${name}" "${filename}"`" || exit 1
400 407
       if [ ! -z "${found}" ]
401 408
       then
402 409
          found="`absolutepath "${found}"`"
... ...
@@ -429,7 +436,7 @@ mkdir_stashparent_if_missing()
429 436
 }
430 437
 
431 438
 
432
-get_cache_item()
439
+get_local_item()
433 440
 {
434 441
    local reposdir="$1"  # ususally .bootstrap.repos
435 442
    local name="$2"      # name of the clone, extensionless
... ...
@@ -439,19 +446,19 @@ get_cache_item()
439 446
    local tag="$6"       # tag to checkout of the clone
440 447
    local stashdir="$7"  # stashdir of this clone (absolute or relative to $PWD)
441 448
 
442
-   if [ "${OPTION_ALLOW_SEARCH_CACHES}" = "NO" ]
449
+   if [ "${OPTION_ALLOW_SEARCH_LOCALS}" = "NO" ]
443 450
    then
444
-      log_fluff "Not searching caches because --no-caches"
451
+      log_fluff "Not searching local filesystem because --no-locals"
445 452
       return
446 453
    fi
447 454
 
448 455
    case "${scm}" in
449 456
       git*)
450
-         search_for_git_repository_in_caches "${name}" "${branch}"
457
+         git_search_local "${name}" "${branch}" "${url}"
451 458
       ;;
452 459
 
453 460
       tar*|zip*)
454
-         search_for_archive_in_caches "${name}" "`basename -- "${url}"`"
461
+         archive_search_local "${name}" "${branch}" "${url}"
455 462
       ;;
456 463
 
457 464
       *)
... ...
@@ -532,7 +539,7 @@ clone_or_symlink()
532 539
       ;;
533 540
 
534 541
       *)
535
-         found="`get_cache_item "${reposdir}" \
542
+         found="`get_local_item "${reposdir}" \
536 543
                                 "${name}" \
537 544
                                 "${url}" \
538 545
                                 "${branch}" \
... ...
@@ -555,14 +562,14 @@ clone_or_symlink()
555 562
 
556 563
             case "${operation}" in
557 564
                link_command)
558
-                 log_verbose "Using symlink to cached item \"${found}\""
565
+                 log_verbose "Using symlink to local item \"${found}\""
559 566
 
560 567
                  # compatible to earlier code
561 568
                  found="`symlink_relpath "${found}" "${ROOT_DIR}"`"
562 569
                ;;
563 570
 
564 571
                *)
565
-                 log_verbose "Using cached item \"${found}\""
572
+                 log_verbose "Using local item \"${found}\""
566 573
                ;;
567 574
             esac
568 575
          fi
... ...
@@ -1682,7 +1689,7 @@ _common_main()
1682 1689
    local MULLE_FLAG_FOLLOW_SYMLINKS="NO"
1683 1690
    local OPTION_ALLOW_CREATING_SYMLINKS="NO"
1684 1691
    local OPTION_ALLOW_CREATING_EMBEDDED_SYMLINKS="NO"
1685
-   local OPTION_ALLOW_SEARCH_CACHES="YES"
1692
+   local OPTION_ALLOW_SEARCH_LOCALS="YES"
1686 1693
    local OPTION_ALLOW_GIT_MIRROR="YES"
1687 1694
    local OPTION_ALLOW_REFRESH_GIT_MIRROR="YES"
1688 1695
    local OPTION_EMBEDDED_ONLY="NO"
... ...
@@ -1763,8 +1770,8 @@ _common_main()
1763 1770
             OPTION_ALLOW_REFRESH_GIT_MIRROR="NO"
1764 1771
          ;;
1765 1772
 
1766
-         --no-caches)
1767
-            OPTION_ALLOW_SEARCH_CACHES="NO"
1773
+         --no-caches|--no-locals)
1774
+            OPTION_ALLOW_SEARCH_LOCALS="NO"
1768 1775
          ;;
1769 1776
 
1770 1777
          --no-symlink-creation|--no-symlinks)
... ...
@@ -1822,10 +1829,10 @@ _common_main()
1822 1829
    #
1823 1830
    # "repository" caches can and usually are outside the project folder
1824 1831
    # this can be multiple paths!
1825
-   if [ "${OPTION_ALLOW_SEARCH_CACHES}" = "YES" ]
1832
+   #
1833
+   if [ "${OPTION_ALLOW_SEARCH_LOCALS}" = "YES" -a -z "${LOCAL_PATH}" ]
1826 1834
    then
1827
-      CACHES_PATH="`read_config_setting "search_path" "${MULLE_BOOTSTRAP_CACHES_PATH}"`"
1828
-      CACHES_PATH="`add_path "${CACHES_PATH}" "${CLONE_CACHE}"`"
1835
+      LOCAL_PATH="`read_config_setting "search_path" "${MULLE_BOOTSTRAP_LOCAL_PATH}"`"
1829 1836
    fi
1830 1837
 
1831 1838
    if [ "${OPTION_ALLOW_GIT_MIRROR}" = "YES" ]
... ...
@@ -116,8 +116,8 @@ bootstrap_technical_flags()
116 116
          MULLE_FLAG_EXEKUTOR_DRY_RUN="YES"
117 117
       ;;
118 118
 
119
-      -lc|--log-cache)
120
-         MULLE_FLAG_LOG_CACHE="YES"
119
+      -lc|--log-cache|-ll|--log-local)
120
+         MULLE_FLAG_LOG_LOCAL="YES"
121 121
       ;;
122 122
 
123 123
       -ld|--log-debug)
... ...
@@ -171,8 +171,8 @@ test_a()
171 171
 #
172 172
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
173 173
 
174
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
175
-export MULLE_BOOTSTRAP_CACHES_PATH
174
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
175
+export MULLE_BOOTSTRAP_LOCAL_PATH
176 176
 
177 177
 setup_test_case
178 178
 test_a "$@"
... ...
@@ -92,8 +92,8 @@ test_a()
92 92
 #
93 93
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
94 94
 
95
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
96
-export MULLE_BOOTSTRAP_CACHES_PATH
95
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
96
+export MULLE_BOOTSTRAP_LOCAL_PATH
97 97
 
98 98
 clear_test_dirs a b
99 99
 setup_test_case
... ...
@@ -64,8 +64,8 @@ test_a()
64 64
    :
65 65
 }
66 66
 
67
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
68
-export MULLE_BOOTSTRAP_CACHES_PATH
67
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
68
+export MULLE_BOOTSTRAP_LOCAL_PATH
69 69
 
70 70
 #
71 71
 # not that much of a test
... ...
@@ -85,8 +85,8 @@ BOOTSTRAP_FLAGS="$@"
85 85
 #
86 86
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
87 87
 
88
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
89
-export MULLE_BOOTSTRAP_CACHES_PATH
88
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
89
+export MULLE_BOOTSTRAP_LOCAL_PATH
90 90
 
91 91
 clear_test_dirs a b c
92 92
 setup_test_dirs
... ...
@@ -136,8 +136,8 @@ test_2()
136 136
 
137 137
 BOOTSTRAP_FLAGS="$@"
138 138
 
139
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
140
-export MULLE_BOOTSTRAP_CACHES_PATH
139
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
140
+export MULLE_BOOTSTRAP_LOCAL_PATH
141 141
 
142 142
 #
143 143
 # not that much of a test
... ...
@@ -102,8 +102,8 @@ test()
102 102
 
103 103
 BOOTSTRAP_FLAGS="$@"
104 104
 
105
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
106
-export MULLE_BOOTSTRAP_CACHES_PATH
105
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
106
+export MULLE_BOOTSTRAP_LOCAL_PATH
107 107
 
108 108
 #
109 109
 # not that much of a test
... ...
@@ -71,8 +71,8 @@ fail()
71 71
 ## Setup test environment
72 72
 ##
73 73
 
74
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
75
-export MULLE_BOOTSTRAP_CACHES_PATH
74
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
75
+export MULLE_BOOTSTRAP_LOCAL_PATH
76 76
 
77 77
 
78 78
 rm -rf a b c  2> /dev/null
... ...
@@ -55,8 +55,8 @@ create_demo_repo()
55 55
 ##
56 56
 ## Setup test environment
57 57
 ##
58
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
59
-export MULLE_BOOTSTRAP_CACHES_PATH
58
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
59
+export MULLE_BOOTSTRAP_LOCAL_PATH
60 60
 
61 61
 rm -rf a b c d e f g h main 2> /dev/null
62 62
 
... ...
@@ -94,8 +94,8 @@ fail()
94 94
 
95 95
 BOOTSTRAP_FLAGS="$@"
96 96
 
97
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
98
-export MULLE_BOOTSTRAP_CACHES_PATH
97
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
98
+export MULLE_BOOTSTRAP_LOCAL_PATH
99 99
 
100 100
 
101 101
 echo "" >&2
... ...
@@ -112,8 +112,8 @@ fail()
112 112
 
113 113
 BOOTSTRAP_FLAGS="$@"
114 114
 
115
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
116
-export MULLE_BOOTSTRAP_CACHES_PATH
115
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
116
+export MULLE_BOOTSTRAP_LOCAL_PATH
117 117
 
118 118
 
119 119
 setup
... ...
@@ -125,8 +125,8 @@ test_inherit()
125 125
    rm -rf a b c  2> /dev/null
126 126
 }
127 127
 
128
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
129
-export MULLE_BOOTSTRAP_CACHES_PATH
128
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
129
+export MULLE_BOOTSTRAP_LOCAL_PATH
130 130
 
131 131
 
132 132
 test_override
... ...
@@ -124,8 +124,8 @@ test_a()
124 124
 #
125 125
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
126 126
 
127
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
128
-export MULLE_BOOTSTRAP_CACHES_PATH
127
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
128
+export MULLE_BOOTSTRAP_LOCAL_PATH
129 129
 
130 130
 setup_test_case
131 131
 test_a "$@"
... ...
@@ -109,8 +109,8 @@ fail()
109 109
 
110 110
 BOOTSTRAP_FLAGS="$@"
111 111
 
112
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
113
-export MULLE_BOOTSTRAP_CACHES_PATH
112
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
113
+export MULLE_BOOTSTRAP_LOCAL_PATH
114 114
 
115 115
 setup
116 116
 
... ...
@@ -103,8 +103,8 @@ test_a()
103 103
 #
104 104
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
105 105
 
106
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
107
-export MULLE_BOOTSTRAP_CACHES_PATH
106
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
107
+export MULLE_BOOTSTRAP_LOCAL_PATH
108 108
 
109 109
 setup_test_case
110 110
 test_a "$@"
... ...
@@ -116,8 +116,8 @@ test_a()
116 116
 #
117 117
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
118 118
 
119
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
120
-export MULLE_BOOTSTRAP_CACHES_PATH
119
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
120
+export MULLE_BOOTSTRAP_LOCAL_PATH
121 121
 
122 122
 setup_test_case
123 123
 test_a "$@"
... ...
@@ -83,8 +83,8 @@ assert_a()
83 83
 test_a()
84 84
 {
85 85
    (
86
-      MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`/main"
87
-      export MULLE_BOOTSTRAP_CACHES_PATH
86
+      MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`/main"
87
+      export MULLE_BOOTSTRAP_LOCAL_PATH
88 88
 
89 89
       cd main/a ;
90 90
 
... ...
@@ -138,8 +138,8 @@ test_2()
138 138
 
139 139
 BOOTSTRAP_FLAGS="$@"
140 140
 
141
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
142
-export MULLE_BOOTSTRAP_CACHES_PATH
141
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
142
+export MULLE_BOOTSTRAP_LOCAL_PATH
143 143
 
144 144
 #
145 145
 # not that much of a test
... ...
@@ -112,8 +112,8 @@ fail()
112 112
 
113 113
 BOOTSTRAP_FLAGS="$@"
114 114
 
115
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
116
-export MULLE_BOOTSTRAP_CACHES_PATH
115
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
116
+export MULLE_BOOTSTRAP_LOCAL_PATH
117 117
 
118 118
 
119 119
 cmake > /dev/null 2>&1
... ...
@@ -57,7 +57,7 @@ test_a()
57 57
 {
58 58
    (
59 59
       cd a
60
-      MULLE_BOOTSTRAP_CACHES_PATH=/tmp run_mulle_bootstrap "$@" fetch
60
+      MULLE_BOOTSTRAP_LOCAL_PATH=/tmp run_mulle_bootstrap "$@" fetch
61 61
    )
62 62
 }
63 63
 
... ...
@@ -67,8 +67,8 @@ test_a()
67 67
 #
68 68
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
69 69
 
70
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
71
-export MULLE_BOOTSTRAP_CACHES_PATH
70
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
71
+export MULLE_BOOTSTRAP_LOCAL_PATH
72 72
 
73 73
 
74 74
 setup_test_case
... ...
@@ -83,8 +83,8 @@ test_a()
83 83
 #
84 84
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
85 85
 
86
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
87
-export MULLE_BOOTSTRAP_CACHES_PATH
86
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
87
+export MULLE_BOOTSTRAP_LOCAL_PATH
88 88
 
89 89
 setup_test_case
90 90
 test_a "$@"
... ...
@@ -99,8 +99,8 @@ test_a()
99 99
 #
100 100
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
101 101
 
102
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
103
-export MULLE_BOOTSTRAP_CACHES_PATH
102
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
103
+export MULLE_BOOTSTRAP_LOCAL_PATH
104 104
 
105 105
 setup_test_case
106 106
 test_a "$@"
... ...
@@ -170,8 +170,8 @@ test_a()
170 170
 #
171 171
 echo "mulle-bootstrap: `mulle-bootstrap version`(`mulle-bootstrap library-path`)" >&2
172 172
 
173
-MULLE_BOOTSTRAP_CACHES_PATH="`pwd -P`"
174
-export MULLE_BOOTSTRAP_CACHES_PATH
173
+MULLE_BOOTSTRAP_LOCAL_PATH="`pwd -P`"
174
+export MULLE_BOOTSTRAP_LOCAL_PATH
175 175
 
176 176
 setup_test_case
177 177
 test_a "$@"