diff --git a/stress-test/Makefile b/stress-test/Makefile index af8e89a..7c517de 100644 --- a/stress-test/Makefile +++ b/stress-test/Makefile @@ -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) $^ diff --git a/stress-test/stress-test.sh b/stress-test/stress-test.sh index 64d284a..451515b 100755 --- a/stress-test/stress-test.sh +++ b/stress-test/stress-test.sh @@ -25,5 +25,5 @@ sleep 3 for i in {1..5000} do - make getpid_test || exit 1 + make test || exit 1 done