-
Notifications
You must be signed in to change notification settings - Fork 3
/
dbwebb2-inspect-design.bash
152 lines (111 loc) · 2.66 KB
/
dbwebb2-inspect-design.bash
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#---------------------------- INSPECT DESIGN START --------------------------
#
# Test general
#
function design()
{
TREE_OPTIONS="-d"
#inspectIntro
#local target="me/$KMOM"
headerForTest "-- $DBW_COURSE $KMOM" "-- ${DBW_WWW}$DBW_COURSE/$KMOM"
checkKmomDir "me/anax-flat"
publishKmom
#viewFileTree "$target"
validateKmom "me"
local meDir=
meDir="$( echo "$KMOM" | sed 's/kmom0/me/g' | sed 's/kmom/me/g' )"
METARGET="me/$KMOM/$meDir"
}
#
# Test general, last in sequence
#
function designlast()
{
:
}
#
#
#
function designRepo()
{
local repo="$1"
local target="me/$repo"
headerForTest "-- Repo $repo" "-- ${DBW_WWW}$DBW_COURSE/$target"
openFilesInEditor "$target"
printUrl "" "$target"
isGitRepo "$target"
hasGitTagBetween "$EXEC_DIR/$repo" "$2" "$3" > /dev/null
if [ ! -z "$4" ]; then
hasGitTagBetween "$EXEC_DIR/$repo" "$4" "$5" > /dev/null
fi
if [ ! -z "$4" ]; then
tag=$( hasGitTagBetween "$EXEC_DIR/$repo" "$2" "$5" )
else
tag=$( hasGitTagBetween "$EXEC_DIR/$repo" "$2" "$3" )
fi
inspectCommand "" "$EXEC_DIR/$repo" "git remote -v" ""
inspectCommand "" "$EXEC_DIR/$repo" "git tag" ""
inspectCommand "" "$EXEC_DIR/$repo" "git status" ""
inspectCommand "" "$EXEC_DIR/$repo" "git log -n 20 --pretty=format:\"%h_%ad_:_%s%d_[%an]\" --graph --date=short" ""
inspectCommand "" "$EXEC_DIR/$repo" "git stash" ""
inspectCommand "" "$EXEC_DIR/$repo" "git checkout -b inspect $tag" ""
# All repos does not include make test
# Make test need test environment
#inspectCommand "Makefile" "$EXEC_DIR/$repo" "make test" ""
}
#
# Test kmom
#
function designkmom01()
{
designRepo "anax-flat" "1.0.0" "1.1.0" "1.1.0" "1.2.0"
}
#
# Test kmom
#
function designkmom02()
{
designRepo "anax-flat" "2.0.0" "3.0.0"
designRepo "anax-flat/theme" "2.0.0" "3.0.0"
}
#
# Test kmom
#
function designkmom03()
{
designRepo "anax-flat" "3.0.0" "4.0.0"
designRepo "anax-flat/theme" "3.0.0" "4.0.0"
}
#
# Test kmom
#
function designkmom04()
{
designRepo "anax-flat" "4.0.0" "5.0.0"
designRepo "anax-flat/theme" "4.0.0" "5.0.0"
}
#
# Test kmom
#
function designkmom05()
{
designRepo "anax-flat" "5.0.0" "6.0.0"
designRepo "anax-flat/theme" "5.0.0" "6.0.0"
}
#
# Test kmom
#
function designkmom06()
{
designRepo "anax-flat" "6.0.0" "7.0.0"
designRepo "anax-flat/theme" "6.0.0" "7.0.0"
}
#
# Test kmom
#
function designkmom10()
{
designRepo "anax-flat" "10.0.0" "11.0.0"
designRepo "anax-flat/theme" "10.0.0" "11.0.0"
}
#---------------------------- INSPECT DESIGN END ----------------------------