Exemplo n.º 1
0
        public void TestWhiteLines()
        {
            string dsspec =
                "  \n"
                + "machine junk {\n"
                + "  \n"
                + "J1 (ttbar, dude) = *.root\n"
                + "  \n"
                + "}"
                + "  \n";

            DataSetFinder.ParseSpecFromString(dsspec);
            DataSetFinder.MachineName = "junk";

            var ds = DataSetFinder.DatasetNamesForTag("dude");

            Assert.AreEqual(1, ds.Length, "# of datasets for tag dude");
            Assert.AreEqual("J1", ds[0], "ds name");

            ds = DataSetFinder.DatasetNamesForTag("ttbar");
            Assert.AreEqual(1, ds.Length, "# of datasets for tag ttbar");

            ds = DataSetFinder.DatasetNamesForTag("ttbar", "dude");
            Assert.AreEqual(1, ds.Length, "# of datasets for tag ttbar and dude");
        }
Exemplo n.º 2
0
        public void TestComplexDSName()
        {
            string dsspec = "machine junk { J1-1_1 (ttbar) = *.root }";

            DataSetFinder.ParseSpecFromString(dsspec);
            DataSetFinder.MachineName = "junk";

            var ds = DataSetFinder.DatasetNamesForTag("ttbar");

            Assert.AreEqual(1, ds.Length, "# of datasets");
            Assert.AreEqual("J1-1_1", ds[0], "ds name");
        }