From b5c90e89761a0e5343a5f7d24653084c8fb7fe24 Mon Sep 17 00:00:00 2001 From: Liu Dingming Date: Sun, 17 Mar 2024 20:45:01 +0800 Subject: [PATCH] Reorganize tests --- tests/ffmpeg_examples/README.md | 1 + tests/{ => ffmpeg_examples}/decode_audio.rs | 0 tests/{ => ffmpeg_examples}/decode_video.rs | 0 tests/{ => ffmpeg_examples}/encode_video.rs | 0 tests/{ => ffmpeg_examples}/extract_mvs.rs | 0 tests/ffmpeg_examples/mod.rs | 7 +++++++ tests/{ => ffmpeg_examples}/remux.rs | 0 tests/{ => ffmpeg_examples}/transcode.rs | 0 tests/{ => ffmpeg_examples}/transcode_aac.rs | 0 tests/{ => misc}/av_spliter.rs | 0 tests/{ => misc}/avio_reading.rs | 0 tests/{ => misc}/avio_writing.rs | 0 tests/{ => misc}/image_dump.rs | 0 tests/{ => misc}/metadata.rs | 0 tests/misc/mod.rs | 7 +++++++ tests/{ => misc}/thumbnail.rs | 0 tests/{ => misc}/tutorial01.rs | 0 tests/tests.rs | 1 + 18 files changed, 16 insertions(+) create mode 100644 tests/ffmpeg_examples/README.md rename tests/{ => ffmpeg_examples}/decode_audio.rs (100%) rename tests/{ => ffmpeg_examples}/decode_video.rs (100%) rename tests/{ => ffmpeg_examples}/encode_video.rs (100%) rename tests/{ => ffmpeg_examples}/extract_mvs.rs (100%) create mode 100644 tests/ffmpeg_examples/mod.rs rename tests/{ => ffmpeg_examples}/remux.rs (100%) rename tests/{ => ffmpeg_examples}/transcode.rs (100%) rename tests/{ => ffmpeg_examples}/transcode_aac.rs (100%) rename tests/{ => misc}/av_spliter.rs (100%) rename tests/{ => misc}/avio_reading.rs (100%) rename tests/{ => misc}/avio_writing.rs (100%) rename tests/{ => misc}/image_dump.rs (100%) rename tests/{ => misc}/metadata.rs (100%) create mode 100644 tests/misc/mod.rs rename tests/{ => misc}/thumbnail.rs (100%) rename tests/{ => misc}/tutorial01.rs (100%) create mode 100644 tests/tests.rs diff --git a/tests/ffmpeg_examples/README.md b/tests/ffmpeg_examples/README.md new file mode 100644 index 0000000..5c5dd50 --- /dev/null +++ b/tests/ffmpeg_examples/README.md @@ -0,0 +1 @@ +These tests are ported from: https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples \ No newline at end of file diff --git a/tests/decode_audio.rs b/tests/ffmpeg_examples/decode_audio.rs similarity index 100% rename from tests/decode_audio.rs rename to tests/ffmpeg_examples/decode_audio.rs diff --git a/tests/decode_video.rs b/tests/ffmpeg_examples/decode_video.rs similarity index 100% rename from tests/decode_video.rs rename to tests/ffmpeg_examples/decode_video.rs diff --git a/tests/encode_video.rs b/tests/ffmpeg_examples/encode_video.rs similarity index 100% rename from tests/encode_video.rs rename to tests/ffmpeg_examples/encode_video.rs diff --git a/tests/extract_mvs.rs b/tests/ffmpeg_examples/extract_mvs.rs similarity index 100% rename from tests/extract_mvs.rs rename to tests/ffmpeg_examples/extract_mvs.rs diff --git a/tests/ffmpeg_examples/mod.rs b/tests/ffmpeg_examples/mod.rs new file mode 100644 index 0000000..e220869 --- /dev/null +++ b/tests/ffmpeg_examples/mod.rs @@ -0,0 +1,7 @@ +mod decode_audio; +mod decode_video; +mod encode_video; +mod extract_mvs; +mod remux; +mod transcode; +mod transcode_aac; diff --git a/tests/remux.rs b/tests/ffmpeg_examples/remux.rs similarity index 100% rename from tests/remux.rs rename to tests/ffmpeg_examples/remux.rs diff --git a/tests/transcode.rs b/tests/ffmpeg_examples/transcode.rs similarity index 100% rename from tests/transcode.rs rename to tests/ffmpeg_examples/transcode.rs diff --git a/tests/transcode_aac.rs b/tests/ffmpeg_examples/transcode_aac.rs similarity index 100% rename from tests/transcode_aac.rs rename to tests/ffmpeg_examples/transcode_aac.rs diff --git a/tests/av_spliter.rs b/tests/misc/av_spliter.rs similarity index 100% rename from tests/av_spliter.rs rename to tests/misc/av_spliter.rs diff --git a/tests/avio_reading.rs b/tests/misc/avio_reading.rs similarity index 100% rename from tests/avio_reading.rs rename to tests/misc/avio_reading.rs diff --git a/tests/avio_writing.rs b/tests/misc/avio_writing.rs similarity index 100% rename from tests/avio_writing.rs rename to tests/misc/avio_writing.rs diff --git a/tests/image_dump.rs b/tests/misc/image_dump.rs similarity index 100% rename from tests/image_dump.rs rename to tests/misc/image_dump.rs diff --git a/tests/metadata.rs b/tests/misc/metadata.rs similarity index 100% rename from tests/metadata.rs rename to tests/misc/metadata.rs diff --git a/tests/misc/mod.rs b/tests/misc/mod.rs new file mode 100644 index 0000000..4bca8fa --- /dev/null +++ b/tests/misc/mod.rs @@ -0,0 +1,7 @@ +mod av_spliter; +mod avio_reading; +mod avio_writing; +mod image_dump; +mod metadata; +mod thumbnail; +mod tutorial01; \ No newline at end of file diff --git a/tests/thumbnail.rs b/tests/misc/thumbnail.rs similarity index 100% rename from tests/thumbnail.rs rename to tests/misc/thumbnail.rs diff --git a/tests/tutorial01.rs b/tests/misc/tutorial01.rs similarity index 100% rename from tests/tutorial01.rs rename to tests/misc/tutorial01.rs diff --git a/tests/tests.rs b/tests/tests.rs new file mode 100644 index 0000000..6e7a60a --- /dev/null +++ b/tests/tests.rs @@ -0,0 +1 @@ +mod ffmpeg_examples;