-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
40 lines (32 loc) · 990 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
clean:
@echo "Cleaning test files..."
@rm -rf `find . -type d -name 'testFiles*'`
@rm -rf metrics
@rm -f log.txt
@rm -f pylog.txt
@echo "Cleaned"
@rm -rf test-directory
removeexec:
rm -f setupexec
rm -f setup
rm -f fileexec-1
rm -f fileexec-2
rm -f filemonkeytester
rm -f fileexec
init: setupexec
@echo "Setting up test directories and files... (Will take some time)"
@./setupexec > log.txt 2>&1
setupexec: setup.c config-parser.c
@gcc -o setupexec setup.c config-parser.c -Wall
run: fileexec
@echo "Running test suite..."
@./fileexec > log.txt 2>&1
@echo "Testing Completed"
fileexec: filetest filetester.c config-parser.c
@gcc -o fileexec filetester.c config-parser.c -Wall
filetest: filemonkeytest.c fileoperations.c config-parser.c
@gcc -o filemonkeytester filemonkeytest.c fileoperations.c config-parser.c -Wall
reset: clean init run
viewplots: requirements.txt metrics-scraper.py
@pip install -r requirements.txt > pylog.txt
@python3 metrics-scraper.py