|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
Environment:
|
Linux warszawa 2.6.17-debian-etch-lrde-v7 #2 SMP PREEMPT Fri Jun 23 07:21:36 CEST 2006 i686 GNU/Linux
Stratego/XT 0.17M1pre15421
gcc (GCC) 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)
Linux warszawa 2.6.17-debian-etch-lrde-v7 #2 SMP PREEMPT Fri Jun 23 07:21:36 CEST 2006 i686 GNU/Linux
Stratego/XT 0.17M1pre15421
gcc (GCC) 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)
|
|
|
XTC should not allow a tool to be registered with different version but identical path. In this case, only the latest version should be kept in the repository.
XTC should not allow a tool to be registered with identical versions but different paths. In this case, only the latest path should be kept in the repository.
Sample:
/tmp/xtc $ xtc -r repos register -l `pwd` -V 1.0 -t foobar
/tmp/xtc $ xtc -r repos query -a
foobar (1.0) : /tmp/xtc/foobar
/tmp/xtc $ xtc -r repos register -l `pwd` -V 1.1 -t foobar
/tmp/xtc $ xtc -r repos query -a
foobar (1.1) : /tmp/xtc/foobar
foobar (1.0) : /tmp/xtc/foobar
/tmp/xtc $ xtc -r repos register -l /dev/null -V 1.1 -t foobar
/tmp/xtc $ xtc -r repos query -a
foobar (1.1) : /dev/null/foobar
foobar (1.1) : /tmp/xtc/foobar
foobar (1.0) : /tmp/xtc/foobar
/tmp/xtc $ pp-aterm -i repos
[ (Repository, ["repos"])
, (Imported("repos"), [])
, ( Tool("foobar")
, [("1.1", "/dev/null/foobar"), ("1.1", "/tmp/xtc/foobar"), ("1.0", "/tmp/xtc/foobar")]
)
]
|
|
Description
|
XTC should not allow a tool to be registered with different version but identical path. In this case, only the latest version should be kept in the repository.
XTC should not allow a tool to be registered with identical versions but different paths. In this case, only the latest path should be kept in the repository.
Sample:
/tmp/xtc $ xtc -r repos register -l `pwd` -V 1.0 -t foobar
/tmp/xtc $ xtc -r repos query -a
foobar (1.0) : /tmp/xtc/foobar
/tmp/xtc $ xtc -r repos register -l `pwd` -V 1.1 -t foobar
/tmp/xtc $ xtc -r repos query -a
foobar (1.1) : /tmp/xtc/foobar
foobar (1.0) : /tmp/xtc/foobar
/tmp/xtc $ xtc -r repos register -l /dev/null -V 1.1 -t foobar
/tmp/xtc $ xtc -r repos query -a
foobar (1.1) : /dev/null/foobar
foobar (1.1) : /tmp/xtc/foobar
foobar (1.0) : /tmp/xtc/foobar
/tmp/xtc $ pp-aterm -i repos
[ (Repository, ["repos"])
, (Imported("repos"), [])
, ( Tool("foobar")
, [("1.1", "/dev/null/foobar"), ("1.1", "/tmp/xtc/foobar"), ("1.0", "/tmp/xtc/foobar")]
)
]
|
Show » |
|
|
$ xtc -r repos register -l `pwd` -V 1.0 -t foobar
$ xtc -r repos query -a
foobar (1.0) : /home/martin/tmp/xtc/foobar
$ xtc -r repos register -l `pwd` -V 1.1 -t foobar
$ xtc -r repos query -a
foobar (1.1) : /home/martin/tmp/xtc/foobar
$ xtc -r repos register -l /dev/null -V 1.1 -t foobar
$ xtc -r repos query -a
foobar (1.1) : /dev/null/foobar
$ pp-aterm -i repos
[ (Repository(), ["repos"])
, (Imported("repos"), [])
, (Tool("foobar"), [("1.1", "/dev/null/foobar")])
]
$ xtc -r repos register -l /usr -V 1.2 -t foobar
$ xtc -r repos query -a
foobar (1.2) : /usr/foobar
foobar (1.1) : /dev/null/foobar
$ pp-aterm -i repos
[ (Repository(), ["repos"])
, (Imported("repos"), [])
, (Tool("foobar"), [("1.2", "/usr/foobar"), ("1.1", "/dev/null/foobar")])
]