~frankban/juju-core/isolation-tests

« back to all changes in this revision

Viewing changes to environs/testing/tools.go

[r=thumper] Make versions aware of alpha, beta, dev tags.

Update the version number structure to have a tag.
A development version is an odd minor before 1.19.3
or anything with a tag after that (or a non-zero
build number).

Using the following format:
  {major}.{minor}.{patch} # if tag empty and build 0
  {major}.{minor}.{patch}.{build} # if tag empty
  {major}.{minor}-{tag}{patch} # if build 0
  {major}.{minor}-{tag}{patch}.{build}

This way any tag gets sorted before a release
using deb version sort.

I don't care and the code doesn't check about
alpha/beta vs. dev tags, but sorts them lexically.

https://codereview.appspot.com/100700044/

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
        V220all = []version.Binary{V220p64, V220p32, V220q64, V220q32}
296
296
        VAll    = append(V1all, V220all...)
297
297
 
298
 
        V310qppc64  = version.MustParseBinary("3.1.0-quantal-ppc64")
299
 
        V3101qppc64 = version.MustParseBinary("3.1.0.1-quantal-ppc64")
 
298
        V31d0qppc64  = version.MustParseBinary("3.1-dev0-quantal-ppc64")
 
299
        V31d01qppc64 = version.MustParseBinary("3.1-dev0.1-quantal-ppc64")
300
300
)
301
301
 
302
302
type BootstrapToolsTest struct {