Skip to content

Commit 8c53192

Browse files
authored
Test updates 1.4 (#4)
* add more integration test repos * cleanup commit messages to make it easier to figure out versions from git log
1 parent d6738c3 commit 8c53192

File tree

3 files changed

+78
-66
lines changed

3 files changed

+78
-66
lines changed

atlas_tests.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.1.3"
1+
version = "0.1.4"

wsGenerated.nim

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ proc buildGraph* =
1212

1313
writeFile "proj_a.nimble", "requires \"proj_b >= 1.0.0\"\n"
1414
exec "git add proj_a.nimble"
15-
exec "git commit -m 'update'"
15+
exec "git commit -m 'initial commit; bump v1.0.0'"
1616
exec "git tag v1.0.0"
1717

1818
writeFile "proj_a.nim", "echo \"hello world\"\n"
@@ -21,11 +21,11 @@ proc buildGraph* =
2121

2222
writeFile "proj_a.nimble", "requires \"proj_b >= 1.0.0\"\n# comment\n"
2323
exec "git add proj_a.nimble"
24-
exec "git commit -m 'update'"
24+
exec "git commit -m 'update nimble comment'"
2525

2626
writeFile "proj_a.nimble", "requires \"proj_b >= 1.1.0\"\n"
2727
exec "git add proj_a.nimble"
28-
exec "git commit -m 'update'"
28+
exec "git commit -m 'update nimble requires; bump v1.1.0'"
2929
exec "git tag v1.1.0"
3030

3131
createDir "proj_b"
@@ -38,16 +38,16 @@ proc buildGraph* =
3838

3939
writeFile "proj_b.nimble", "requires \"proj_c >= 1.0.0\"\n"
4040
exec "git add proj_b.nimble"
41-
exec "git commit -m " & quoteShell("Initial commit for project B")
41+
exec "git commit -m 'initial commit; bump v1.0.0'"
4242
exec "git tag v1.0.0"
4343

4444
writeFile "proj_b.nimble", "requires \"proj_c >= 1.0.0\"\n# comment\n"
4545
exec "git add proj_b.nimble"
46-
exec "git commit -m " & quoteShell("Update Nimble comment for project B")
46+
exec "git commit -m 'update nimble comment'"
4747

4848
writeFile "proj_b.nimble", "requires \"proj_c >= 1.1.0\"\n"
4949
exec "git add proj_b.nimble"
50-
exec "git commit -m " & quoteShell("Update proj_b.nimble for project B")
50+
exec "git commit -m 'update nimble requires; bump v1.1.0'"
5151
exec "git tag v1.1.0"
5252

5353
createDir "proj_c"
@@ -56,10 +56,10 @@ proc buildGraph* =
5656

5757
writeFile "proj_c.nimble", "requires \"proj_d >= 1.2.0\"\n"
5858
exec "git add proj_c.nimble"
59-
exec "git commit -m " & quoteShell("Initial commit for project C")
59+
exec "git commit -m 'initial commit'"
6060

6161
writeFile "proj_c.nimble", "requires \"proj_d >= 1.0.0\"\n"
62-
exec "git commit -am " & quoteShell("Update proj_c.nimble for project C")
62+
exec "git commit -am 'update nimble requires; bump v1.2.0'"
6363
exec "git tag v1.2.0"
6464

6565
createDir "proj_d"
@@ -68,13 +68,12 @@ proc buildGraph* =
6868

6969
writeFile "proj_d.nimble", "\n"
7070
exec "git add proj_d.nimble"
71-
exec "git commit -m " & quoteShell("Initial commit for project D")
71+
exec "git commit -m 'Initial commit for project D; bump v1.0.0'"
7272
exec "git tag v1.0.0"
7373

7474
writeFile "proj_d.nimble", "requires \"does_not_exist >= 1.2.0\"\n"
7575
exec "git add proj_d.nimble"
76-
exec "git commit -m " & quoteShell("broken version of package D")
77-
76+
exec "git commit -m 'broken version of package D; bump v2.0.0'"
7877
exec "git tag v2.0.0"
7978

8079
proc buildGraphNoGitTags* =
@@ -87,7 +86,7 @@ proc buildGraphNoGitTags* =
8786

8887
writeFile "proj_a.nimble", "version = \"1.0.0\"\n\nrequires \"proj_b >= 1.0.0\"\n"
8988
exec "git add proj_a.nimble"
90-
exec "git commit -m 'update'"
89+
exec "git commit -m 'initial commit; bump v1.0.0'"
9190

9291
writeFile "proj_a.nimble", "version = \"1.0.0\"\n\nrequires \"proj_b >= 1.0.0\"\n# comments\n"
9392
exec "git add proj_a.nimble"
@@ -99,7 +98,7 @@ proc buildGraphNoGitTags* =
9998

10099
writeFile "proj_a.nimble", "version = \"1.1.0\"\n\nrequires \"proj_b >= 1.1.0\"\n"
101100
exec "git add proj_a.nimble"
102-
exec "git commit -m 'update'"
101+
exec "git commit -m 'update nimble requires; bump v1.1.0'"
103102

104103
createDir "proj_b"
105104
withDir "proj_b":
@@ -111,38 +110,38 @@ proc buildGraphNoGitTags* =
111110

112111
writeFile "proj_b.nimble", "version = \"1.0.0\"\n\nrequires \"proj_c >= 1.0.0\"\n"
113112
exec "git add proj_b.nimble"
114-
exec "git commit -m " & quoteShell("Initial commit for project B")
113+
exec "git commit -m 'initial commit; bump v1.0.0'"
115114

116115
writeFile "proj_b.nimble", "version = \"1.0.0\"\n\nrequires \"proj_c >= 1.0.0\"\n# comment\n"
117116
exec "git add proj_b.nimble"
118-
exec "git commit -m " & quoteShell("Update nimble comment")
117+
exec "git commit -m 'update nimble comment'"
119118

120119
writeFile "proj_b.nimble", "version = \"1.1.0\"\n\nrequires \"proj_c >= 1.1.0\"\n"
121120
exec "git add proj_b.nimble"
122-
exec "git commit -m " & quoteShell("Update proj_b.nimble for project B")
121+
exec "git commit -m 'update nimble requires; bump v1.1.0'"
123122

124123
createDir "proj_c"
125124
withDir "proj_c":
126125
exec "git init"
127126

128127
writeFile "proj_c.nimble", "version = \"1.0.0\"\n\nrequires \"proj_d >= 1.2.0\"\n"
129128
exec "git add proj_c.nimble"
130-
exec "git commit -m " & quoteShell("Initial commit for project C")
129+
exec "git commit -m 'initial commit; bump v1.0.0'"
131130

132131
writeFile "proj_c.nimble", "version = \"1.2.0\"\n\nrequires \"proj_d >= 1.0.0\"\n"
133-
exec "git commit -am " & quoteShell("Update proj_c.nimble for project C")
132+
exec "git commit -am 'update nimble requires; bump v1.2.0'"
134133

135134
createDir "proj_d"
136135
withDir "proj_d":
137136
exec "git init"
138137

139138
writeFile "proj_d.nimble", "version = \"1.0.0\"\n\n"
140139
exec "git add proj_d.nimble"
141-
exec "git commit -m " & quoteShell("Initial commit for project D")
140+
exec "git commit -m 'initial commit; bump v1.0.0'"
142141

143142
writeFile "proj_d.nimble", "version = \"2.0.0\"\n\nrequires \"does_not_exist >= 1.2.0\"\n"
144143
exec "git add proj_d.nimble"
145-
exec "git commit -m " & quoteShell("broken version of package D")
144+
exec "git commit -m 'broken version of package D; bump v2.0.0'"
146145

147146
proc runWsGenerated*() =
148147
withDir("atlas-tests"):

wsIntegration.nim

Lines changed: 58 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -42,77 +42,90 @@ proc getRepoUrls(): seq[string] =
4242
## the urls should be cleaned up, e.g. remove `.git` at the ends
4343
## the `githttpserver` will handle routing `.git` urls during the test runs
4444
let repos = dedent"""
45-
https://github.com/timotheecour/asynctools
45+
https://github.com/Araq/packedjson
46+
https://github.com/arnetheduck/nim-results
47+
https://github.com/c-blake/cligen
48+
https://github.com/cheatfate/asynctools
49+
https://github.com/cheatfate/nimcrypto
50+
https://github.com/CORDEA/oauth
51+
https://github.com/disruptek/balls
4652
https://github.com/disruptek/bump
47-
https://github.com/nim-lang/checksums
4853
https://github.com/disruptek/cligen
4954
https://github.com/disruptek/criterion
5055
https://github.com/disruptek/cutelog
51-
https://github.com/euantorano/dotenv.nim
52-
https://github.com/treeform/flatty
5356
https://github.com/disruptek/frosty
54-
https://github.com/nim-lang/fusion
5557
https://github.com/disruptek/grok
56-
https://github.com/zedeus/httpbeast
58+
https://github.com/disruptek/insideout
59+
https://github.com/disruptek/muffins
60+
https://github.com/disruptek/semaphores
61+
https://github.com/disruptek/testes
62+
https://github.com/disruptek/testutils
63+
https://github.com/disruptek/trees
64+
https://github.com/disruptek/ups
65+
https://github.com/dom96/httpbeast
5766
https://github.com/dom96/jester
58-
https://github.com/treeform/jsony
67+
https://github.com/dom96/sass
68+
https://github.com/euantorano/dotenv.nim
69+
https://github.com/FedericoCeratto/nim-syslog
70+
https://github.com/fowlmouth/nake
71+
https://github.com/GULPF/nimquery
72+
https://github.com/guzba/supersnappy
73+
https://github.com/guzba/zippy
74+
https://github.com/haltcase/glob
75+
https://github.com/iffy/asynctools
76+
https://github.com/jangko/msgpack4nim
77+
https://github.com/juancarlospaco/nim-bytes2human
5978
https://github.com/karaxnim/karax
79+
https://github.com/moigagoo/norm
80+
https://github.com/narimiran/sorta
81+
https://github.com/nim-lang/checksums
82+
https://github.com/nim-lang/fusion
83+
https://github.com/nim-lang/redis
84+
https://github.com/nim-works/arc
85+
https://github.com/nim-works/cps
86+
https://github.com/nim-works/loony
87+
https://github.com/NimParsers/parsetoml
88+
https://github.com/nimpylib/pylib
89+
https://github.com/nitely/nim-graphemes
90+
https://github.com/nitely/nim-regex
91+
https://github.com/nitely/nim-segmentation
92+
https://github.com/nitely/nim-unicodedb
93+
https://github.com/nitely/nim-unicodeplus
94+
https://github.com/onionhammer/sha1
95+
https://github.com/OpenSystemsLab/q.nim
96+
https://github.com/OpenSystemsLab/tempfile.nim
6097
https://github.com/PhilippMDoerner/lowdb
61-
https://github.com/jangko/msgpack4nim
62-
https://github.com/disruptek/muffins
63-
https://github.com/fowlmouth/nake
64-
https://github.com/xzfc/ndb.nim
98+
https://github.com/pietroppeter/nimib
99+
https://github.com/pietroppeter/nimibook
100+
https://github.com/planetis-m/sync
101+
https://github.com/soasme/nim-markdown
102+
https://github.com/soasme/nim-mustache
65103
https://github.com/status-im/nim-bearssl
66-
https://github.com/juancarlospaco/nim-bytes2human
67104
https://github.com/status-im/nim-chronicles
68105
https://github.com/status-im/nim-chronos
69106
https://github.com/status-im/nim-confutils
70107
https://github.com/status-im/nim-faststreams
71-
https://github.com/nitely/nim-graphemes
72108
https://github.com/status-im/nim-http-utils
73109
https://github.com/status-im/nim-json-serialization
74-
https://github.com/soasme/nim-markdown
75-
https://github.com/soasme/nim-mustache
76110
https://github.com/status-im/nim-ranges
77-
https://github.com/nitely/nim-regex
78-
https://github.com/arnetheduck/nim-results
79-
https://github.com/nitely/nim-segmentation
80111
https://github.com/status-im/nim-serialization
81112
https://github.com/status-im/nim-snappy
82113
https://github.com/status-im/nim-stew
83-
https://github.com/FedericoCeratto/nim-syslog
84114
https://github.com/status-im/nim-testutils
85115
https://github.com/status-im/nim-toml-serialization
86-
https://github.com/nitely/nim-unicodedb
87-
https://github.com/nitely/nim-unicodeplus
88116
https://github.com/status-im/nim-unittest2
89-
https://github.com/nim-lang/nimble
90-
https://github.com/cheatfate/nimcrypto
91-
https://github.com/pietroppeter/nimib
92-
https://github.com/pietroppeter/nimibook
93-
https://github.com/GULPF/nimquery
117+
https://github.com/timotheecour/asynctools
118+
https://github.com/treeform/flatty
119+
https://github.com/treeform/jsony
120+
https://github.com/treeform/ws
121+
https://github.com/xmonader/nim-terminaltables
122+
https://github.com/xzfc/ndb.nim
123+
https://github.com/zedeus/httpbeast
124+
https://github.com/zedeus/jester
94125
https://github.com/zedeus/nitter
95-
https://github.com/moigagoo/norm
96-
https://github.com/zevv/npeg
97-
https://github.com/CORDEA/oauth
98-
https://github.com/nim-lang/packages
99-
https://github.com/Araq/packedjson
100-
https://github.com/NimParsers/parsetoml
101-
https://github.com/nimpylib/pylib
102-
https://github.com/OpenSystemsLab/q.nim
103126
https://github.com/zedeus/redis
104127
https://github.com/zedeus/redpool
105-
https://github.com/dom96/sass
106-
https://github.com/nim-lang/sat
107-
https://github.com/onionhammer/sha1
108-
https://github.com/narimiran/sorta
109-
https://github.com/guzba/supersnappy
110-
https://github.com/OpenSystemsLab/tempfile.nim
111-
https://github.com/disruptek/testes
112-
https://github.com/disruptek/testutils
113-
https://github.com/disruptek/ups
114-
https://github.com/treeform/ws
115-
https://github.com/guzba/zippy
128+
https://github.com/zevv/npeg
116129
"""
117130
repos.strip(chars={'\n'}).splitLines()
118131

0 commit comments

Comments
 (0)