-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test data for fixed and dynamic huffman trees
and a script to generate it I guess the nice way to do this would be to bring in rules_python , or pull in zlib and have our test generate the compressed data at run-time. We can add that later if we find issues. Change-Id: Iaba4043956a2eb6fd0f51aef40414ae948a7311e
- Loading branch information
Showing
6 changed files
with
1,309 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_test") | ||
load("//tools:compressed_file.bzl", "compressed_file") | ||
|
||
cc_test( | ||
name = "decompress_test", | ||
timeout = "short", | ||
srcs = ["decompress_test.cpp"], | ||
data = [ | ||
":starfleet.html.dynamic", | ||
":starfleet.html.fixed", | ||
], | ||
deps = [ | ||
"//:boost_ut", | ||
"//src:decompress", | ||
"@bazel_tools//tools/cpp/runfiles", | ||
"@boost_ut", | ||
], | ||
) | ||
|
||
compressed_file( | ||
name = "starfleet.html.dynamic", | ||
src = "starfleet.html", | ||
strategy = "dynamic", | ||
) | ||
|
||
compressed_file( | ||
name = "starfleet.html.fixed", | ||
src = "starfleet.html", | ||
strategy = "fixed", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.