Compare commits
No commits in common. 'i9' and 'epel9' have entirely different histories.
@ -1 +1,14 @@
|
||||
SOURCES/test.tar.gz
|
||||
*~
|
||||
*.swp
|
||||
__pycache__/
|
||||
*.pyc
|
||||
nodejs_req.py
|
||||
test/*/package.json
|
||||
test/*/nodejs.prov.err
|
||||
test/*/nodejs.prov.out
|
||||
test/*/nodejs.req.err
|
||||
test/*/nodejs.req.out
|
||||
*.rpm
|
||||
.build-*.log
|
||||
noarch/
|
||||
/test.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
dfaa3308397a75e566baec53cc32e6a635eca1e9 SOURCES/test.tar.gz
|
@ -0,0 +1 @@
|
||||
SHA512 (test.tar.gz) = dfbda67b8741f1ca36bf63b2e842f81ba07381b3d92e75fa7e29f8e456543b4cae55e95785902f31a14ae4d0b7e89161ba04c0c10c2fff617b4ae9607c91e599
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "test100",
|
||||
"version": "1.3.5"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "test101",
|
||||
"version": "2.1.4"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
bundled(nodejs-test100) = 1.3.5
|
||||
bundled(nodejs-test101) = 2.1.4
|
||||
npm(test) = 4.5.6
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "test",
|
||||
"version": "4.5.6",
|
||||
"engines": {
|
||||
"node": ">=6 <10"
|
||||
},
|
||||
"dependencies": {
|
||||
"test100": "^1.2.3",
|
||||
"test101": ">=2.1"
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
ln -sf nodejs.req nodejs_req.py
|
||||
"$(command -v python2 || echo :)" -m doctest nodejs_req.py || exit 1
|
||||
"$(command -v python3 || echo :)" -m doctest nodejs_req.py || exit 1
|
||||
|
||||
for test in unbundled bundled
|
||||
do
|
||||
sed -e "s|//.*$||" < test/$test/package.json.in > test/$test/package.json
|
||||
|
||||
echo test/$test/package.json | ./nodejs.prov test/$test/package.json > test/$test/nodejs.prov.out 2> test/$test/nodejs.prov.err
|
||||
diff -uw test/$test/nodejs.prov.err.exp test/$test/nodejs.prov.err || exit 1
|
||||
diff -uw test/$test/nodejs.prov.out.exp test/$test/nodejs.prov.out || exit 1
|
||||
|
||||
echo test/$test/package.json | ./nodejs.req test/$test/package.json > test/$test/nodejs.req.out 2> test/$test/nodejs.req.err
|
||||
diff -uw test/$test/nodejs.req.err.exp test/$test/nodejs.req.err || exit 1
|
||||
diff -uw test/$test/nodejs.req.out.exp test/$test/nodejs.req.out || exit 1
|
||||
done
|
@ -0,0 +1 @@
|
||||
npm(test) = 4.5.6
|
@ -0,0 +1,2 @@
|
||||
WARNING: The npm(test900) dependency contains an OR (||) dependency: '^1.2 || ^2.2.
|
||||
Please manually include a versioned dependency in your spec file if necessary
|
@ -0,0 +1,74 @@
|
||||
(nodejs(engine) >= 6 with nodejs(engine) < 10)
|
||||
(npm(test100) >= 1 with npm(test100) < 2)
|
||||
(npm(test101) >= 1 with npm(test101) < 2)
|
||||
(npm(test102) >= 1 with npm(test102) < 2)
|
||||
(npm(test103) >= 1 with npm(test103) < 2)
|
||||
(npm(test104) >= 1.2 with npm(test104) < 1.3)
|
||||
(npm(test105) >= 1.2 with npm(test105) < 1.3)
|
||||
(npm(test106) >= 1.2 with npm(test106) < 1.3)
|
||||
(npm(test107) >= 1.2 with npm(test107) < 1.3)
|
||||
(npm(test108) >= 1.2.3 with npm(test108) < 1.2.4)
|
||||
(npm(test109) >= 1.2.3 with npm(test109) < 1.2.4)
|
||||
(npm(test110) >= 1.2.3 with npm(test110) < 1.2.4)
|
||||
(npm(test111) >= 1.2.3 with npm(test111) < 1.2.4)
|
||||
npm(test200) > 1
|
||||
npm(test201) > 1.2
|
||||
npm(test202) > 1.2.3
|
||||
npm(test203) >= 1
|
||||
npm(test204) >= 1.2
|
||||
npm(test205) >= 1.2.3
|
||||
npm(test206) < 2
|
||||
npm(test207) < 2.3
|
||||
npm(test208) < 2.3.4
|
||||
npm(test209) <= 2
|
||||
npm(test210) <= 2.3
|
||||
npm(test211) <= 2.3.4
|
||||
(npm(test300) > 1 with npm(test300) < 2)
|
||||
(npm(test301) > 1.2 with npm(test301) < 2.3)
|
||||
(npm(test302) > 1.2.3 with npm(test302) < 2.3.4)
|
||||
(npm(test303) >= 1 with npm(test303) <= 2)
|
||||
(npm(test304) >= 1.2 with npm(test304) <= 2.3)
|
||||
(npm(test305) >= 1.2.3 with npm(test305) <= 2.3.4)
|
||||
(npm(test306) > 1 with npm(test306) < 2)
|
||||
(npm(test307) > 1.2 with npm(test307) < 2.3)
|
||||
(npm(test308) > 1.2.3 with npm(test308) < 2.3.4)
|
||||
(npm(test309) >= 1 with npm(test309) <= 2)
|
||||
(npm(test310) >= 1.2 with npm(test310) <= 2.3)
|
||||
(npm(test311) >= 1.2.3 with npm(test311) <= 2.3.4)
|
||||
(npm(test400) >= 1.2.3 with npm(test400) <= 2.3.4)
|
||||
(npm(test401) >= 1.2.3 with npm(test401) < 2.4)
|
||||
(npm(test402) >= 1.2.3 with npm(test402) < 3)
|
||||
(npm(test403) >= 1.2 with npm(test403) <= 2.3.4)
|
||||
(npm(test404) >= 1 with npm(test404) <= 2.3.4)
|
||||
(npm(test405) >= 1.2 with npm(test405) < 2.4)
|
||||
(npm(test406) >= 1.2 with npm(test406) < 3)
|
||||
(npm(test407) >= 1 with npm(test407) < 2.4)
|
||||
(npm(test408) >= 1 with npm(test408) < 3)
|
||||
(npm(test500) >= 1.2 with npm(test500) < 1.3)
|
||||
(npm(test501) >= 1.2 with npm(test501) < 1.3)
|
||||
(npm(test502) >= 1 with npm(test502) < 2)
|
||||
(npm(test503) >= 1 with npm(test503) < 2)
|
||||
npm(test504)
|
||||
npm(test505)
|
||||
(npm(test600) >= 1.2.3 with npm(test600) < 1.3)
|
||||
(npm(test601) >= 1.2 with npm(test601) < 1.3)
|
||||
(npm(test602) >= 1.2 with npm(test602) < 1.3)
|
||||
(npm(test603) >= 1 with npm(test603) < 2)
|
||||
(npm(test604) >= 1 with npm(test604) < 2)
|
||||
(npm(test700) >= 1.2.3 with npm(test700) < 2)
|
||||
(npm(test701) >= 0.2.3 with npm(test701) < 0.3)
|
||||
(npm(test702) >= 0.0.3 with npm(test702) < 0.0.4)
|
||||
(npm(test703) >= 1.2 with npm(test703) < 2)
|
||||
(npm(test704) >= 1.2 with npm(test704) < 2)
|
||||
(npm(test705) >= 0.1 with npm(test705) < 0.2)
|
||||
(npm(test706) >= 0.1 with npm(test706) < 0.2)
|
||||
(npm(test707) >= 1 with npm(test707) < 2)
|
||||
(npm(test708) >= 1 with npm(test708) < 2)
|
||||
npm(test709) < 0.1
|
||||
npm(test710) < 0.1
|
||||
npm(test711) < 1
|
||||
npm(test712) < 1
|
||||
npm(test750) >= 0.10
|
||||
(npm(test751) >= 0.10 with npm(test751) <= 6)
|
||||
(npm(test800) > 1.2 with npm(test800) < 1.9)
|
||||
npm(test900)
|
@ -0,0 +1,108 @@
|
||||
{
|
||||
"name": "test",
|
||||
"version": "4.5.6",
|
||||
"engines": {
|
||||
"node": ">=6 <10"
|
||||
},
|
||||
"dependencies": {
|
||||
// Single version
|
||||
"test100": "1",
|
||||
"test101": "=1",
|
||||
"test102": "v1",
|
||||
"test103": "=v1",
|
||||
"test104": "1.2",
|
||||
"test105": "=1.2",
|
||||
"test106": "v1.2",
|
||||
"test107": "=v1.2",
|
||||
"test108": "1.2.3",
|
||||
"test109": "=1.2.3",
|
||||
"test110": "v1.2.3",
|
||||
"test111": "=v1.2.3",
|
||||
|
||||
// Ranges with one comparator
|
||||
"test200": ">1",
|
||||
"test201": ">1.2",
|
||||
"test202": ">1.2.3",
|
||||
"test203": ">=1",
|
||||
"test204": ">=1.2",
|
||||
"test205": ">=1.2.3",
|
||||
"test206": "<2",
|
||||
"test207": "<2.3",
|
||||
"test208": "<2.3.4",
|
||||
"test209": "<=2",
|
||||
"test210": "<=2.3",
|
||||
"test211": "<=2.3.4",
|
||||
|
||||
// Ranges with two comparators
|
||||
"test300": ">1 <2",
|
||||
"test301": ">1.2 <2.3",
|
||||
"test302": ">1.2.3 <2.3.4",
|
||||
"test303": ">=1 <=2",
|
||||
"test304": ">=1.2 <=2.3",
|
||||
"test305": ">=1.2.3 <=2.3.4",
|
||||
"test306": "<2 >1",
|
||||
"test307": "<2.3 >1.2",
|
||||
"test308": "<2.3.4 >1.2.3",
|
||||
"test309": "<=2 >=1",
|
||||
"test310": "<=2.3 >=1.2",
|
||||
"test311": "<=2.3.4 >=1.2.3",
|
||||
|
||||
// Hyphen ranges
|
||||
"test400": "1.2.3 - 2.3.4",
|
||||
"test401": "1.2.3 - 2.3",
|
||||
"test402": "1.2.3 - 2",
|
||||
"test403": "1.2 - 2.3.4",
|
||||
"test404": "1 - 2.3.4",
|
||||
"test405": "1.2 - 2.3",
|
||||
"test406": "1.2 - 2",
|
||||
"test407": "1 - 2.3",
|
||||
"test408": "1 - 2",
|
||||
|
||||
// X-Ranges
|
||||
"test500": "1.2.x",
|
||||
"test501": "1.2.*",
|
||||
"test502": "1.x",
|
||||
"test503": "1.*",
|
||||
"test504": "*",
|
||||
"test505": "",
|
||||
|
||||
// Tilde ranges
|
||||
"test600": "~1.2.3",
|
||||
"test601": "~1.2.x",
|
||||
"test602": "~1.2",
|
||||
"test603": "~1.x",
|
||||
"test604": "~1",
|
||||
|
||||
// Caret ranges
|
||||
"test700": "^1.2.3",
|
||||
"test701": "^0.2.3",
|
||||
"test702": "^0.0.3",
|
||||
"test703": "^1.2.x",
|
||||
"test704": "^1.2",
|
||||
"test705": "^0.1.x",
|
||||
"test706": "^0.1",
|
||||
"test707": "^1.x",
|
||||
"test708": "^1",
|
||||
"test709": "^0.0.x",
|
||||
"test710": "^0.0",
|
||||
"test711": "^0.x",
|
||||
"test712": "^0",
|
||||
|
||||
// Space after the operator
|
||||
// (the grammar does not permit this, but it is accepted in practice)
|
||||
"test750": ">= 0.10",
|
||||
"test751": ">= 0.10 <= 6",
|
||||
|
||||
// More than two comparators in a set
|
||||
// (no reason for this to ever appear, but it is permitted)
|
||||
"test800": ">1.2 <2.0 <1.9",
|
||||
|
||||
// The following cases are not implemented currently...
|
||||
|
||||
// Multiple comparator sets separated by ||
|
||||
"test900": "^1.2 || ^2.2"
|
||||
|
||||
// The whole pre-release stuff: https://docs.npmjs.com/misc/semver//prerelease-tags
|
||||
// which is not even enumerated here because it is so complex.
|
||||
}
|
||||
}
|
Loading…
Reference in new issue