--- /dev/null
+#!/usr/bin/bats
+
+setup() {
+ bats_load_library 'bats-support'
+ bats_load_library 'bats-assert'
+}
+
+setup_file() {
+ [ -f "albumlist" ]
+}
+
+teardown_file() {
+ rm --recursive --force "build/tests"
+}
+
+@test "run create origin vorbis" {
+ local lib="vorbis"
+ export OUTPUT_PATH="build/tests/origin-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create repro vorbis" {
+ local lib="vorbis"
+ export OUTPUT_PATH="build/tests/repro-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run origin checksum on repro vorbis" {
+ local lib="vorbis"
+ cp "build/tests/origin-$lib/checksum.sha256" \
+ "build/tests/repro-$lib/checksum.sha256"
+
+ cd "build/tests/repro-$lib"
+
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create origin mp3" {
+ local lib="mp3"
+ export OUTPUT_PATH="build/tests/origin-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create repro mp3" {
+ local lib="mp3"
+ export OUTPUT_PATH="build/tests/repro-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run origin checksum on repro mp3" {
+ local lib="mp3"
+ cp "build/tests/origin-$lib/checksum.sha256" \
+ "build/tests/repro-$lib/checksum.sha256"
+
+ cd "build/tests/repro-$lib"
+
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create origin opus" {
+ local lib="opus"
+ export OUTPUT_PATH="build/tests/origin-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create repro opus" {
+ local lib="opus"
+ export OUTPUT_PATH="build/tests/repro-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run origin checksum on repro opus" {
+ local lib="opus"
+ cp "build/tests/origin-$lib/checksum.sha256" \
+ "build/tests/repro-$lib/checksum.sha256"
+
+ cd "build/tests/repro-$lib"
+
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create origin flac" {
+ local lib="flac"
+ export OUTPUT_PATH="build/tests/origin-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run create repro flac" {
+ local lib="flac"
+ export OUTPUT_PATH="build/tests/repro-$lib"
+
+ ./src/albentohandy -i "albumlist" -l "$lib"
+
+ [ -f "$OUTPUT_PATH/checksum.sha256" ]
+ cd "$OUTPUT_PATH"
+ sha256sum -c "checksum.sha256"
+}
+
+@test "run origin checksum on repro flac" {
+ local lib="flac"
+ cp "build/tests/origin-$lib/checksum.sha256" \
+ "build/tests/repro-$lib/checksum.sha256"
+
+ cd "build/tests/repro-$lib"
+
+ sha256sum -c "checksum.sha256"
+}
\ No newline at end of file