Merge pull request #1128 from aurutils/depends-pm
[aurutils.git] / tests / issue / 0958
blobd45eca0f669ee4e2ab91d20fe3f2029c87ff9f0b
1 #!/bin/bash
2 set -e
3 tmp=$(mktemp -d)
4 trap 'rm -rf "$tmp"' EXIT
6 cd "$tmp"
7 aur fetch aurutils kittypack
8 env -C aurutils git checkout -b release 5394b42c1fcd3dfc3154456cfc5b9b2cbe432e0c # 7.2
9 env -C kittypack git checkout -b release a2a0f32d9de4d50418b1aa64127b45fcd2add93d # 0.2.3
11 aur srcver aurutils kittypack >"$tmp"/results
12 { read -r name1 version1
13 read -r name2 version2
14 } <"$tmp"/results
16 [[ $name1 == "aurutils" ]]
17 [[ $name2 == "kittypack" ]]
18 [[ $version1 == "7.2-1" ]]
19 [[ $version2 == "0.2.3-1" ]]