summaryrefslogtreecommitdiff
path: root/plparse/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-11-07 22:57:38 +0100
committerBastien Nocera <hadess@hadess.net>2012-11-07 22:57:38 +0100
commitc10826436b0a16445e6f14d555e8a02ad2b89da0 (patch)
tree0d8668a479bf334fcc8d5f9adeb850242f2120b3 /plparse/tests
parentcab22b1b302c6e2760dbf04a0b4b369ae884be71 (diff)
downloadtotem-pl-parser-c10826436b0a16445e6f14d555e8a02ad2b89da0.tar.gz
tests: Mark a bunch of tests as broken
As their URLs don't respond anymore. Makes the slow run work.
Diffstat (limited to 'plparse/tests')
-rw-r--r--plparse/tests/parser.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 741261c..93b70b2 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -211,17 +211,18 @@ test_parsability (void)
struct {
const char *uri;
gboolean parsable;
+ gboolean parsable_by_data;
gboolean slow;
} const files[] = {
/* NOTE: For relative paths, don't add a protocol. */
- { TEST_SRCDIR "560051.xml", TRUE, FALSE },
- { "itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520&ign-mscache=1", TRUE, TRUE },
- { "http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520", TRUE, TRUE },
- { "file:///tmp/file_doesnt_exist.wmv", FALSE, FALSE },
- { "http://live.hujjat.org:7860/main", FALSE, TRUE },
- { "http://www.comedycentral.com/sitewide/media_player/videoswitcher.jhtml?showid=934&category=/shows/the_daily_show/videos/headlines&sec=videoId%3D36032%3BvideoFeatureId%3D%3BpoppedFrom%3D_shows_the_daily_show_index.jhtml%3BisIE%3Dfalse%3BisPC%3Dtrue%3Bpagename%3Dmedia_player%3Bzyg%3D%27%2Bif_nt_zyg%2B%27%3Bspan%3D%27%2Bif_nt_span%2B%27%3Bdemo%3D%27%2Bif_nt_demo%2B%27%3Bbps%3D%27%2Bif_nt_bandwidth%2B%27%3Bgateway%3Dshows%3Bsection_1%3Dthe_daily_show%3Bsection_2%3Dvideos%3Bsection_3%3Dheadlines%3Bzyg%3D%27%2Bif_nt_zyg%2B%27%3Bspan%3D%27%2Bif_nt_span%2B%27%3Bdemo%3D%27%2Bif_nt_demo%2B%27%3Bera%3D%27%2Bif_nt_era%2B%27%3Bbps%3D%27%2Bif_nt_bandwidth%2B%27%3Bfla%3D%27%2Bif_nt_Flash%2B%27&itemid=36032&clip=com/dailyshow/headlines/10156_headline.wmv&mswmext=.asx", TRUE, TRUE },
- { TEST_SRCDIR "HackerMedley", TRUE, FALSE }, /* From https://bugzilla.redhat.com/show_bug.cgi?id=582850 and http://feeds.feedburner.com/HackerMedley */
- { "http://faif.us/feeds/cast-mp3", TRUE, TRUE },
+ { TEST_SRCDIR "560051.xml", TRUE, TRUE, FALSE },
+ { "itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520&ign-mscache=1", TRUE, FALSE, TRUE },
+ { "http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520", TRUE, FALSE, TRUE },
+ { "file:///tmp/file_doesnt_exist.wmv", FALSE, TRUE, FALSE },
+ { "http://live.hujjat.org:7860/main", FALSE, TRUE, TRUE },
+ { "http://www.comedycentral.com/sitewide/media_player/videoswitcher.jhtml?showid=934&category=/shows/the_daily_show/videos/headlines&sec=videoId%3D36032%3BvideoFeatureId%3D%3BpoppedFrom%3D_shows_the_daily_show_index.jhtml%3BisIE%3Dfalse%3BisPC%3Dtrue%3Bpagename%3Dmedia_player%3Bzyg%3D%27%2Bif_nt_zyg%2B%27%3Bspan%3D%27%2Bif_nt_span%2B%27%3Bdemo%3D%27%2Bif_nt_demo%2B%27%3Bbps%3D%27%2Bif_nt_bandwidth%2B%27%3Bgateway%3Dshows%3Bsection_1%3Dthe_daily_show%3Bsection_2%3Dvideos%3Bsection_3%3Dheadlines%3Bzyg%3D%27%2Bif_nt_zyg%2B%27%3Bspan%3D%27%2Bif_nt_span%2B%27%3Bdemo%3D%27%2Bif_nt_demo%2B%27%3Bera%3D%27%2Bif_nt_era%2B%27%3Bbps%3D%27%2Bif_nt_bandwidth%2B%27%3Bfla%3D%27%2Bif_nt_Flash%2B%27&itemid=36032&clip=com/dailyshow/headlines/10156_headline.wmv&mswmext=.asx", TRUE, FALSE, TRUE },
+ { TEST_SRCDIR "HackerMedley", TRUE, TRUE, FALSE }, /* From https://bugzilla.redhat.com/show_bug.cgi?id=582850 and http://feeds.feedburner.com/HackerMedley */
+ { "http://faif.us/feeds/cast-mp3", TRUE, TRUE, TRUE },
{ NULL, FALSE, FALSE }
};
@@ -240,6 +241,10 @@ test_parsability (void)
if (files[i].slow && !g_test_slow ())
continue;
+ /* Skip URIs that aren't available anymore, we can't load data from there... */
+ if (files[i].parsable_by_data == FALSE)
+ continue;
+
g_test_message ("Testing data parsing \"%s\"...", files[i].uri);
data = test_data_get_data (files[i].uri, &len);