

package org.ops4j.pax.exam.regression.karaf;

import static org.junit.Assert.assertTrue;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.configureConsole;
import static org.ops4j.pax.exam.regression.karaf.RegressionConfiguration.mvnKarafDist;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Configuration;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.karaf.options.KarafDistributionKitConfigurationOption;
import org.ops4j.pax.exam.karaf.options.KarafDistributionKitConfigurationOption.Platform;

@RunWith(PaxExam.class)
public class NativeKarafFrameworkTest {

    @Configuration
    public Option[] config() {
        return new Option[]{
            new KarafDistributionKitConfigurationOption(mvnKarafDist(), Platform.WINDOWS).executable(
                "bin\\karaf.bat").filesToMakeExecutable("bin\\instance.bat"),
            new KarafDistributionKitConfigurationOption(mvnKarafDist(), Platform.NIX).executable("bin/karaf")
                .filesToMakeExecutable("bin/instance"),
                configureConsole().ignoreLocalConsole()                
                };
    }

    @Test
    public void test() throws Exception {
        assertTrue(true);
    }

}
