Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
 
# This is for testing GPU final jar on Linux
set -e -o -x
 
usage() { echo "Usage: $0 [-r <binary directory>] [-v <version number>]" 1>&2; exit 1; }
 
while getopts r:v: parameter_Option
do case "${parameter_Option}"
in
r) BINARY_DIR=${OPTARG};;
v) VERSION_NUMBER=${OPTARG};;
*) usage ;;
esac
done
 
EXIT_CODE=1
 
uname -a
 
cd "$BINARY_DIR/onnxruntime-java"
rm -f *.asc
rm -f *.sha256
rm -f *.sha1
rm -f *.md5
rm -f *.sha512
rm -f *.pom
ls
cd ..
mkdir tests
cd tests
jar xf ../onnxruntime-java/testing.jar
rm -f ../onnxruntime-java/testing.jar
echo "Contents of tests directory ($BINARY_DIR/tests):"
ls "$BINARY_DIR/tests"
echo "Java Version"
java -version
 
echo "Directories created"
echo  "Library path:" "$LD_LIBRARY_PATH"
 
java -DUSE_CUDA=1 -cp "$BINARY_DIR/tests:$BINARY_DIR/onnxruntime-java/*" org.junit.platform.console.ConsoleLauncher --scan-classpath="$BINARY_DIR/tests" \
            --fail-if-no-tests --disable-banner