Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit f909380

Browse files
hiento09jan-service-account
authored andcommitted
add test script for mac
1 parent a0130e0 commit f909380

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/scripts/linux.sh renamed to .github/scripts/linux-and-mac.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
## Example run command
4+
# ./linux-and-mac.sh './jan/plugins/@janhq/inference-plugin/dist/nitro/nitro_mac_arm64' https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF/resolve/main/tinyllama-1.1b-chat-v0.3.Q2_K.gguf
5+
36
# Check for required arguments
47
if [[ $# -ne 2 ]]; then
58
echo "Usage: $0 <path_to_binary> <url_to_download>"
@@ -12,7 +15,7 @@ BINARY_PATH=$1
1215
DOWNLOAD_URL=$2
1316

1417
# Start the binary file
15-
$BINARY_PATH > /tmp/nitro.log 2>&1 &
18+
"$BINARY_PATH" > /tmp/nitro.log 2>&1 &
1619

1720
# Get the process id of the binary file
1821
pid=$!
@@ -83,6 +86,15 @@ if [[ "$error_occurred" -eq 1 ]]; then
8386
exit 1
8487
fi
8588

89+
echo "----------------------"
90+
echo "Log load model:"
91+
cat /tmp/response1.log
92+
93+
echo "----------------------"
94+
echo "Log run test:"
95+
cat /tmp/response2.log
96+
97+
8698
echo "Nitro test run successfully!"
8799

88100
# Kill the server process

0 commit comments

Comments
 (0)