Skip to content

Commit

Permalink
Run make from test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LennoxLiu committed Apr 8, 2024
1 parent 420bc44 commit 136c271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hpc/hq_scripts/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function get_avaliable_port {
}

port=$(get_avaliable_port)
export PORT=$port && ./server --port $port & # CHANGE ME!
export PORT=$port && ./test/MultiplyBy2/server --port $port & # CHANGE ME!

load_balancer_dir="./test/MultiplyBy2/" # CHANGE ME!

Expand Down
6 changes: 3 additions & 3 deletions hpc/test/MultiplyBy2/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
all: build-server build-lb run-lb

load-balancer-files = ../../LoadBalancer.cpp ../../LoadBalancer.hpp ../../lib/httplib.h ../../lib/json.hpp ../../lib/umbridge.h
load-balancer-files = ../../LoadBalancer.cpp ../../LoadBalancer.hpp ../../../lib/httplib.h ../../../lib/json.hpp ../../../lib/umbridge.h

build-server:
g++ -O3 -w -std=c++11 minimal-server.cpp -o server -lssl -lcrypto -pthread

build-lb:
g++ -O3 -Wno-unused-result -std=c++17 $(load-balancer-files) -o load-balancer -pthread
g++ -O3 -Wno-unused-result -std=c++17 $(load-balancer-files) -o ../../load-balancer -pthread

run-lb:
./load-balancer
cd ../../ && ./load-balancer

0 comments on commit 136c271

Please sign in to comment.