Files
anvil/data/tests/requirements.yaml
Joshua Harlow d3e2377269 Add a way to test multipip against many samples
Add a test that can read from a data test yaml file
to test alot of multipip version checks at once, making
it easy to add new tests (and delete older ones) in a
relatively simpler manner.

- Move all current sample tests to this new format.
- Fix a bug in allowing variations of matching x<1, x<4
  as a good combination.

Change-Id: I66b806c6d1d804c0de4957f95dda93b0390f94c0
2014-03-28 14:28:01 -07:00

44 lines
672 B
YAML

---
- expected: a>1
requirements:
- a>1
- a>2
- expected: a<0.5
requirements:
# Both are mutually incompat., due to sorting the lower one will be selected first.
- a>1
- a<0.5
conflicts:
a: ["a>1"]
- expected: a>1
requirements:
# More requests for >1 should then select >1
- a>1
- a>1
- a<0.5
conflicts:
a: ["a<0.5"]
- expected: "x!=2,!=3\ny>3"
requirements:
- "x!=2"
- "x!=3"
- "y>3"
- expected: "x>1"
requirements:
- x>1
- x>2
- expected: 'x>1,!=2'
requirements:
- x>1
- x>=2
- x!=2
- expected: "x>1,!=2"
requirements:
- x>1
- x>=2
- x!=2
- x>4
- x>5
...