File: test-wheels.sh

package info (click to toggle)
python-confluent-kafka 1.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,900 kB
  • sloc: python: 8,335; ansic: 6,065; sh: 1,203; makefile: 178
file content (50 lines) | stat: -rwxr-xr-x 1,067 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#

# Test wheels in given directory.
# Should preferably be run on OSX and requires Docker (for Linux tests).
# Must be run from the top-level project directory.

set -e

if [[ -z $1 ]]; then
    echo "Usage: $0 <wheel-directory>"
    exit 1
fi

if [[ ! -f tools/$(basename $0) ]]; then
    echo "Needs to be run from the top-level project directory"
    exit 1
fi


set -u

wheeldir="$1"

if [[ ! -d $wheeldir ]]; then
    echo "Wheel directory $wheeldir does not exist"
    exit 1
fi


echo "##################################"
echo "#### Testing packages locally ####"
echo "#### $wheeldir ####"
echo "##################################"

echo "# Smoke testing locally"
tools/smoketest.sh "$wheeldir"

if which docker ; then
    echo "# Smoke testing on many linux distros"
    tools/test-manylinux.sh "$wheeldir"
else
    echo "# Not smoke-testing on many linux distros: docker not available"
fi

echo "##################################"
echo "#### Tests passed for         ####"
echo "#### $wheeldir ####"
echo "##################################"