lab 4+5 makefile update

This commit is contained in:
kenctrl committed 2025-03-11 13:59:26 -04:00
1 parent 3d190166fd
commit fc8b51698c
18 files changed
+2352 -20

No files matched your search

+8 -18
View File
@@ -46,12 +46,10 @@ REFERENCE_FILES=(
src/kvraft1/kvraft_test.go
src/kvraft1/test.go
# lab 5a
# src/shardkv1/test.go
# lab 5b
# src/shardkv1/shardkv_test.go
# src/shardkv1/shardcfg/shardcfg_test.go
# lab 5
src/shardkv1/test.go
src/shardkv1/shardkv_test.go
src/shardkv1/shardcfg/shardcfg_test.go
)
main() {
@@ -79,8 +77,7 @@ main() {
"lab2") check_lab2;;
"lab3a"|"lab3b"|"lab3c"|"lab3d") check_lab3;;
"lab4a"|"lab4b"|"lab4c") check_lab4;;
"lab5a") check_lab5a;;
"lab5b") check_lab5b;;
"lab5a"|"lab5b"|"lab5c") check_lab5;;
*) die "unknown lab: $labnum";;
esac
@@ -117,18 +114,11 @@ check_lab4() {
check_cmd go test -c
}
check_lab5a() {
# check_cmd cd src/shardctrler1
# check_cmd go test -c
}
check_lab5b() {
# check_cmd cd src/shardkv1
# check_cmd go test -c
check_lab5() {
check_cmd cd src/shardkv1
check_cmd go test -c
# also check other labs/parts
cd "$tmpdir"
check_lab5a
cd "$tmpdir"
check_lab4
cd "$tmpdir"
check_lab3