Author: Olivier Sallou <osallou@debian.org>
Subject: disable scala testing due to missing scalatest package
Description: Debian repo does not have scalatest dependency, so in the
 meanwhile, disable scala related tests
Forwarded: not-needed
Last-Updated: 2017-10-18
--- a/build.gradle
+++ b/build.gradle
@@ -142,11 +142,9 @@
     description = "Runs the unit tests other than the SRA tests"
 
    useTestNG {
-       if (OperatingSystem.current().isUnix()) {
-           excludeGroups "slow", "broken", "defaultReference", "optimistic_vcf_4_4", "ftp", "http", "sra", "ena"
-       } else {
-           excludeGroups "slow", "broken", "defaultReference", "optimistic_vcf_4_4", "ftp", "http", "sra", "ena", "unix"
-       }
+        exclude 'htsjdk/samtools/sra/**'
+        exclude 'htsjdk/samtools/BAMFileIndexTest.java'
+        exclude 'htsjdk/samtools/util/BlockCompressedOutputStreamTest.java'
    }
 } dependsOn testWithDefaultReference, testWithOptimisticVCF4_4
 
@@ -154,18 +152,7 @@
 task testFTP (type: Test) {
     description = "Runs the tests that require connection to a remote ftp server"
     useTestNG {
-        includeGroups "ftp"
-        excludeGroups "slow", "broken"
-    }
-}
-
-task testExternalApis (type: Test) {
-    description = "Run the SRA, ENA, and HTTP tests (tests that interact with external APIs)"
-    jvmArgs += '-Dsamjdk.sra_libraries_download=true'
-
-    useTestNG {
-        includeGroups "sra", "http", "ena"
-        excludeGroups "slow", "broken"
+        excludeGroups "ftp", "slow", "broken"
     }
 }
 
