File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727 - name : Run tests
2828 run : |
29- docker run --rm -v ${{ github.workspace }}:/src -v /mnt/jenkins:/mnt/jenkins:rw -v /var/cache/jenkins:/var/cache/jenkins:rw ci_rust_$GITHUB_SHA bash -ex -c '
29+ docker run --rm -v ${{ github.workspace }}:/src -v /mnt/jenkins/python-sdk-ci-test:/root/Documents/cepton w ci_rust_$GITHUB_SHA bash -ex -c '
3030 cd /app
3131 python3 -m unittest discover -s tests
3232 '
Original file line number Diff line number Diff line change 11# Use official Python 3.12 base image
22FROM python:3.12-slim
33
4+
45WORKDIR /app
6+
7+ # Create a location where the test calibration files will go
8+ RUN mkdir -p /root/Documents/cepton
9+
510COPY . .
611RUN pip install --upgrade pip && pip install .
712
Original file line number Diff line number Diff line change @@ -12,3 +12,18 @@ def test_initialize(self):
1212 """Test initialize and deinitialize"""
1313 sdk .initialize ()
1414 sdk .deinitialize ()
15+
16+ def test_replay (self ):
17+ """Test that replay works"""
18+ sdk .initialize ()
19+ sdk .enable_frame_fifo (0 , 10 )
20+ sdk .load_pcap ("/root/Documents/cepton/lobby-1.pcap" )
21+
22+ frame_counts = []
23+ for _ in range (10 ):
24+ frame = sdk .frame_fifo_get_frame (2000 )
25+ frame_counts .append (frame .positions .shape [0 ])
26+
27+ self .assertTrue (all (count > 0 for count in frame_counts ))
28+
29+ sdk .deinitialize ()
You can’t perform that action at this time.
0 commit comments