mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-23 23:25:53 +02:00
147 lines
2.0 KiB
Plaintext
147 lines
2.0 KiB
Plaintext
|
#!/bin/sh
|
||
|
. ./Common
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "sort versions 1 2 3" list <<EOF
|
||
|
Package: X
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: X_1
|
||
|
|
||
|
Package: X
|
||
|
Version: 2
|
||
|
Architecture: test
|
||
|
Filename: X_2
|
||
|
|
||
|
Package: X
|
||
|
Version: 3
|
||
|
Architecture: test
|
||
|
Filename: X_3
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
X (3) +++
|
||
|
X (2) +++
|
||
|
X (1)
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "sort versions 1 3 2" list <<EOF
|
||
|
Package: X
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: X_1
|
||
|
|
||
|
Package: X
|
||
|
Version: 3
|
||
|
Architecture: test
|
||
|
Filename: X_3
|
||
|
|
||
|
Package: X
|
||
|
Version: 2
|
||
|
Architecture: test
|
||
|
Filename: X_2
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
X (3) +++
|
||
|
X (2) +++
|
||
|
X (1)
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "sort versions 2 1 3" list <<EOF
|
||
|
Package: X
|
||
|
Version: 2
|
||
|
Architecture: test
|
||
|
Filename: X_2
|
||
|
|
||
|
Package: X
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: X_1
|
||
|
|
||
|
Package: X
|
||
|
Version: 3
|
||
|
Architecture: test
|
||
|
Filename: X_3
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
X (3) +++
|
||
|
X (2) +++
|
||
|
X (1)
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "sort versions 2 3 1" list <<EOF
|
||
|
Package: X
|
||
|
Version: 2
|
||
|
Architecture: test
|
||
|
Filename: X_2
|
||
|
|
||
|
Package: X
|
||
|
Version: 3
|
||
|
Architecture: test
|
||
|
Filename: X_3
|
||
|
|
||
|
Package: X
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: X_1
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
X (3) +++
|
||
|
X (2) +++
|
||
|
X (1)
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "sort versions 3 1 2" list <<EOF
|
||
|
Package: X
|
||
|
Version: 3
|
||
|
Architecture: test
|
||
|
Filename: X_3
|
||
|
|
||
|
Package: X
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: X_1
|
||
|
|
||
|
Package: X
|
||
|
Version: 2
|
||
|
Architecture: test
|
||
|
Filename: X_2
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
X (3) +++
|
||
|
X (2) +++
|
||
|
X (1)
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "sort versions 3 2 1" list <<EOF
|
||
|
Package: X
|
||
|
Version: 3
|
||
|
Architecture: test
|
||
|
Filename: X_3
|
||
|
|
||
|
Package: X
|
||
|
Version: 2
|
||
|
Architecture: test
|
||
|
Filename: X_2
|
||
|
|
||
|
Package: X
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: X_1
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
X (3) +++
|
||
|
X (2) +++
|
||
|
X (1)
|
||
|
EOF
|