Skip to content

Commit

Permalink
Sarthak | Adds a Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakMakhija committed May 4, 2024
1 parent 4b1c291 commit 4595d74
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
build:
go build -v ./...

test:
go clean -testcache && go test -v ./...

build_and_test: build test

executable:
go build -o cmd/main cmd/main.go

build_executable: build executable

clean:
rm -rf cmd/main && rm -rf output.txt

all: clean build_and_test build_executable

run_10M:
./run.sh

clean_run_10M: all run_10M

17 changes: 0 additions & 17 deletions cmd/run.sh

This file was deleted.

8 changes: 8 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

echo "Running"
for (( i = 0; i < 5; i++ )); do
{ time ./cmd/main -f ./fixture/10M_weather_stations.csv; } 2>&1 | tee output.txt | tail -3
sleep 2
echo ---
done

0 comments on commit 4595d74

Please sign in to comment.