From 1ef61fce6462fc57d55a1f9f105542e5f53c4d7e Mon Sep 17 00:00:00 2001 From: zvon Date: Sun, 23 Sep 2018 10:53:58 +0200 Subject: [PATCH] Add test for build --- .gitignore | 1 + test.sh | 11 ++ test/compare | 319 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 331 insertions(+) create mode 100755 test.sh create mode 100644 test/compare diff --git a/.gitignore b/.gitignore index 32ddcad..b419975 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.o tv_rename +test diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..091af24 --- /dev/null +++ b/test.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +cd test +for f in {01..10} ; do mkdir "Season $f" && for g in {01..30} ; do touch "Season $f/S${f}E$g.mkv" ; done ; done +echo 1 | ../tv_rename -s simpsons -c -t +ls Season* > names +if [ -z "$(diff names compare)" ] ; then + exit 0 +else + exit 1 +fi diff --git a/test/compare b/test/compare new file mode 100644 index 0000000..e43efd1 --- /dev/null +++ b/test/compare @@ -0,0 +1,319 @@ +Season 01: +S01E01 - Simpsons Roasting on an Open Fire.mkv +S01E02 - Bart the Genius.mkv +S01E03 - Homer's Odyssey.mkv +S01E04 - There's No Disgrace Like Home.mkv +S01E05 - Bart the General.mkv +S01E06 - Moaning Lisa.mkv +S01E07 - The Call of the Simpsons.mkv +S01E08 - The Telltale Head.mkv +S01E09 - Life on the Fast Lane.mkv +S01E10 - Homer's Night Out.mkv +S01E11 - The Crepes of Wrath.mkv +S01E12 - Krusty Gets Busted.mkv +S01E13 - Some Enchanted Evening.mkv +S01E14.mkv +S01E15.mkv +S01E16.mkv +S01E17.mkv +S01E18.mkv +S01E19.mkv +S01E20.mkv +S01E21.mkv +S01E22.mkv +S01E23.mkv +S01E24.mkv +S01E25.mkv +S01E26.mkv +S01E27.mkv +S01E28.mkv +S01E29.mkv +S01E30.mkv + +Season 02: +S02E01 - Bart Gets an F.mkv +S02E02 - Simpson and Delilah.mkv +S02E03 - Treehouse of Horror.mkv +S02E04 - Two Cars in Every Garage and Three Eyes on Every Fish.mkv +S02E05 - Dancin' Homer.mkv +S02E06 - Dead Putting Society.mkv +S02E07 - Bart vs. Thanksgiving.mkv +S02E08 - Bart the Daredevil.mkv +S02E09 - Itchy & Scratchy & Marge.mkv +S02E10 - Bart Gets Hit by a Car.mkv +S02E11 - One Fish, Two Fish, Blowfish, Blue Fish.mkv +S02E12 - The Way We Was.mkv +S02E13 - Homer vs. Lisa and the Eighth Commandment.mkv +S02E14 - Principal Charming.mkv +S02E15 - Oh Brother, Where Art Thou.mkv +S02E16 - Bart's Dog Gets an F.mkv +S02E17 - Old Money.mkv +S02E18 - Brush With Greatness.mkv +S02E19 - Lisa's Substitute.mkv +S02E20 - The War of the Simpsons.mkv +S02E21 - Three Men and a Comic Book.mkv +S02E22 - Blood Feud.mkv +S02E23.mkv +S02E24.mkv +S02E25.mkv +S02E26.mkv +S02E27.mkv +S02E28.mkv +S02E29.mkv +S02E30.mkv + +Season 03: +S03E01 - Stark Raving Dad.mkv +S03E02 - Mr. Lisa Goes to Washington.mkv +S03E03 - When Flanders Failed.mkv +S03E04 - Bart the Murderer.mkv +S03E05 - Homer Defined.mkv +S03E06 - Like Father Like Clown.mkv +S03E07 - Treehouse of Horror II.mkv +S03E08 - Lisa's Pony.mkv +S03E09 - Saturdays of Thunder.mkv +S03E10 - Flaming Moe's.mkv +S03E11 - Burns Verkaufen der Kraftwerk.mkv +S03E12 - I Married Marge.mkv +S03E13 - Radio Bart.mkv +S03E14 - Lisa the Greek.mkv +S03E15 - Homer Alone.mkv +S03E16 - Bart the Lover.mkv +S03E17 - Homer at the Bat.mkv +S03E18 - Separate Vocations.mkv +S03E19 - Dog of Death.mkv +S03E20 - Colonel Homer.mkv +S03E21 - Black Widower.mkv +S03E22 - The Otto Show.mkv +S03E23 - Bart's Friend Falls in Love.mkv +S03E24 - Brother, Can You Spare Two Dimes.mkv +S03E25.mkv +S03E26.mkv +S03E27.mkv +S03E28.mkv +S03E29.mkv +S03E30.mkv + +Season 04: +S04E01 - Kamp Krusty.mkv +S04E02 - A Streetcar Named Marge.mkv +S04E03 - Homer the Heretic.mkv +S04E04 - Lisa the Beauty Queen.mkv +S04E05 - Treehouse of Horror III.mkv +S04E06 - Itchy & Scratchy - The Movie.mkv +S04E07 - Marge Gets a Job.mkv +S04E08 - The New Kid on the Block.mkv +S04E09 - Mr. Plow.mkv +S04E10 - Lisa's First Word.mkv +S04E11 - Homer's Triple Bypass.mkv +S04E12 - Marge vs. the Monorail.mkv +S04E13 - Selma's Choice.mkv +S04E14 - Brother From the Same Planet.mkv +S04E15 - I Love Lisa.mkv +S04E16 - Duffless.mkv +S04E17 - Last Exit to Springfield.mkv +S04E18 - So It's Come to This - A Simpsons Clip Show.mkv +S04E19 - The Front.mkv +S04E20 - Whacking Day.mkv +S04E21 - Marge in Chains.mkv +S04E22 - Krusty Gets Kancelled.mkv +S04E23.mkv +S04E24.mkv +S04E25.mkv +S04E26.mkv +S04E27.mkv +S04E28.mkv +S04E29.mkv +S04E30.mkv + +Season 05: +S05E01 - Homer's Barbershop Quartet.mkv +S05E02 - Cape Feare.mkv +S05E03 - Homer Goes to College.mkv +S05E04 - Rosebud.mkv +S05E05 - Treehouse of Horror IV.mkv +S05E06 - Marge on the Lam.mkv +S05E07 - Bart's Inner Child.mkv +S05E08 - Boy-Scoutz 'N the Hood.mkv +S05E09 - The Last Temptation of Homer.mkv +S05E10 - $pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling).mkv +S05E11 - Homer the Vigilante.mkv +S05E12 - Bart Gets Famous.mkv +S05E13 - Homer and Apu.mkv +S05E14 - Lisa vs. Malibu Stacy.mkv +S05E15 - Deep Space Homer.mkv +S05E16 - Homer Loves Flanders.mkv +S05E17 - Bart Gets an Elephant.mkv +S05E18 - Burns' Heir.mkv +S05E19 - Sweet Seymour Skinner's Baadasssss Song.mkv +S05E20 - The Boy Who Knew Too Much.mkv +S05E21 - Lady Bouvier's Lover.mkv +S05E22 - Secrets of a Successful Marriage.mkv +S05E23.mkv +S05E24.mkv +S05E25.mkv +S05E26.mkv +S05E27.mkv +S05E28.mkv +S05E29.mkv +S05E30.mkv + +Season 06: +S06E01 - Bart of Darkness.mkv +S06E02 - Lisa's Rival.mkv +S06E03 - Another Simpsons Clip Show.mkv +S06E04 - Itchy & Scratchy Land.mkv +S06E05 - Sideshow Bob Roberts.mkv +S06E06 - Treehouse of Horror V.mkv +S06E07 - Bart's Girlfriend.mkv +S06E08 - Lisa on Ice.mkv +S06E09 - Homer Badman.mkv +S06E10 - Grampa vs. Sexual Inadequacy.mkv +S06E11 - Fear of Flying.mkv +S06E12 - Homer the Great.mkv +S06E13 - And Maggie Makes Three.mkv +S06E14 - Bart's Comet.mkv +S06E15 - Homie the Clown.mkv +S06E16 - Bart vs. Australia.mkv +S06E17 - Homer vs. Patty and Selma.mkv +S06E18 - A Star Is Burns.mkv +S06E19 - Lisa's Wedding.mkv +S06E20 - Two Dozen and One Greyhounds.mkv +S06E21 - The PTA Disbands.mkv +S06E22 - Round Springfield.mkv +S06E23 - The Springfield Connection.mkv +S06E24 - Lemon of Troy.mkv +S06E25 - Who Shot Mr. Burns (1).mkv +S06E26.mkv +S06E27.mkv +S06E28.mkv +S06E29.mkv +S06E30.mkv + +Season 07: +S07E01 - Who Shot Mr. Burns (2).mkv +S07E02 - Radioactive Man.mkv +S07E03 - Home Sweet Homediddily-Dum-Doodily.mkv +S07E04 - Bart Sells His Soul.mkv +S07E05 - Lisa the Vegetarian.mkv +S07E06 - Treehouse of Horror VI.mkv +S07E07 - King-Size Homer.mkv +S07E08 - Mother Simpson.mkv +S07E09 - Sideshow Bob's Last Gleaming.mkv +S07E10 - The Simpsons 138th Episode Spectacular.mkv +S07E11 - Marge Be Not Proud.mkv +S07E12 - Team Homer.mkv +S07E13 - Two Bad Neighbors.mkv +S07E14 - Scenes from the Class Struggle in Springfield.mkv +S07E15 - Bart the Fink.mkv +S07E16 - Lisa the Iconoclast.mkv +S07E17 - Homer the Smithers.mkv +S07E18 - The Day the Violence Died.mkv +S07E19 - A Fish Called Selma.mkv +S07E20 - Bart on the Road.mkv +S07E21 - 22 Short Films About Springfield.mkv +S07E22 - Raging Abe Simpson and his Grumbling Grandson in - 'The Curse of the Flying Hellfish'.mkv +S07E23 - Much Apu About Nothing.mkv +S07E24 - Homerpalooza.mkv +S07E25 - Summer of 4 Ft. 2.mkv +S07E26.mkv +S07E27.mkv +S07E28.mkv +S07E29.mkv +S07E30.mkv + +Season 08: +S08E01 - Treehouse of Horror VII.mkv +S08E02 - You Only Move Twice.mkv +S08E03 - The Homer They Fall.mkv +S08E04 - Burns Baby Burns.mkv +S08E05 - Bart After Dark.mkv +S08E06 - A Milhouse Divided.mkv +S08E07 - Lisa's Date With Density.mkv +S08E08 - Hurricane Neddy.mkv +S08E09 - El Viaje Misterioso de Nuestro Jomer (The Mysterious Voyage of Our Homer).mkv +S08E10 - The Springfield Files.mkv +S08E11 - The Twisted World of Marge Simpson.mkv +S08E12 - Mountain of Madness.mkv +S08E13 - Simpsoncalifragilisticexpiala (Annoyed Grunt) cious.mkv +S08E14 - The Itchy & Scratchy & Poochie Show.mkv +S08E15 - Homer's Phobia.mkv +S08E16 - Brother From Another Series.mkv +S08E17 - My Sister, My Sitter.mkv +S08E18 - Homer vs. the 18th Amendment.mkv +S08E19 - Grade School Confidential.mkv +S08E20 - The Canine Mutiny.mkv +S08E21 - The Old Man and the Lisa.mkv +S08E22 - In Marge We Trust.mkv +S08E23 - Homer's Enemy.mkv +S08E24 - The Simpsons Spin-Off Showcase.mkv +S08E25 - The Secret War of Lisa Simpson.mkv +S08E26.mkv +S08E27.mkv +S08E28.mkv +S08E29.mkv +S08E30.mkv + +Season 09: +S09E01 - The City of New York vs. Homer Simpson.mkv +S09E02 - The Principal and the Pauper.mkv +S09E03 - Lisa's Sax.mkv +S09E04 - Treehouse of Horror VIII.mkv +S09E05 - The Cartridge Family.mkv +S09E06 - Bart Star.mkv +S09E07 - The Two Mrs. Nahasapeemapetilons.mkv +S09E08 - Lisa the Skeptic.mkv +S09E09 - Realty Bites.mkv +S09E10 - Miracle on Evergreen Terrace.mkv +S09E11 - All Singing, All Dancing.mkv +S09E12 - Bart Carny.mkv +S09E13 - The Joy of Sect.mkv +S09E14 - Das Bus.mkv +S09E15 - The Last Temptation of Krust.mkv +S09E16 - Dumbbell Indemnity.mkv +S09E17 - Lisa the Simpson.mkv +S09E18 - This Little Wiggy.mkv +S09E19 - Simpson Tide.mkv +S09E20 - The Trouble With Trillions.mkv +S09E21 - Girly Edition.mkv +S09E22 - Trash of the Titans.mkv +S09E23 - King of the Hill.mkv +S09E24 - Lost Our Lisa.mkv +S09E25 - Natural Born Kissers.mkv +S09E26.mkv +S09E27.mkv +S09E28.mkv +S09E29.mkv +S09E30.mkv + +Season 10: +S10E01 - Lard of the Dance.mkv +S10E02 - The Wizard of Evergreen Terrace.mkv +S10E03 - Bart the Mother.mkv +S10E04 - Treehouse of Horror IX.mkv +S10E05 - When You Dish Upon a Star.mkv +S10E06 - D'oh-in in the Wind.mkv +S10E07 - Lisa Gets an A.mkv +S10E08 - Homer Simpson in - 'Kidney Trouble'.mkv +S10E09 - Mayored to the Mob.mkv +S10E10 - Viva Ned Flanders.mkv +S10E11 - Wild Barts Can't Be Broken.mkv +S10E12 - Sunday, Cruddy Sunday.mkv +S10E13 - Homer to the Max.mkv +S10E14 - I'm with Cupid.mkv +S10E15 - Marge Simpson in - 'Screaming Yellow Honkers'.mkv +S10E16 - Make Room for Lisa.mkv +S10E17 - Maximum Homerdrive.mkv +S10E18 - Simpsons Bible Stories.mkv +S10E19 - Mom and Pop Art.mkv +S10E20 - The Old Man and the C Student.mkv +S10E21 - Monty Can't Buy Me Love.mkv +S10E22 - They Saved Lisa's Brain.mkv +S10E23 - Thirty Minutes Over Tokyo.mkv +S10E24.mkv +S10E25.mkv +S10E26.mkv +S10E27.mkv +S10E28.mkv +S10E29.mkv +S10E30.mkv