File: test.sh

package info (click to toggle)
caffe 1.0.0%2Bgit20180821.99bd997-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,288 kB
  • sloc: cpp: 61,586; python: 5,783; makefile: 599; sh: 559
file content (19 lines) | stat: -rwxr-xr-x 257 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# test the project

BASEDIR=$(dirname $0)
source $BASEDIR/defaults.sh

if $WITH_CUDA ; then
  echo "Skipping tests for CUDA build"
  exit 0
fi

if ! $WITH_CMAKE ; then
  make runtest
  make pytest
else
  cd build
  make runtest
  make pytest
fi