Exemple #1
0
        public USQLFixture()
        {
            var usqlTestConfiguration    = new USQLAnalyticsConfiguration();
            var usqlAnalyticsInitializer = new USQLAnalyticsInitializer(new USQLAnalyticsJobRunner(usqlTestConfiguration));

            usqlAnalyticsInitializer.CreateDataRootDependencies(new [] { new InitializationBundle() });
        }
Exemple #2
0
        public void InitializeAndRunScript()
        {
            //The following test copies the input file to the data root, then executes a U-SQL script that copies the contents (except the header) to another file.
            var usqlTestConfiguration = new USQLAnalyticsConfiguration();

            File.Copy("InputFile.tsv", Path.Combine(usqlTestConfiguration.USQLDataRoot, "InputFile.tsv"), true);
            var usqlAnalyticsJobRunner = new USQLAnalyticsJobRunner(usqlTestConfiguration);

            usqlAnalyticsJobRunner.RunAnalyticsJob(Path.GetFullPath("runScript.usql"));

            Assert.True(File.Exists(Path.Combine(usqlTestConfiguration.USQLDataRoot, "OutputFile.tsv")));
        }