-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
executable file
·33 lines (28 loc) · 1.08 KB
/
test.sh
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
26
27
28
29
30
31
32
33
#!/bin/bash
# SPDX-FileCopyrightText: Copyright 2023 Arm Limited and/or its affiliates <[email protected]>
# SPDX-License-Identifier: Apache-2.0 OR MIT
set -eu
SSHHOST="${SSHHOST:?Set SSHHOST to the hostname of a Morello machine (or model).}"
REMOTEDIR="${REMOTEDIR:-capmap}"
if [ -z "${NOFMT+nofmt}" ]; then
make clang-format-check
else
echo "Skipping clang-format check because NOFMT is set."
fi
make -j10
ssh -q "$SSHHOST" mkdir -p "$REMOTEDIR"
scp -q *.so test-* example-*-morello-* "$SSHHOST":"$REMOTEDIR/"
if [ -z "${NORUN+norun}" ]; then
ssh "$SSHHOST" "set -eu;
cd $REMOTEDIR;
./test-morello-purecap;
./test-morello-hybrid;
echo -n \"Running example-default-morello-purecap... \";
./example-default-morello-purecap > /dev/null;
echo \"Ok\";
echo -n \"Running example-default-morello-hybrid... \";
./example-default-morello-hybrid > /dev/null;
echo \"Ok\";"
else
echo "Skipping test run because NORUN is set."
fi