Skip to content

Commit

Permalink
refactor: use smaller image for category tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Dec 24, 2023
1 parent cce7cdd commit ab54211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .maintainer-scripts/audio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

output_dir="$1"
duration=60
duration=5

for bits in 8 16 20 24 32; do
sox -D -r10240 -b$bits -n $output_dir/test$bits.wav synth $duration sine ${bits}
Expand Down
Binary file modified test/catdata.dwarfs
Binary file not shown.
4 changes: 2 additions & 2 deletions test/tools_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ TEST_P(tools_test, categorize) {
ASSERT_TRUE(compare_directories(fsdata_dir, mountpoint, &cdr))
<< runner.cmdline() << ": " << cdr;
EXPECT_EQ(cdr.regular_files.size(), 151) << runner.cmdline() << ": " << cdr;
EXPECT_EQ(cdr.total_regular_file_size, 679'077'701)
EXPECT_EQ(cdr.total_regular_file_size, 56'741'701)
<< runner.cmdline() << ": " << cdr;

EXPECT_TRUE(runner.unmount()) << runner.cmdline();
Expand All @@ -1274,7 +1274,7 @@ TEST_P(tools_test, categorize) {
EXPECT_EQ(info["block_size"], 65'536);
EXPECT_EQ(info["image_offset"], 0);
EXPECT_EQ(info["inode_count"], 154);
EXPECT_EQ(info["original_filesystem_size"], 679'077'701);
EXPECT_EQ(info["original_filesystem_size"], 56'741'701);
EXPECT_EQ(info["categories"].size(), 4);

EXPECT_TRUE(info.count("created_by"));
Expand Down

0 comments on commit ab54211

Please sign in to comment.