Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
fix stress-test
Browse files Browse the repository at this point in the history
  • Loading branch information
john-tornblom committed Apr 9, 2024
1 parent a0b068a commit ad10fc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions stress-test/Makefile
Expand Up @@ -18,20 +18,18 @@ PS5_HOST ?= ps5
PS5_PORT ?= 9021

ifdef PS5_PAYLOAD_SDK
include $(PS5_PAYLOAD_SDK)/make/x86_64-ps5-payload.inc
include $(PS5_PAYLOAD_SDK)/make/toolchain.mk
else
$(error PS5_PAYLOAD_SDK is undefined)
endif

LDADD += -lkernel_web

all: getpid_test.elf

getpid_test.elf: getpid_test.o
$(LD) $^ $(LDADD) -o $@
getpid_test.elf: getpid_test.c
$(CC) -o $@ $^

clean:
rm -f *.o *.elf
rm -f *.elf

getpid_test: getpid_test.elf
@nc -q0 $(PS5_HOST) $(PS5_PORT) < $^
test: getpid_test.elf
$(PS5_DEPLOY) -h $(PS5_HOST) -p $(PS5_PORT) $^
2 changes: 1 addition & 1 deletion stress-test/stress-test.sh
Expand Up @@ -25,5 +25,5 @@ sleep 3

for i in {1..5000}
do
make getpid_test || exit 1
make test || exit 1
done

0 comments on commit ad10fc4

Please sign in to comment.