aboutsummaryrefslogtreecommitdiff
path: root/test/performance/odp_scheduling_run
blob: 755b0c1f76314c5bfb8f4f891bf1c603865a397a (plain)
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
#!/bin/sh
#
# Copyright (c) 2015, Linaro Limited
# All rights reserved.
#
# SPDX-License-Identifier:	BSD-3-Clause
#
# Script that passes command line arguments to odp_scheduling test when
# launched by 'make check'

TEST_DIR="${TEST_DIR:-$(dirname $0)}"
ret=0

run()
{
	echo odp_scheduling_run starts with $1 worker threads
	echo ===============================================

	$TEST_DIR/odp_scheduling${EXEEXT} -c $1 || ret=1
}

run 1
run 8

exit $ret