perf/core: Replace zero-length array with flexible-array
[linux-2.6-microblaze.git] / tools / testing / selftests / tpm2 / test_smoke.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3 self.flags = flags
4
5 # Kselftest framework requirement - SKIP code is 4.
6 ksft_skip=4
7
8
9 if [ -f /dev/tpm0 ] ; then
10         python -m unittest -v tpm2_tests.SmokeTest
11         python -m unittest -v tpm2_tests.AsyncTest
12 else
13         exit $ksft_skip
14 fi
15
16 CLEAR_CMD=$(which tpm2_clear)
17 if [ -n $CLEAR_CMD ]; then
18         tpm2_clear -T device
19 fi