Skip to content

Commit

Permalink
Update cache tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vacantron committed Dec 2, 2024
1 parent 96a1f42 commit 09a3d1a
Show file tree
Hide file tree
Showing 18 changed files with 183 additions and 3,634 deletions.
8 changes: 4 additions & 4 deletions mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ OBJS += $(PATH_TEST_OBJS)
deps += $(PATH_TEST_OBJS:%.o=%.o.d)

CACHE_TEST_ACTIONS := \
lfu/cache-new \
lfu/cache-put \
lfu/cache-get \
lfu/cache-lfu-replace
cache-new \
cache-put \
cache-get \
cache-replace

CACHE_TEST_OUT = $(addprefix $(CACHE_TEST_OUTDIR)/, $(CACHE_TEST_ACTIONS:%=%.out))
MAP_TEST_OUT = $(MAP_TEST_TARGET).out
Expand Down
8 changes: 5 additions & 3 deletions tests/cache/cache-get.expect
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
NEW CACHE
NULL
NULL
3
NULL 0
NULL 0
3 2
3 3
3 4
FREE CACHE
2 changes: 2 additions & 0 deletions tests/cache/lfu/cache-get.in → tests/cache/cache-get.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ GET 1
GET 2
PUT 3 3
GET 3
GET 3
GET 3
FREE
Loading

0 comments on commit 09a3d1a

Please sign in to comment.