When checking if $PYTHON_COMMAND exists, curly braces should be used instead of parentheses. Also, "1" causes an error on FreeBSD: it's likely supposed to be 2>&1 like other scripts. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
16 lines
377 B
Makefile
16 lines
377 B
Makefile
## @file
|
|
# GNU/Linux makefile for 'Tests' module build.
|
|
#
|
|
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
|
|
all: test
|
|
|
|
test:
|
|
@if command -v ${PYTHON_COMMAND} >/dev/null 2>&1; then ${PYTHON_COMMAND} RunTests.py; else python RunTests.py; fi
|
|
|
|
clean:
|
|
find . -name '*.pyc' -exec rm '{}' ';'
|
|
|