Megatest

Check-in [9f0b57c507]
Login
Overview
Comment:Added hierarchy graph
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.65-wip-alt
Files: files | file ages | folders
SHA1: 9f0b57c507c1c8f7eff359e8ebd0047084138ff2
User & Date: mrwellan on 2019-11-01 17:20:42
Other Links: branch diff | manifest | tags
Context
2019-11-02
09:56
whatAmess check-in: d684bd81f1 user: matt tags: v1.65-wip-alt
2019-11-01
17:20
Added hierarchy graph check-in: 9f0b57c507 user: mrwellan tags: v1.65-wip-alt
2019-10-31
23:17
wip check-in: 6b93274918 user: matt tags: v1.65-wip-alt
Changes

Modified db.scm from [736cb58f03] to [246b63bd15].

48
49
50
51
52
53
54
55
56
57
58
(declare (uses commonmod))
(import commonmod)

(define *rundb-mutex* (make-mutex)) ;; prevent problems opening/closing rundb's
(define *number-of-writes* 0)
(define *number-non-write-queries* 0)


;; tiresome setup for rmtmod (and other mods) goes here
;; (set-fn 'db:dbfile-path common:get-db-tmp-area)
(set-fn 'db:setup       dbmod#db:setup)







<
<
<

48
49
50
51
52
53
54



55
(declare (uses commonmod))
(import commonmod)

(define *rundb-mutex* (make-mutex)) ;; prevent problems opening/closing rundb's
(define *number-of-writes* 0)
(define *number-non-write-queries* 0)




(set-fn 'db:setup       dbmod#db:setup)

Modified dbmod.scm from [ade8745a4b] to [60a0e89710].

4482
4483
4484
4485
4486
4487
4488


4489
4490
4491
4492
	   (conc (current-directory) "/" outputfile)))
     results)
    ;; brutal clean up
    (stack-push! (dbr:dbstruct-dbstack dbstruct) dbdat)
    (system "rm -rf tempdir")))

;; (db:extract-ods-file db "outputfile.ods" '(("sysname" "%")("fsname" "%")("datapath" "%")) "%")





)







>
>




4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
	   (conc (current-directory) "/" outputfile)))
     results)
    ;; brutal clean up
    (stack-push! (dbr:dbstruct-dbstack dbstruct) dbdat)
    (system "rm -rf tempdir")))

;; (db:extract-ods-file db "outputfile.ods" '(("sysname" "%")("fsname" "%")("datapath" "%")) "%")
;; tiresome setup for rmtmod (and other mods) goes here
;; (set-fn 'db:dbfile-path common:get-db-tmp-area)



)

Added docs/code/Makefile version [f10688b15f].







>
>
>
1
2
3
module-hierarchy.pdf : module-hierarchy.dot
	dot -Tpdf module-hierarchy.dot -o module-hierarchy.pdf

Added docs/code/module-hierarchy.dot version [9101476836].









































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
//  Copyright 2006-2017, Matthew Welland.
// 
// This file is part of Megatest.
// 
//     Megatest is free software: you can redistribute it and/or modify
//     it under the terms of the GNU General Public License as published by
//     the Free Software Foundation, either version 3 of the License, or
//     (at your option) any later version.
// 
//     Megatest is distributed in the hope that it will be useful,
//     but WITHOUT ANY WARRANTY; without even the implied warranty of
//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//     GNU General Public License for more details.
// 
//     You should have received a copy of the GNU General Public License
//     along with Megatest.  If not, see <http://www.gnu.org/licenses/>.
// 
digraph megatest_code_hierarchy {
  ranksep=0.05;
  // rankdir=LR

  node [shape=box,style=filled];

  "common" [label="common module"];

  subgraph cluster_megatest {
    label="megatest";
    "common" -> "api" -> "rmt";
    "common" -> "rmt";
  }
  
//  subgraph cluster_code_hierarchy {
//    label="Packets";
//    "SPKTS" [ label = "Sensor Packets" ];
//    "run code-hierarchy";
//    "work code-hierarchy";
//    "user request code-hierarchy";
//  }
}

//  "SENSORS" [ label = "{ Sensor Processing | { file | git | fossil | script }}"
//	      shape = "record"; ];
//  
//  "RUNS"    [ label = "{ Runs Processing | { launch | clean | re-run | archive } | { dispatcher }}";
//	      shape = "record"; ];
//
//  "WORK"    [ label = "{ Work Items | { start task | task competed }}";
//	      shape = "record"; ];
//
//  "USERREQ" [ label = "{ User Requests (Unix and Web) | { launch | clean | re-run | archive }}";
//	      shape = "record"; ];
//
//  "MTAREA1" [ label = "{ Megatest Area 1 | { parallel job\nmanagement | test\nmanagement | data\nrollup }}";
//	      shape = "record"; ];
//  
//  "MTAREA2" [ label = "{ Megatest Area 2 | { parallel job\nmanagement | test\nmanagement | data\nrollup }}";
//	      shape = "record"; ];
//  
//  "MTAREA3" [ label = "More Megatest Areas ... ";
//	      shape = "record"; ];
//
//  "PGDB"    [ label = "postgres database";
//	      shape = "cylinder"; ];
//
//  "WEBAPP"  [ label = "{ Web View | { Runs | Contours | Control | Time View }}";
//	      shape = "record"; ];
//
//  // "WEBCTRL" [ label = "{ Web View \n(control) }";
//  //	      shape = "record"; ];
//  
//  "SENSORS" -> "SPKTS";
//  "RUNS"    -> "run code-hierarchy";
//  "run code-hierarchy" -> "RUNS";
//  "WORK"    -> "work code-hierarchy";
//  "work code-hierarchy" -> "RUNS";
//  "USERREQ" -> "user request code-hierarchy";
//  "SPKTS"   -> "RUNS";
//  "user request code-hierarchy" -> "RUNS";
//  "RUNS"    -> "MTAREA1" -> "PGDB";
//  "RUNS"    -> "MTAREA2" -> "PGDB";
//  "RUNS"    -> "MTAREA3" -> "PGDB";
//  "PGDB"    -> "WEBAPP";
//  // "WEBCTRL" -> "run code-hierarchy";