Megatest

Check-in [75dc576fb1]
Login
Overview
Comment:fixed issues related to PWD not matching -start-dir argument
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.64
Files: files | file ages | folders
SHA1: 75dc576fb176746a436a9354d4fe0a6afcf23366
User & Date: bjbarcla on 2017-03-20 15:14:33
Other Links: branch diff | manifest | tags
Context
2017-03-20
15:15
merged v1.64-new-pkts check-in: 77cb77fb6a user: bjbarcla tags: v1.64
15:14
fixed issues related to PWD not matching -start-dir argument check-in: 75dc576fb1 user: bjbarcla tags: v1.64
2017-03-16
12:13
added pgsync via command line creds check-in: 5d1a6894bb user: srehman tags: v1.64
Changes

Modified megatest.config from [00e8b0a49b] to [0ca318f7e9].

1
2
3
4
5
6

7

8
9
10
11
12
13
1
2
3
4
5
6
7

8
9
10
11
12
13
14






+
-
+






[setup]
pktsdirs /tmp/pkts /some/other/source

[areas]
#         path-to-area   map-target-script(future, optional)
fullrun   path=tests/fullrun
# targtrans is name of scheme proc stored in .mtutil.scm, which lives in PWD where mtutil is run
ext-tests path=ext-tests; targtrans=prefix-contour
ext-tests path=ext-tests; targtrans=prefix-contour 

[contours]
#     mode-patt/tag-expr
quick selector=quick/QUICKPATT
full  areas=fullrun,ext-tests; selector=all/MAXPATT
all   areas=fullrun,ext-tests

Modified megatest.scm from [5b2eaab011] to [564c08894e].

369
370
371
372
373
374
375


376

377
378
379
380
381
382
383
369
370
371
372
373
374
375
376
377

378
379
380
381
382
383
384
385







+
+
-
+







	      ))
    (debug:print-error 0 *default-log-port* "Unrecognised arguments: " (string-intersperse (if (list? remargs) remargs (argv))  " ")))

;; before doing anything else change to the start-dir if provided
;;
(if (args:get-arg "-start-dir")
    (if (file-exists? (args:get-arg "-start-dir"))
        (let ((fullpath (common:real-path (args:get-arg "-start-dir"))))
          (setenv "PWD" fullpath)
	(change-directory (args:get-arg "-start-dir"))
          (change-directory fullpath))
	(begin
	  (debug:print-error 0 *default-log-port* "non-existant start dir " (args:get-arg "-start-dir") " specified, exiting.")
	  (exit 1))))

;; immediately set MT_TARGET if -reqtarg or -target are available
;;
(let ((targ (or (args:get-arg "-reqtarg")(args:get-arg "-target"))))

Modified runconfigs.config from [bc209cef2e] to [5d4a6b6df5].

1
2
3
4
5

6
7
8
9
10
11
12
1
2
3
4
5
6
7
8
9
10
11
12
13





+








# example of a cron entry to run sync using db spec pgdb, with pgdb setting in file local.config
#
[a/b/c]
all:scheduled:sync     cron=  0/5 * * * *;dbdest=pgdb;appendconf=/mfs/matt/.sysmaint/local.config
quick:scheduled:sync   cron=  0/5 * * * *;dbdest=pgdb;appendconf=/mfs/matt/.sysmaint/local.config

# tip will be replaced with hashkey?
[v1.63/tip/dev]
# file:   files changes since last run trigger new run
# script: script is called with unix seconds as last parameter (other parameters are preserved)
#
# contour:sensetype:action params            data