File: test.sh

package info (click to toggle)
verilog-parser 0.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: python: 468; sh: 7; makefile: 3
file content (15 lines) | stat: -rwxr-xr-x 249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# SPDX-FileCopyrightText: 2024 Thomas Kramer
#
# SPDX-License-Identifier: CC0-1.0

set -e

if [ "$(which pytest)" ]; then
  echo run unit tests...
  pytest $(find src -name \*.py)
else
  echo "pytest not found, skipping unit tests"
fi