-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_Makefile
23 lines (20 loc) · 969 Bytes
/
test_Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
############################################################
## TEST TARGETS
TEST_PROGRAMS = test_blather.sh test_blather_data.sh test_normalize.awk test_cat_sig.sh test_filter_semopen_bug.awk
test : bl_client bl_server
chmod u+rx test_*
./test_blather.sh $(testnum)
clean-tests :
cd test-data && \
rm -f *.*
############################################################
# 'make zip' to create p1-code.zip for submission
AN=p2
SHELL = /bin/bash
CWD = $(shell pwd | sed 's/.*\///g')
zip : clean clean-tests
rm -f $(AN)-code.zip
cd .. && zip "$(CWD)/$(AN)-code.zip" -r "$(CWD)"
@echo Zip created in $(AN)-code.zip
@if (( $$(stat -c '%s' $(AN)-code.zip) > 10*(2**20) )); then echo "WARNING: $(AN)-code.zip seems REALLY big, check there are no abnormally large test files"; du -h $(AN)-code.zip; fi
@if (( $$(unzip -t $(AN)-code.zip | wc -l) > 256 )); then echo "WARNING: $(AN)-code.zip has 256 or more files in it which may cause submission problems"; fi