Debian Codegraph @

tests/test-threading

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # test (some) efivar thread safety
4 #
5 # Copyright Jonathan Marler
6
7 set -e
8
9 if [scip-shell system . . `[`. "x$TOPDIR" = "x" ] ; then
10 TOPDIR="$(realpathscip-shell system . . realpath. "$(dirnamescip-shell system . . dirname. "$0")/../")"
11 fi
12
13 rmscip-shell system . . rm. -rf scratch
14 mkdirscip-shell system . . mkdir. scratch
15
16 EFIVARFS_PATH=""
17 LD_LIBRARY_PATH=""
18 LIBEFIVAR_OPS=""
19
20 EFIVARFS_PATH=$(realpathscip-shell system . . realpath. scratch)/
21 LD_LIBRARY_PATH="${TOPDIR}/src/"
22 LIBEFIVAR_OPS=efivarfs
23 export EFIVARFS_PATH LD_LIBRARY_PATH LIBEFIVAR_OPS
24
25 testscip-shell shell efivar 39-2 test().() {
26 echoscip-shell system . . echo. -n "testing $1 thread..."
27 "${TOPDIR}/src/thread-test" -t "$1"
28 }
29
30 testscip-shell shell efivar 39-2 test(). 1
31 testscip-shell shell efivar 39-2 test(). 2
32 testscip-shell shell efivar 39-2 test(). 4
33 testscip-shell shell efivar 39-2 test(). 64