├── .github
└── workflows
│ ├── gradle-wrapper-validation.yml
│ └── test.yml
├── .gitignore
├── .hgignore
├── .hgtags
├── .jcheck
└── conf
├── CHANGELOG.md
├── CONTRIBUTING.md
├── CONTRIBUTORS
├── COPYRIGHT
├── LICENSE
├── README.md
├── doc
└── building.md
├── make
├── CheckJavaOSVersion.java
├── Defs.gmk
├── Makefile
├── Platform.gmk
├── Rules.gmk
├── build-support
│ ├── asmtools
│ │ ├── build.sh
│ │ └── version-numbers
│ ├── build-common.sh
│ ├── jtharness
│ │ ├── build.sh
│ │ └── version-numbers
│ └── version-numbers
├── build.sh
├── checkstyle
│ ├── checkstyle-emacs.xsl
│ └── checkstyle-jtreg.xml
├── i18n.pat
├── jtdiff.gmk
├── jtreg.gmk
└── pkgsToFiles.sh
├── plugins
└── idea
│ ├── .gitignore
│ ├── README.md
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ ├── legal
│ │ └── gradle.md
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── settings.gradle
│ └── src
│ └── main
│ ├── java
│ ├── com
│ │ └── oracle
│ │ │ └── plugin
│ │ │ └── jtreg
│ │ │ ├── components
│ │ │ ├── JTRegApplicationComponent.java
│ │ │ └── JTRegFileManagerListener.java
│ │ │ ├── configuration
│ │ │ ├── JTRegConfiguration.java
│ │ │ ├── JTRegConfigurationConsoleProperties.java
│ │ │ ├── JTRegConfigurationRunnableState.java
│ │ │ ├── JTRegConfigurationType.java
│ │ │ ├── JTRegIterationLocation.java
│ │ │ ├── producers
│ │ │ │ └── JTRegConfigurationProducer.java
│ │ │ └── ui
│ │ │ │ ├── JTRegConfigurable.form
│ │ │ │ └── JTRegConfigurable.java
│ │ │ ├── executors
│ │ │ └── JTRegDebuggerRunner.java
│ │ │ ├── runtime
│ │ │ └── JTRegTestListener.java
│ │ │ ├── service
│ │ │ ├── JTRegService.java
│ │ │ └── ui
│ │ │ │ ├── JTRegServiceConfigurable.form
│ │ │ │ └── JTRegServiceConfigurable.java
│ │ │ ├── templates
│ │ │ └── JTRegTemplateProvider.java
│ │ │ └── util
│ │ │ ├── JTRegTagParser.java
│ │ │ ├── JTRegUtils.java
│ │ │ ├── MapSerializerUtil.java
│ │ │ └── Tag.java
│ └── icons
│ │ └── JTRegPluginIcons.java
│ └── resources
│ ├── META-INF
│ └── plugin.xml
│ ├── com
│ └── oracle
│ │ └── plugin
│ │ └── jtreg
│ │ └── icons
│ │ ├── JavaCup16.png
│ │ └── JavaCup32.png
│ └── liveTemplates
│ └── jtreg.xml
├── src
└── share
│ ├── bin
│ ├── jtdiff.sh
│ └── jtreg.sh
│ ├── classes
│ ├── META-INF
│ │ └── services
│ │ │ └── java.util.spi.ToolProvider
│ ├── com
│ │ └── sun
│ │ │ └── javatest
│ │ │ ├── diff
│ │ │ ├── Diff.java
│ │ │ ├── DiffReader.java
│ │ │ ├── Fault.java
│ │ │ ├── HTMLReporter.java
│ │ │ ├── HTMLWriter.java
│ │ │ ├── Help.java
│ │ │ ├── Main.java
│ │ │ ├── MultiMap.java
│ │ │ ├── ReportReader.java
│ │ │ ├── Reporter.java
│ │ │ ├── SimpleReporter.java
│ │ │ ├── StandardDiff.java
│ │ │ ├── StatusComparator.java
│ │ │ ├── SuperDiff.java
│ │ │ ├── WorkDirectoryReader.java
│ │ │ └── i18n.properties
│ │ │ └── regtest
│ │ │ ├── BadArgs.java
│ │ │ ├── CheckFiles.java
│ │ │ ├── Main.java
│ │ │ ├── RStatus.java
│ │ │ ├── TimeoutHandler.java
│ │ │ ├── agent
│ │ │ ├── AStatus.java
│ │ │ ├── ActionHelper.java
│ │ │ ├── AgentServer.java
│ │ │ ├── AgentVerbose.java
│ │ │ ├── Alarm.java
│ │ │ ├── AppletWrapper.java
│ │ │ ├── CompileActionHelper.java
│ │ │ ├── Flags.java
│ │ │ ├── GetJDKProperties.java
│ │ │ ├── GetSystemProperty.java
│ │ │ ├── JDK_Version.java
│ │ │ ├── JUnitRunner.java
│ │ │ ├── JavaTestSecurityManager.java
│ │ │ ├── MainActionHelper.java
│ │ │ ├── MainWrapper.java
│ │ │ ├── ModuleHelper.java
│ │ │ ├── RegressionCompileCommand.java
│ │ │ ├── RegressionSecurityManager.java
│ │ │ ├── SearchPath.java
│ │ │ ├── StringArray.java
│ │ │ ├── TestNGRunner.java
│ │ │ ├── TestThreadFactoryHelper.java
│ │ │ └── package-info.java
│ │ │ ├── config
│ │ │ ├── CachingTestFilter.java
│ │ │ ├── ExecMode.java
│ │ │ ├── Expr.java
│ │ │ ├── ExtraPropDefns.java
│ │ │ ├── GroupManager.java
│ │ │ ├── IgnoreKind.java
│ │ │ ├── JDK.java
│ │ │ ├── JDKOpts.java
│ │ │ ├── Locations.java
│ │ │ ├── Modules.java
│ │ │ ├── OS.java
│ │ │ ├── ObservableTestFilter.java
│ │ │ ├── ParseException.java
│ │ │ ├── RegressionContext.java
│ │ │ ├── RegressionEnvironment.java
│ │ │ ├── RegressionKeywords.java
│ │ │ ├── RegressionParameters.java
│ │ │ ├── RegressionTestFinder.java
│ │ │ ├── RegressionTestSuite.java
│ │ │ ├── TestManager.java
│ │ │ ├── TestProperties.java
│ │ │ ├── i18n.properties
│ │ │ └── package-info.java
│ │ │ ├── exec
│ │ │ ├── Action.java
│ │ │ ├── ActionRecorder.java
│ │ │ ├── Agent.java
│ │ │ ├── AppletAction.java
│ │ │ ├── BuildAction.java
│ │ │ ├── CleanAction.java
│ │ │ ├── CompileAction.java
│ │ │ ├── DefaultTimeoutHandler.java
│ │ │ ├── DriverAction.java
│ │ │ ├── IgnoreAction.java
│ │ │ ├── JUnitAction.java
│ │ │ ├── Lock.java
│ │ │ ├── MainAction.java
│ │ │ ├── ModuleConfig.java
│ │ │ ├── ProcessCommand.java
│ │ │ ├── RegressionScript.java
│ │ │ ├── ScratchDirectory.java
│ │ │ ├── ShellAction.java
│ │ │ ├── TestNGAction.java
│ │ │ ├── TestRunException.java
│ │ │ ├── TimeoutHandlerProvider.java
│ │ │ └── package-info.java
│ │ │ ├── package-info.java
│ │ │ ├── report
│ │ │ ├── BasicObserver.java
│ │ │ ├── ElapsedTimeHandler.java
│ │ │ ├── RegressionReporter.java
│ │ │ ├── SummaryReporter.java
│ │ │ ├── TestStats.java
│ │ │ ├── Verbose.java
│ │ │ ├── VerboseHandler.java
│ │ │ ├── XMLWriter.java
│ │ │ ├── i18n.properties
│ │ │ └── package-info.java
│ │ │ ├── tool
│ │ │ ├── ExcludeFileVerifier.java
│ │ │ ├── Help.java
│ │ │ ├── JarManager.java
│ │ │ ├── JtregToolProvider.java
│ │ │ ├── Option.java
│ │ │ ├── OptionDecoder.java
│ │ │ ├── RegressionContextManager.java
│ │ │ ├── Startup.java
│ │ │ ├── Tool.java
│ │ │ ├── Version.java
│ │ │ ├── i18n.properties
│ │ │ ├── jtlogo.png
│ │ │ └── package-info.java
│ │ │ └── util
│ │ │ ├── FileUtils.java
│ │ │ ├── GraphUtils.java
│ │ │ ├── NaturalComparator.java
│ │ │ ├── ProcessUtils.java
│ │ │ ├── StreamCopier.java
│ │ │ ├── StringUtils.java
│ │ │ └── package-info.java
│ └── java
│ │ └── lang
│ │ └── JTRegModuleHelper.java
│ └── doc
│ └── javatest
│ └── regtest
│ ├── README
│ ├── faq-intro.html
│ ├── faq-local-style.html
│ ├── faq.md
│ └── tag-spec.html
└── test
├── 4499340
├── T4499340.gmk
├── lib
│ └── HelloWorld.java
└── test
│ ├── TEST.ROOT
│ └── dir
│ └── Test.java
├── 4730538
├── T4730538.gmk
└── test
│ ├── TEST.ROOT
│ └── Test.java
├── 6517728
├── T6517728.gmk
├── T6517728A.java
├── T6517728B.java
└── TEST.ROOT
├── 6517916
├── T6517916.gmk
├── T6517916.java
└── TEST.ROOT
├── 6519296
├── T6519296.gmk
├── T6519296.java
└── TEST.ROOT
├── 6527624
├── A
│ ├── AA
│ │ ├── GoodAA1.java
│ │ └── GoodAA2.java
│ ├── BadA.java
│ ├── GoodA.java
│ └── TEST.properties
├── B
│ ├── BB
│ │ ├── BadBB1.java
│ │ ├── BadBB2.java
│ │ └── GoodBB.java
│ ├── BadB1.java
│ ├── BadB2.java
│ └── GoodB.java
├── Bad.java
├── Good.java
├── T6527624.gmk
├── TEST.ROOT
└── summary.golden
├── 6533136
└── T6533136.gmk
├── 6585912
├── Error.java
├── Fail.java
├── Pass.java
├── T6585912.gmk
└── TEST.ROOT
├── 6590657
├── T6590657.gmk
├── T6590657.java
├── T6590657a.java
└── TEST.ROOT
├── 6622433
├── AnnoProc.java
├── T6622433.gmk
├── TEST.ROOT
├── TestCompile1.java
├── TestCompile2.java
├── TestJava.java
└── TestShell.sh
├── 6783039
└── T6783039.gmk
├── 6783087
└── T6783087.gmk
├── 6799634
├── AnnoProcTest.java
├── T6799634.gmk
└── TEST.ROOT
├── 6809055
├── AnnoProcTest.java
├── T6809055.gmk
└── TEST.ROOT
├── 7113596
├── T7113596.gmk
├── TEST.ROOT
└── Test.sh
├── 7900112
├── T7900112.gmk
├── TEST.ROOT
└── TestExpected.java
├── 7900130
├── T7900130.gmk
├── TEST.ROOT
└── TestArguments.java
├── 7900165
├── DataProviderException.java
├── T7900165.gmk
└── TEST.ROOT
├── 6811371.gmk
├── LockCheck.gmk
├── Properties
├── PropertiesTest.java
├── PropertyTests.gmk
└── TEST.ROOT
├── README.md
├── SecurityManager
├── SecurityManagerTests.gmk
├── ShowSecurityManager.java
├── TEST.ROOT
├── error
│ └── BadSecurityManagerTest.java
└── pass
│ ├── GoodSecurityManagerTest.java
│ └── SimpleSecurityManagerTest.java
├── TestWhiteSpaceFiles.gmk
├── absLib
├── TEST.ROOT
├── TestAbsLib.gmk
├── lib
│ └── Lib.java
└── t
│ ├── abs
│ └── AbsTest.java
│ └── rel
│ └── RelTest.java
├── addmods
├── AddModulesTest.gmk
├── TEST.ROOT
├── TestNonDefaultCompiler.java
└── TestNonDefaultRuntime.java
├── agentout
├── AgentOut.gmk
├── AnnoProc.java
├── CompileTest.java
├── MainTest.java
└── TEST.ROOT
├── agentvmtimeout
├── AgentVMTimeout.gmk
├── OneSecondTimeoutTest.java
└── TEST.ROOT
├── autovm
├── AutoVMTests.gmk
├── HelloJava.java
├── HelloOtherJava.java
├── HelloShell.sh
├── TEST.ROOT
└── dir
│ ├── TEST.properties
│ └── othervm
│ └── HelloAnotherJava.java
├── badgroups
├── BadGroups.gmk
├── badname
│ ├── TEST.ROOT
│ ├── TEST.groups
│ └── Test.java
└── badname51
│ ├── TEST.ROOT
│ ├── TEST.groups
│ └── Test.java
├── badlibs
├── BadLibsTest.gmk
├── TEST.ROOT
└── d1
│ └── d2
│ └── Test.java
├── badtests
├── BadSecurityManagerTest.java
├── BadTests.gmk
├── ClearSysPropsTest.java
├── ExitTest.java
├── FailTest.java
├── OpenFileTest.java
└── TEST.ROOT
├── basic
├── Basic.gmk
├── Basic.java
└── ReportOnlyTest.gmk
├── bootclasspath
├── BootClassPathTest.gmk
├── TEST.ROOT
├── TestPath.java
├── stdDir
│ ├── TEST.properties
│ └── TestPath.java
└── testNGDir
│ ├── TEST.properties
│ └── TestPath.java
├── bugidtests
├── BugIdTests.gmk
├── InvalidTest.java
├── MixTest.java
├── TEST.ROOT
└── ValidTest.java
├── build-wildcards
├── TEST.ROOT
├── buildWildcards.gmk
├── lib
│ ├── LA.java
│ ├── LB.java
│ ├── LC.java
│ └── p
│ │ ├── LPA.java
│ │ ├── LPB.java
│ │ └── LPC.java
└── tests
│ ├── A.java
│ ├── B.java
│ ├── C.java
│ ├── Test.java
│ └── p
│ ├── PA.java
│ ├── PB.java
│ └── PC.java
├── buildPatternTest
├── BuildPatternTest.gmk
└── BuildPatternTest.java
├── buildTag
├── BuildTagTest.gmk
├── BuildTagTest.java
└── TEST.ROOT
├── cachingFilter
├── CachingFilterTest.gmk
├── TEST.ROOT
├── a
│ └── Test.java
├── b
│ └── Test.java
├── c
│ └── Test.java
└── exclude.jtx
├── classDirs
├── ClassDirsTest.gmk
└── ClassDirsTest.java
├── classIsolation
├── ClassIsolationTest.gmk
├── default
│ ├── TEST.ROOT
│ ├── Test1.java
│ ├── Test2.java
│ └── Test3.java
├── disable
│ ├── TEST.ROOT
│ ├── Test1.java
│ ├── Test2.java
│ └── Test3.java
└── enable
│ ├── TEST.ROOT
│ ├── Test1.java
│ ├── Test2.java
│ └── Test3.java
├── cleanup
├── CleanupTest.gmk
├── CreateUndeletableFile.java
├── CreateUndeletableFile1.java
├── CreateUndeletableFile2.java
├── CreateUndeletableFile3.java
├── CreateUndeletableFile4.java
└── TEST.ROOT
├── cleanupDirs
├── CleanupDirsTest.gmk
├── CleanupDirsTest.java
└── TEST.ROOT
├── compileArgFileTest
├── CompileArgFileTest.gmk
└── GenCompileTests.java
├── compilejdk
├── CompileTest.java
├── CompileTests.gmk
├── ExecuteTest.java
├── ShellTest.sh
├── TEST.ROOT
└── ToolsJarTest.java
├── cpappend
├── CPAppendTests.gmk
├── lib
│ └── p
│ │ └── Lib.java
└── test
│ ├── TEST.ROOT
│ └── Test.java
├── ctrl
├── ControlTest.gmk
├── TEST.ROOT
└── Test.java
├── debug
├── DebugTest.gmk
├── ExplicitCompile.java
├── ImplicitCompile.java
└── TEST.ROOT
├── docs.gmk
├── dupTests
├── DupTest.gmk
├── TEST.ROOT
├── Test.java
└── Test.sh
├── empty
├── EmptyTest.gmk
├── ts1
│ ├── TEST.ROOT
│ ├── TEST.groups
│ ├── Test.java
│ └── empty
│ │ └── Empty.java
└── ts2
│ ├── TEST.ROOT
│ ├── TEST.groups
│ └── empty
│ └── Empty.java
├── env
├── EnvTest.gmk
├── TEST.ROOT
├── applet
│ ├── AppletTest.java
│ ├── AppletTest1.html
│ ├── AppletTest2.html
│ ├── AppletTest3.html
│ ├── AppletTest4.html
│ └── lib
│ │ └── dummy
├── compile
│ ├── CompileTest.java
│ └── lib
│ │ └── dummy
├── lib
│ └── dummy
├── main
│ ├── MainTest.java
│ └── lib
│ │ └── dummy
└── shell
│ ├── ShellTest.java
│ ├── ShellTest.sh
│ └── lib
│ └── dummy
├── exclude
├── ExcludeTest.gmk
├── ProblemList.txt
├── TEST.ROOT
└── p
│ ├── Fail.java
│ └── Pass.java
├── exclusive
├── ExclusiveAccessTest.gmk
├── TEST.ROOT
└── dir
│ ├── Test.java
│ ├── Test.sh
│ ├── Test1.sh
│ ├── Test2.sh
│ ├── Test3.sh
│ └── Test4.sh
├── exitCodes
├── Error.java
├── ErrorAfterPass.java
├── ExitCodeTest.gmk
├── Fail.java
├── Pass.java
└── TEST.ROOT
├── explicitIds
├── ExplicitIds.gmk
├── TEST.ROOT
└── Test.java
├── extlib
├── ExtLibTest.gmk
├── libs
│ └── lib
│ │ └── Lib.java
└── test
│ ├── TEST.ROOT
│ └── Test.java
├── extra-props
├── ExtraPropDefnsTest.gmk
├── bad-compile
│ ├── TEST.ROOT
│ ├── Test1.java
│ └── support
│ │ └── ExtraProps.java
├── bad-execute
│ ├── TEST.ROOT
│ ├── Test1.java
│ ├── Test2.java
│ └── support
│ │ └── ExtraProps.java
├── comments
│ ├── TEST.ROOT
│ ├── Test1.java
│ └── support
│ │ └── ExtraProps.java
├── error
│ ├── ErrorTest.java
│ ├── TEST.ROOT
│ └── support
│ │ └── ExtraProps.java
├── valid.libs
│ ├── TEST.ROOT
│ ├── Test1.java
│ └── support
│ │ ├── ExtraProps.java
│ │ ├── OptExtraProps.java
│ │ ├── bootLib
│ │ └── pBootLib
│ │ │ └── BootLib.java
│ │ └── lib
│ │ └── pLib
│ │ └── Lib.java
└── valid
│ ├── TEST.ROOT
│ ├── Test1.java
│ ├── Test2.java
│ ├── Test3.java
│ └── support
│ ├── ExtraProps.java
│ └── OptExtraProps.java
├── fixup
├── FixupTest.gmk
└── tests
│ ├── a
│ ├── TEST.ROOT
│ └── dir!
│ │ └── Test.java
│ └── b
│ ├── TEST.ROOT
│ └── d!r
│ └── Test.java
├── groups
├── GroupTest.gmk
├── TEST.ROOT
├── TEST.groups
├── TEST.groups2
├── TEST.groups3
├── d1
│ ├── d11
│ │ ├── SCCS
│ │ │ └── Bad.java
│ │ └── Test.java
│ ├── d12
│ │ └── Test.java
│ └── d13
│ │ └── Test.java
├── d2
│ └── Test.java
├── d3
│ ├── d31
│ │ └── Test.java
│ ├── d32
│ │ ├── Bad.java
│ │ └── Test.java
│ └── d33
│ │ └── Test.java
└── d4
│ └── NoTests.java
├── groups2
├── Group2Test.gmk
├── TEST.ROOT
├── TEST.groups
├── Test1.java
├── Test2.java
└── Test3.java
├── i18n
├── checkI18NProps.sh
├── i18n.com.sun.javatest.diff.gmk
└── i18n.com.sun.javatest.regtest.gmk
├── ignoreTag
├── IgnoreTagTest.gmk
├── IgnoreTest.java
├── Pass.java
└── TEST.ROOT
├── ignoresymbolfile
├── IgnoreSymbolFileTest.gmk
├── TEST.ROOT
└── Test.java
├── interrupt
├── InterruptTest.java
└── RunInterrupt.gmk
├── javac
├── JavacTest.java
├── JavacTests.gmk
├── TEST.ROOT
└── TestTrees.java
├── javacVMOptions
├── JavacVMOptions.gmk
├── TEST.ROOT
└── Test.java
├── jdkModulesTest
├── JDKModulesTest.gmk
└── JDKModulesTest.java
├── jdkOptsTest
├── JDKOptsTest.gmk
└── JDKOptsTest.java
├── jdkVersion
├── JDKVersionTest.gmk
├── TEST.ROOT
└── Test.java
├── jtrContentTest
├── TEST.ROOT
├── Test.java
└── VerifyHostname.gmk
├── junit
├── JUnitLibTest.gmk
├── TEST.ROOT
├── juAbsLib
│ ├── TEST.properties
│ └── p
│ │ └── JUnitTest.java
├── juNoLib
│ └── p
│ │ └── JUnitTest.java
├── juRelLib
│ ├── TEST.properties
│ └── p
│ │ └── JUnitTest.java
├── lib
│ └── libpkg
│ │ └── LibClass.java
└── std
│ └── Test.java
├── junitLibs
├── JUnitLibsTest.gmk
├── extlibs
│ └── extLib
│ │ └── ExtLib.java
└── tests
│ ├── TEST.ROOT
│ ├── junit
│ ├── TEST.properties
│ └── Test2.java
│ ├── libs
│ ├── absLib
│ │ └── AbsLib.java
│ └── relLib
│ │ └── RelLib.java
│ └── simple
│ └── Test1.java
├── junitQueryTest
├── JUnitQueryTest.gmk
├── TEST.ROOT
└── a
│ └── b
│ └── c
│ ├── TEST.properties
│ ├── Test1.java
│ └── Test2.java
├── junitTrace
├── JUnitTrace.gmk
├── JupiterLifecycle.java
├── JupiterTempDir.java
├── JupiterTests.java
├── NPE.java
├── Pass.java
└── TEST.ROOT
├── keywords
├── badProps
│ ├── TEST.ROOT
│ └── badProps
│ │ ├── TEST.properties
│ │ └── Test.java
├── badTest
│ ├── InvalidKeyword.java
│ ├── TEST.ROOT
│ └── UnknownKeyword.java
├── good
│ ├── DashKeyword.java
│ └── TEST.ROOT
└── testKeywords.gmk
├── libBuildArgs
├── LibBuildArgsTest.gmk
├── TEST.ROOT
├── bad
│ ├── LibBuildArgsTest.java
│ └── TEST.properties
├── good
│ ├── LibBuildArgsTest.java
│ └── TEST.properties
└── lib
│ ├── bad
│ ├── Bad1.java
│ └── Bad2.java
│ ├── good
│ ├── Good1.java
│ └── Good2.java
│ └── mixed
│ ├── Bad.java
│ └── Good.java
├── libdirs
├── LibDirsTest.gmk
├── TEST.ROOT
├── l1
│ └── L1.java
├── l2
│ └── L2.java
├── l4
│ └── L4.java
├── l6
│ └── L6.java
└── t1
│ ├── TEST.properties
│ ├── l3
│ └── L3.java
│ ├── l5
│ └── L5.java
│ └── t2
│ ├── LibTest.java
│ └── TEST.properties
├── match
├── MatchTest.gmk
├── ProblemList.txt
├── TEST.ROOT
└── p
│ ├── Fail.java
│ └── Pass.java
├── maxOutputSize
├── MaxOutputSize.gmk
├── TEST.ROOT
├── defaultMax
│ └── Test.java
└── overrideMax
│ ├── TEST.properties
│ └── Test.java
├── modlibs
├── ModLibsTest.gmk
├── TEST.ROOT
├── buildAction
│ ├── BuildLibPatch.java
│ ├── BuildLibPkg.java
│ ├── BuildLibUserModClass.java
│ ├── BuildLibUserModClasses.java
│ ├── packages
│ │ ├── BuildPkg.java
│ │ └── p
│ │ │ └── B.java
│ ├── patch
│ │ ├── BuildPatch.java
│ │ └── java.base
│ │ │ └── java
│ │ │ └── io
│ │ │ └── IOHelper.java
│ └── usermods
│ │ ├── BuildUserModClass.java
│ │ ├── BuildUserModClasses.java
│ │ ├── BuildUserModModule.java
│ │ ├── BuildUserModPackage.java
│ │ ├── um1
│ │ ├── module-info.java
│ │ └── um1_p1
│ │ │ └── um1_p1_B.java
│ │ ├── um2
│ │ ├── module-info.java
│ │ └── um2_p1
│ │ │ └── um2_p1_B.java
│ │ ├── um3
│ │ ├── module-info.java
│ │ └── um3_p1
│ │ │ └── um3_p1_B.java
│ │ ├── um4
│ │ ├── module-info.java
│ │ ├── um4_p1
│ │ │ └── um4_q1
│ │ │ │ └── um4_r1
│ │ │ │ ├── um4_p1_q1_r1_B1.java
│ │ │ │ └── um4_p1_q1_r1_B2.java
│ │ └── um4_p2
│ │ │ └── um4_q2
│ │ │ └── um4_r2
│ │ │ ├── um4_p2_q2_r2_B1.java
│ │ │ └── um4_p2_q2_r2_B2.java
│ │ └── um5
│ │ ├── module-info.java
│ │ ├── um5_p1
│ │ └── um5_q1
│ │ │ └── um5_r1
│ │ │ ├── um5_p1_q1_r1_B1.java
│ │ │ └── um5_p1_q1_r1_B2.java
│ │ └── um5_p2
│ │ └── um5_q2
│ │ └── um5_r2
│ │ ├── um5_p2_q2_r2_B1.java
│ │ └── um5_p2_q2_r2_B2.java
├── compileAction
│ ├── packages
│ │ ├── CompilePkg.java
│ │ └── p
│ │ │ └── C.java
│ ├── patch
│ │ ├── CompilePatch.java
│ │ └── java.base
│ │ │ └── java
│ │ │ └── io
│ │ │ ├── IOHelper.java
│ │ │ └── IOHelper2.jasm
│ └── usermods
│ │ ├── CompileUserMod.java
│ │ ├── CompileUserMods.java
│ │ ├── um1
│ │ ├── module-info.java
│ │ └── um1_p1
│ │ │ └── um1_p1_C.java
│ │ ├── um2
│ │ ├── module-info.java
│ │ └── um2_p1
│ │ │ └── um2_p1_C.java
│ │ └── um3
│ │ ├── module-info.java
│ │ └── um3_p1
│ │ └── um3_p1_C.java
├── expect-classes.txt
├── libs
│ ├── packages
│ │ └── lp
│ │ │ └── lp_C.java
│ ├── patchmods
│ │ └── java.base
│ │ │ └── java
│ │ │ └── util
│ │ │ └── streams
│ │ │ └── StreamsHelper.java
│ ├── testng
│ │ └── patchmods
│ │ │ └── java.base
│ │ │ └── java
│ │ │ └── util
│ │ │ └── TestNGHelper.java
│ └── usermods
│ │ ├── lum1
│ │ ├── lum1_p1
│ │ │ └── lum1_p1_C.java
│ │ └── module-info.java
│ │ ├── lum2
│ │ ├── lum2_p1
│ │ │ └── lum2_p1_C.java
│ │ └── module-info.java
│ │ └── lum3
│ │ ├── lum3_p1
│ │ └── lum3_p1_C.java
│ │ └── module-info.java
├── mainAction
│ ├── patchmods
│ │ ├── RunPatchMod.java
│ │ └── java.base
│ │ │ └── java
│ │ │ └── util
│ │ │ └── TestHelper.java
│ └── usermods
│ │ ├── RunUserMod.java
│ │ ├── UseUserModAsLib.java
│ │ └── um1
│ │ ├── module-info.java
│ │ └── um1_p1
│ │ └── um1_p1_M1.java
└── testngAction
│ ├── patchmods
│ ├── TEST.properties
│ └── java.base
│ │ └── java
│ │ └── util
│ │ └── java_util_TestNGTest.java
│ └── usermods
│ ├── TEST.properties
│ ├── um1
│ ├── module-info.java
│ └── um1_p1
│ │ └── um1_p1_T.java
│ └── um2
│ ├── module-info.java
│ └── um2_p1
│ └── um2_p1_T.java
├── moduleOpens
├── ModuleOpen.java
├── ModuleOpensTest.gmk
└── TEST.ROOT
├── modules
├── JDKCompilerTest1.java
├── JDKCompilerTest2.java
├── JavaBaseTest.java
├── JavaTransactionTest.java
├── ModulesTest.gmk
├── ModulesTest.sh
├── NoModulesTest.java
└── TEST.ROOT
├── multirun
├── MultiRunTest.gmk
├── a
│ └── test
│ │ ├── TEST.ROOT
│ │ └── p
│ │ └── Test.java
├── b1
│ └── b
│ │ └── test
│ │ ├── TEST.ROOT
│ │ └── q
│ │ └── Test.java
└── b2
│ └── b
│ └── test
│ ├── TEST.ROOT
│ └── r
│ └── Test.java
├── nativepath
├── NativesEmpty.java
├── NativesEmptyShell.sh
├── NativesOK.java
├── NativesOKShell.sh
├── TEST.ROOT
└── TestNativePath.gmk
├── normalizeStatus
├── NormalizeStatusTest.gmk
├── TEST.ROOT
└── Test.java
├── notRunTests
├── ExcludeTest.java
├── KeywordTest.java
├── ModulesTest.java
├── NoMatchTest.java
├── NotRunTests.gmk
├── PassTest.java
├── RequiresTest.java
├── StatusTest.java
├── TEST.ROOT
├── TimeLimitTest.java
├── exclude.jtx
└── match.jtx
├── openfiles
├── OpenFileTests.gmk
├── TEST.ROOT
├── Test1.java
├── Test2_OpenFile.java
├── Test3.java
├── Test4_OpenDirectory.java
└── Test5.java
├── optionDecoder
├── OptionDecoderTest.gmk
└── OptionDecoderTest.java
├── osTest
├── OSTest.gmk
└── OSTest.java
├── pkgInfo
├── PkgInfoTest.gmk
├── TEST.ROOT
├── Test.java
└── lib
│ └── p
│ ├── HelloWorld.java
│ └── package-info.java
├── policy
├── JUnit.java
├── Main.java
├── PolicyTest.gmk
├── TEST.ROOT
├── TestNG.java
└── simple.policy
├── preview
├── PreviewTest.gmk
├── TEST.ROOT
├── preview
│ ├── Bad.java
│ ├── Duplicate.java
│ ├── JASMClass.jasm
│ ├── JASMTest.java
│ ├── NoPreview.java
│ ├── TEST.properties
│ └── TextBlocks.java
└── std
│ ├── Bad.java
│ ├── BadSyntax.java
│ ├── Duplicate.java
│ ├── Plain.java
│ └── TextBlocks.java
├── previewLeaking
├── TEST.ROOT
├── TestPreviewLeaking.gmk
├── lib
│ └── Lib.java
└── tag
│ └── PreviewTest.java
├── problemList
├── ExcludeGenericAll.java
├── ExcludeGenericArch.java
├── ExcludeNever.java
├── ExcludeOsNameAll.java
├── ExcludeOsNameArch.java
├── ExcludeOsNameRev.java
├── ProblemList.gmk
├── ProblemList.java
├── ProblemList.template
└── TEST.ROOT
├── processid
├── TEST.ROOT
├── Test.java
└── TestVersionCheck.gmk
├── refIgnoreLines
├── RefIgnoreLines.gmk
├── TEST.ROOT
├── Test.java
└── Test.out
├── reportOption
├── ReportOptionTest.gmk
├── TEST.ROOT
├── also-run
│ ├── Error.java
│ ├── Fail.java
│ └── Pass.java
├── do-not-run
│ ├── Error.java
│ ├── Fail.java
│ └── Pass.java
└── to-be-run
│ ├── Error.java
│ ├── Fail.java
│ └── Pass.java
├── requires
├── EmptyTest.java
├── EvalTest.java
├── ExprTest.java
├── FlavorTest.java
├── MultipleTest.java
├── NameNotFoundTest.java
├── RegexpTest.java
├── RequiresTest.gmk
├── SyntaxTest.java
└── TEST.ROOT
├── rerun
├── RerunTest.gmk
├── TEST.ROOT
├── std
│ ├── AppletTest.agentvm.out
│ ├── AppletTest.html
│ ├── AppletTest.java
│ ├── AppletTest.othervm.out
│ ├── BuildTest.agentvm.out
│ ├── BuildTest.java
│ ├── BuildTest.othervm.out
│ ├── CleanTest.agentvm.out
│ ├── CleanTest.java
│ ├── CleanTest.othervm.out
│ ├── CompileTest.agentvm.out
│ ├── CompileTest.java
│ ├── CompileTest.othervm.out
│ ├── IgnoreTest.agentvm.out
│ ├── IgnoreTest.java
│ ├── IgnoreTest.othervm.out
│ ├── JUnitTest.agentvm.out
│ ├── JUnitTest.java
│ ├── JUnitTest.othervm.out
│ ├── MainTest.agentvm.out
│ ├── MainTest.java
│ ├── MainTest.othervm.out
│ ├── ShellTest.agentvm.out
│ ├── ShellTest.othervm.out
│ ├── ShellTest.sh
│ ├── TestNGTest.agentvm.out
│ ├── TestNGTest.java
│ └── TestNGTest.othervm.out
└── testng
│ ├── TestNGTest.agentvm.out
│ ├── TestNGTest.java
│ └── TestNGTest.othervm.out
├── rerun2
├── RerunTest2.gmk
├── RerunTest2.java
└── test
│ ├── TEST.ROOT
│ ├── lib
│ ├── MarkerText.java
│ └── java
│ │ └── lang
│ │ └── MarkerText.java
│ ├── std
│ ├── MainBootLibTest.java
│ ├── MainLibTest.java
│ ├── MainTest.java
│ ├── TestNGBootLibTest.java
│ ├── TestNGLibTest.java
│ └── TestNGTest.java
│ └── testng
│ ├── bootlib
│ ├── TEST.properties
│ └── TestNGBootLibTest.java
│ ├── nolib
│ ├── TEST.properties
│ └── TestNGTest.java
│ └── stdlib
│ ├── TEST.properties
│ └── TestNGLibTest.java
├── retain
├── RetainTest.java
├── TestRetainTest.gmk
└── test
│ ├── ErrorTest.java
│ ├── FailTest.java
│ ├── PassTest.java
│ ├── TEST.ROOT
│ └── a
│ ├── AErrorTest.java
│ ├── AFailTest.java
│ └── APassTest.java
├── sanityTest
└── SanityTest.gmk
├── secprov
├── A.java
├── B.java
├── C.java
├── SecurityProviderTest.gmk
├── TEST.ROOT
└── Test.java
├── share
├── basic
│ ├── README.md
│ ├── TEST.ROOT
│ ├── applet
│ │ ├── ArchiveUnsupported.html
│ │ ├── BadTag.html
│ │ ├── ExitNonZero.html
│ │ ├── ExitNonZero.java
│ │ ├── ExitZero.html
│ │ ├── ExitZero.java
│ │ ├── Fail.html
│ │ ├── Fail.java
│ │ ├── MissApplet.html
│ │ ├── MissEndApplet.html
│ │ ├── MissReqAttrib.html
│ │ ├── MissReqParam.html
│ │ ├── Pass.html
│ │ └── Pass.java
│ ├── build
│ │ ├── BadTag.java
│ │ ├── DirTest.java
│ │ ├── Pass.java
│ │ └── dir
│ │ │ └── DirTest.java
│ ├── clean
│ │ ├── BadTag.java
│ │ ├── CreateDir.sh
│ │ └── Pass.java
│ ├── compile
│ │ ├── BadTag.java
│ │ ├── DirTest.java
│ │ ├── Fail.java
│ │ ├── Pass.java
│ │ └── dir
│ │ │ └── DirTest.java
│ ├── driver
│ │ ├── BadTag.java
│ │ ├── CantFindSrc.java
│ │ ├── ClassNotPublic.java
│ │ ├── Exit.java
│ │ ├── Fail.java
│ │ ├── NoMain.java
│ │ └── Pass.java
│ ├── ignore
│ │ └── BadTag.java
│ ├── junit
│ │ ├── BadTag.java
│ │ ├── BadTestClass.java
│ │ ├── CantFindSrc.java
│ │ ├── Fail.java
│ │ ├── InNamedPkg.java
│ │ ├── Pass.java
│ │ └── VMOptsPassed.java
│ ├── lib
│ │ └── jtreg
│ │ │ └── SkippedException.java
│ ├── main
│ │ ├── BadTag.java
│ │ ├── CantFindSrc.java
│ │ ├── ClassNotPublic.java
│ │ ├── Exit.java
│ │ ├── Fail.java
│ │ ├── NoMain.java
│ │ ├── Pass.java
│ │ ├── Skipped.java
│ │ └── VMOptsPassed.java
│ ├── misc
│ │ ├── Exceptions.java
│ │ ├── ValidBugs.java
│ │ ├── ValidKeyBug.java
│ │ └── ValidKeys.java
│ ├── shell
│ │ ├── BadTag.sh
│ │ ├── Fail.sh
│ │ └── Pass.sh
│ ├── tempFiles
│ │ ├── Main.java
│ │ └── Shell.sh
│ └── testng
│ │ ├── group
│ │ └── p
│ │ │ └── q
│ │ │ ├── BadRun.java
│ │ │ ├── ExtraComment.java
│ │ │ ├── Fail.java
│ │ │ └── Pass.java
│ │ └── singles
│ │ ├── Fail.java
│ │ └── Pass.java
└── simple
│ ├── Error.java
│ ├── Fail.java
│ ├── Pass.java
│ └── TEST.ROOT
├── shell
├── TEST.ROOT
├── lib1
│ └── p1
│ │ └── C1.java
├── lib2
│ └── p2
│ │ └── C2.java
├── libenv
│ └── env.sh
├── testShell.gmk
└── tests
│ ├── MapUtils.java
│ ├── Test1.java
│ ├── Test2.sh
│ ├── Test234.java
│ ├── Test3.sh
│ └── Test4.sh
├── skip
├── SkippedException.java
├── SkippedExceptionTest.gmk
├── TEST.ROOT
├── TestKnownSkippedException.java
├── TestUnknownJtregSkippedException.java
├── TestUnknownSkippedException.java
└── jtreg
│ ├── SkippedException.java
│ └── SkippedException2.java
├── smartActionArgs
├── SmartActionArgs.gmk
├── TEST.ROOT
├── optAuto
│ ├── TEST.properties
│ ├── Test.java
│ ├── Test2.java
│ └── Test3.java
├── optIn
│ ├── TEST.properties
│ ├── Test.java
│ ├── Test2.java
│ └── Test3.java
└── optOut
│ ├── TEST.properties
│ ├── Test.java
│ ├── Test2.java
│ └── Test3.java
├── statsTests
├── StatsTest.java
└── StatsTests.gmk
├── statusFilter
├── StatusFilterTest.gmk
├── TEST.ROOT
├── exclude.jtx
├── p1
│ ├── T1.java
│ ├── T2.java
│ ├── T3.java
│ ├── T4.java
│ └── T5.java
└── p2
│ ├── T1.java
│ ├── T2.java
│ ├── T3.java
│ ├── T4.java
│ └── T5.java
├── streams
├── FileDescriptorTest.java
├── StreamsTest.gmk
├── StreamsTest.java
└── TEST.ROOT
├── sysprops
├── SysPropsTest.gmk
├── TEST.ROOT
└── Test.java
├── tag-spec
└── TestTagSpec.gmk
├── testJavacExitCodes
├── Bad.java
├── Good.java
├── JavacExitCodeTests.gmk
└── TEST.ROOT
├── testRequiredVersion.gmk
├── testThreadFactory
├── TEST.ROOT
├── Test.java
├── TestThreadFactory.gmk
└── TestThreadFactory.java
├── testng-junit
├── TEST.ROOT
├── TestNGJUnitTest.gmk
└── testng
│ ├── TEST.properties
│ └── p
│ ├── T1.java
│ └── T2.java
├── testng
├── TEST.ROOT
├── TestNGLibTest.gmk
├── lib
│ └── libpkg
│ │ └── LibClass.java
├── std
│ └── Test.java
├── tngAbsLib
│ ├── TEST.properties
│ └── p
│ │ └── TestNGTest.java
├── tngNoLib
│ └── p
│ │ └── TestNGTest.java
└── tngRelLib
│ ├── TEST.properties
│ └── p
│ └── TestNGTest.java
├── testngFailureCount
├── FailingTest.java
├── TEST.ROOT
└── TestngFailureCount.gmk
├── testngLibs
├── TestNGLibsTest.gmk
├── extlibs
│ └── extLib
│ │ └── ExtLib.java
└── tests
│ ├── TEST.ROOT
│ ├── libs
│ ├── absLib
│ │ └── AbsLib.java
│ └── relLib
│ │ └── RelLib.java
│ ├── simple
│ └── Test1.java
│ └── testng
│ ├── TEST.properties
│ └── Test2.java
├── testngQueryTest
├── TEST.ROOT
├── TestNGQueryTest.gmk
└── a
│ └── b
│ └── c
│ ├── TEST.properties
│ ├── Test1.java
│ └── Test2.java
├── testngTestDuration
├── TEST.ROOT
├── Test.java
└── TestngTestDuration.gmk
├── testprops
├── TEST.ROOT
├── TestPropsTest.gmk
└── testng
│ ├── TEST.properties
│ └── pkg
│ └── ATest.java
├── threadCleanup
├── TEST.ROOT
├── Test.java
└── ThreadCleanupTest.gmk
├── timelimit
├── Fast.java
├── Medium.java
├── Slow.java
├── TEST.ROOT
└── TimelimitTests.gmk
├── timeoutDefaultSeconds
├── TEST.ROOT
├── TimeoutDefaultSeconds.gmk
├── TimeoutDefaultSecondsWaiter.java
├── junit
│ ├── JUnitTimeoutDefaultSecondsWaiter.java
│ └── TEST.properties
└── one
│ ├── TEST.properties
│ └── TimeoutDefaultSecondsWaiter.java
├── timeoutHandler
├── TestTimeoutHandler.java
├── TimeoutHandlerTimeoutTest.gmk
└── test
│ ├── TEST.ROOT
│ └── Test.java
├── timeouthandlers
├── MyHandler.java
├── TEST.ROOT
├── TestJavaHang.java
├── TestShellHang.sh
└── TimeoutHandlerTest.gmk
├── timeouts
├── README
├── TimeoutTest.gmk
├── make
│ ├── Makefile
│ └── jprt.properties
└── test
│ ├── AAA_Pass.java
│ ├── ExitTest.java
│ ├── Makefile
│ ├── SlowExitTest.java
│ ├── SlowInterruptibleTest.java
│ ├── SlowUninterruptibleTest.java
│ ├── TEST.ROOT
│ ├── ZZZ_Pass.java
│ └── jprt.config
├── toolprovider
├── ToolProviderTest.gmk
└── ToolProviderTest.java
├── verifyexclude
├── ProblemList
│ ├── duplicate.txt
│ ├── exist.txt
│ ├── format.1.txt
│ ├── format.2.txt
│ ├── format.whitespace.txt
│ ├── good.txt
│ └── id.txt
├── TEST.ROOT
├── TEST.groups
├── VerifyExcludeTest.gmk
└── p
│ ├── Pass.java
│ ├── Pass2.java
│ └── g
│ └── Pass3.java
├── versionCheck
├── TEST.ROOT
├── Test.java
└── TestVersionCheck.gmk
└── vmopts
├── TEST.ROOT
├── TestVMOpts.gmk
├── compile
├── AnnProc.java
└── Compile.java
├── main
├── Main.java
└── MainOtherVM.java
└── shell
└── Shell.sh
/.github/workflows/gradle-wrapper-validation.yml:
--------------------------------------------------------------------------------
1 | name: 'Validate Gradle Wrapper'
2 | on:
3 | push:
4 | branches-ignore:
5 | - master
6 | - pr/*
7 |
8 | jobs:
9 | validation:
10 | name: 'Validation'
11 | runs-on: ubuntu-latest
12 | steps:
13 | - uses: actions/checkout@v4
14 | - uses: gradle/actions/wrapper-validation@v4
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /build/
2 | /.idea/
3 | /webrev
4 | .DS_Store
5 | .src-rev
6 |
--------------------------------------------------------------------------------
/.hgignore:
--------------------------------------------------------------------------------
1 | ^(build|dist)/
2 | nbproject/private/
3 | plugins/idea/.idea/
4 | plugins/idea/build/
5 |
6 |
--------------------------------------------------------------------------------
/.jcheck/conf:
--------------------------------------------------------------------------------
1 | [general]
2 | project=code-tools
3 | comments=lax
4 | jbs=CODETOOLS
5 |
6 | [checks]
7 | error=author,committer,reviewers,merge,issues,executable,symlink,message,whitespace
8 |
9 | [repository]
10 | tags=jtreg(?:4\.1-b[0-9]{2}|5\.[01]-b[0-9]{2}|6|-[6789](?:\.[0-9]+)*\+[0-9]+)
11 | branches=
12 |
13 | [census]
14 | version=0
15 | domain=openjdk.org
16 |
17 | [checks "whitespace"]
18 | files=.*\.java|.*\.m|.*\.mm|.*\.gmk|.*\.m4|.*\.ac|Makefile
19 | ignore-tabs=.*\.gmk|Makefile
20 |
21 | [checks "merge"]
22 | message=Merge
23 |
24 | [checks "reviewers"]
25 | reviewers=1
26 | ignore=duke
27 |
28 | [checks "committer"]
29 | role=committer
30 |
31 | [checks "issues"]
32 | pattern=^(79[0-9]{5}): (\S.*)$
33 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to JTReg
2 |
3 | JTReg is part of the OpenJDK [CodeTools] Project.
4 |
5 | Please see for how to contribute.
6 |
7 |
8 | [CodeTools]: https://openjdk.org/projects/code-tools
9 |
--------------------------------------------------------------------------------
/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | The following people have contributed to the development of jtreg.
2 |
3 | Original Author:
4 | Iris Clark
5 |
6 | Tag Specification:
7 | Mark Reinhold
8 |
9 | Currently Maintained As Part Of:
10 | OpenJDK CodeTools Project
11 |
12 | Other Early Contributors:
13 | Brian Kurotsuchi
14 | Dawn Phillips
15 | Jessica Mauvais
16 | John Rose
17 | Maurizio Cimadamore
18 | Kumar Srinivasan
19 |
20 | Since open-sourcing the code in 2006, and the use of first Mercurial and
21 | subsequently Git, the Contributors are tracked in the SCM metadata.
22 | For all recent contributors and contributions, see `git shortlog` or `git log`.
23 |
24 |
--------------------------------------------------------------------------------
/COPYRIGHT:
--------------------------------------------------------------------------------
1 | Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
2 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 |
4 | This code is free software; you can redistribute it and/or modify it
5 | under the terms of the GNU General Public License version 2 only, as
6 | published by the Free Software Foundation.
7 |
8 | This code is distributed in the hope that it will be useful, but WITHOUT
9 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 | version 2 for more details (a copy is included in the LICENSE file that
12 | accompanied this code).
13 |
14 | You should have received a copy of the GNU General Public License version
15 | 2 along with this work; if not, write to the Free Software Foundation,
16 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 |
18 | Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 | or visit www.oracle.com if you need additional information or have any
20 | questions.
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # The Regression Test Harness for the OpenJDK platform: `jtreg`
2 |
3 | * For details on writing tests for `jtreg`, see
4 | [The JDK Test Framework: Tag Language Specification][tagspec].
5 |
6 | * For details on building `jtreg`, see
7 | [doc/building.md](doc/building.md).
8 |
9 | * For additional details about `jtreg`, see
10 | [The `jtreg` FAQ][faq].
11 |
12 | * For details on running JDK tests using the JDK _make test_ framework, see
13 | [Using "make test" (the run-test framework)][make-test].
14 |
15 | [faq]: https://openjdk.org/jtreg/faq.html
16 | [tagspec]: https://openjdk.org/jtreg/tag-spec.html
17 | [make-test]: https://github.com/openjdk/jdk/blob/master/doc/testing.md
18 |
19 | ## Using IntelliJ IDEA
20 |
21 | The `jtreg` repo also contains a plugin for the IntelliJ IDEA IDE.
22 | This is a convenience plugin which adds `jtreg` capabilities to the IDE.
23 | With this plugin, OpenJDK developers can write, run, and debug `jtreg` tests
24 | without leaving their IDE environment. For more details, see the file
25 | [plugins/idea/README.md](plugins/idea/README.md) in this repo.
26 |
--------------------------------------------------------------------------------
/make/checkstyle/checkstyle-emacs.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Coding Style Check Results
7 | --------------------------
8 | Total files checked:
9 | Files with errors:
10 | Total errors:
11 | Errors per file:
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | ::
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/plugins/idea/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | .gradle/
3 | build/
4 |
5 | .intellijPlatform/
6 |
--------------------------------------------------------------------------------
/plugins/idea/gradle.properties:
--------------------------------------------------------------------------------
1 | jtregHome = /path/to/jtreg
2 | # Help > About
3 | ideVersion = 2024.2.0.2
4 | minBuild = IC-242.20224.419
5 | # https://plugins.jetbrains.com/plugin/23025-ant
6 | antSupportVersion = 242.20224.159
7 | pluginVersion = 1.18
8 | javaLevel = 21
9 | notes =
\
10 | - CODETOOLS-7903934: Add support for query strings to the IntelliJ plugin
\
11 |
12 |
--------------------------------------------------------------------------------
/plugins/idea/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/plugins/idea/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/plugins/idea/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionSha256Sum=5b9c5eb3f9fc2c94abaea57d90bd78747ca117ddbbf96c859d3741181a12bf2a
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
5 | networkTimeout=10000
6 | validateDistributionUrl=true
7 | zipStoreBase=GRADLE_USER_HOME
8 | zipStorePath=wrapper/dists
9 |
--------------------------------------------------------------------------------
/plugins/idea/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'jtreg-plugin'
2 |
3 |
--------------------------------------------------------------------------------
/plugins/idea/src/main/resources/com/oracle/plugin/jtreg/icons/JavaCup16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/plugins/idea/src/main/resources/com/oracle/plugin/jtreg/icons/JavaCup16.png
--------------------------------------------------------------------------------
/plugins/idea/src/main/resources/com/oracle/plugin/jtreg/icons/JavaCup32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/plugins/idea/src/main/resources/com/oracle/plugin/jtreg/icons/JavaCup32.png
--------------------------------------------------------------------------------
/src/share/classes/META-INF/services/java.util.spi.ToolProvider:
--------------------------------------------------------------------------------
1 | com.sun.javatest.regtest.tool.JtregToolProvider
2 |
--------------------------------------------------------------------------------
/src/share/classes/com/sun/javatest/regtest/tool/jtlogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/src/share/classes/com/sun/javatest/regtest/tool/jtlogo.png
--------------------------------------------------------------------------------
/src/share/doc/javatest/regtest/faq-intro.html:
--------------------------------------------------------------------------------
1 | The jtreg FAQ
2 |
3 | This FAQ is a growing list of questions asked by developers running and
4 | writing tests which will be run using the regression test harness for the
5 | OpenJDK platform, jtreg. It is a supplement to the
6 | test-tag language specification and is intended to
7 | illuminate implications of the spec and to answer questions about this
8 | implementation of the spec.
9 |
10 |
11 |
12 | Index
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/share/doc/javatest/regtest/faq-local-style.html:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/test/4499340/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/4499340/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/4730538/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/4730538/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/6517728/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6517728/TEST.ROOT
--------------------------------------------------------------------------------
/test/6517916/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b08
2 |
--------------------------------------------------------------------------------
/test/6519296/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6519296/TEST.ROOT
--------------------------------------------------------------------------------
/test/6527624/A/TEST.properties:
--------------------------------------------------------------------------------
1 | keys=A-only
2 |
--------------------------------------------------------------------------------
/test/6527624/B/GoodB.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @key Any1 Any3
27 | */
28 |
29 | public class GoodB {
30 | public static void main(String[] args) {
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/test/6527624/Good.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @key Any1 Any3
27 | */
28 |
29 | public class Good {
30 | public static void main(String[] args) {
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/test/6527624/TEST.ROOT:
--------------------------------------------------------------------------------
1 | keys=Any1 Any2 Any3
2 |
--------------------------------------------------------------------------------
/test/6527624/summary.golden:
--------------------------------------------------------------------------------
1 | A/AA/GoodAA1.java Passed. Execution successful
2 | A/AA/GoodAA2.java Passed. Execution successful
3 | A/BadA.java Error. Parse Exception: Invalid key: B-only
4 | A/GoodA.java Passed. Execution successful
5 | Bad.java Error. Parse Exception: Invalid key: A-only
6 | B/BadB1.java Error. Parse Exception: Invalid key: A-only
7 | B/BadB2.java Error. Parse Exception: Invalid key: B-only
8 | B/BB/BadBB1.java Error. Parse Exception: Invalid key: A-only
9 | B/BB/BadBB2.java Error. Parse Exception: Invalid key: B-only
10 | B/BB/GoodBB.java Passed. Execution successful
11 | B/GoodB.java Passed. Execution successful
12 | Good.java Passed. Execution successful
13 |
--------------------------------------------------------------------------------
/test/6585912/Error.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @ignore
26 | */
27 |
--------------------------------------------------------------------------------
/test/6585912/Fail.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | public class Fail
26 |
--------------------------------------------------------------------------------
/test/6585912/Pass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | public class Pass {
26 | public static void main(String... args) {
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/test/6585912/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6585912/TEST.ROOT
--------------------------------------------------------------------------------
/test/6590657/T6590657a.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | class T6590657a { }
25 |
--------------------------------------------------------------------------------
/test/6590657/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6590657/TEST.ROOT
--------------------------------------------------------------------------------
/test/6622433/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6622433/TEST.ROOT
--------------------------------------------------------------------------------
/test/6622433/TestCompile1.java:
--------------------------------------------------------------------------------
1 | /* @test /nodynamiccopyright/
2 | * @compile/fail TestCompile1.java
3 | */
4 |
5 | // no easy way to get at internal compiler options table
6 | // so simply provide an invalid file and use an external
7 | // option to force raw diagnostics
8 | class
9 |
--------------------------------------------------------------------------------
/test/6622433/TestCompile2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @compile AnnoProc.java
26 | * @compile -processor AnnoProc TestCompile2.java
27 | */
28 | class TestCompile2 { }
29 |
--------------------------------------------------------------------------------
/test/6622433/TestShell.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 | #
7 | # This code is free software; you can redistribute it and/or modify it
8 | # under the terms of the GNU General Public License version 2 only, as
9 | # published by the Free Software Foundation.
10 | #
11 | # This code is distributed in the hope that it will be useful, but WITHOUT
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 | # version 2 for more details (a copy is included in the LICENSE file that
15 | # accompanied this code).
16 | #
17 | # You should have received a copy of the GNU General Public License version
18 | # 2 along with this work; if not, write to the Free Software Foundation,
19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 | #
21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 | # or visit www.oracle.com if you need additional information or have any
23 | # questions.
24 | #
25 |
26 | # @test
27 |
28 | env
29 |
--------------------------------------------------------------------------------
/test/6799634/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6799634/TEST.ROOT
--------------------------------------------------------------------------------
/test/6809055/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/6809055/TEST.ROOT
--------------------------------------------------------------------------------
/test/7113596/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/7113596/TEST.ROOT
--------------------------------------------------------------------------------
/test/7113596/Test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # @test
4 |
5 | env
6 |
7 |
--------------------------------------------------------------------------------
/test/7900112/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/7900112/TEST.ROOT
--------------------------------------------------------------------------------
/test/7900130/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/7900130/TEST.ROOT
--------------------------------------------------------------------------------
/test/7900165/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/7900165/TEST.ROOT
--------------------------------------------------------------------------------
/test/Properties/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/Properties/TEST.ROOT
--------------------------------------------------------------------------------
/test/SecurityManager/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/SecurityManager/TEST.ROOT
--------------------------------------------------------------------------------
/test/absLib/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/absLib/TEST.ROOT
--------------------------------------------------------------------------------
/test/absLib/lib/Lib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class Lib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/addmods/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/addmods/TEST.ROOT
--------------------------------------------------------------------------------
/test/agentout/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/agentout/TEST.ROOT
--------------------------------------------------------------------------------
/test/agentvmtimeout/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/agentvmtimeout/TEST.ROOT
--------------------------------------------------------------------------------
/test/autovm/HelloShell.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 | #
7 | # This code is free software; you can redistribute it and/or modify it
8 | # under the terms of the GNU General Public License version 2 only, as
9 | # published by the Free Software Foundation.
10 | #
11 | # This code is distributed in the hope that it will be useful, but WITHOUT
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 | # version 2 for more details (a copy is included in the LICENSE file that
15 | # accompanied this code).
16 | #
17 | # You should have received a copy of the GNU General Public License version
18 | # 2 along with this work; if not, write to the Free Software Foundation,
19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 | #
21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 | # or visit www.oracle.com if you need additional information or have any
23 | # questions.
24 | #
25 |
26 | # @test
27 |
28 | echo "Hello, Shell"
29 |
30 |
--------------------------------------------------------------------------------
/test/autovm/TEST.ROOT:
--------------------------------------------------------------------------------
1 | othervm.dirs=othervm
2 |
3 |
--------------------------------------------------------------------------------
/test/autovm/dir/TEST.properties:
--------------------------------------------------------------------------------
1 | othervm.dirs=dir/othervm
2 |
3 |
--------------------------------------------------------------------------------
/test/badgroups/badname/TEST.ROOT:
--------------------------------------------------------------------------------
1 | groups = TEST.groups
2 |
--------------------------------------------------------------------------------
/test/badgroups/badname/TEST.groups:
--------------------------------------------------------------------------------
1 | main = Test.java
2 | a/b
3 |
--------------------------------------------------------------------------------
/test/badgroups/badname51/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 5.1 b01
2 | groups = TEST.groups
3 |
--------------------------------------------------------------------------------
/test/badgroups/badname51/TEST.groups:
--------------------------------------------------------------------------------
1 | main = Test.java
2 | a/b
3 |
--------------------------------------------------------------------------------
/test/badlibs/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/badlibs/TEST.ROOT
--------------------------------------------------------------------------------
/test/badtests/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/badtests/TEST.ROOT
--------------------------------------------------------------------------------
/test/bootclasspath/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/bootclasspath/TEST.ROOT
--------------------------------------------------------------------------------
/test/bootclasspath/TestPath.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @run main TestPath
4 | * @run main/bootclasspath TestPath -bcp
5 | */
6 | public class TestPath {
7 | public static void main(String... args) throws Exception {
8 | String bcp = System.getProperty("sun.boot.class.path");
9 | String jcp = System.getProperty("java.class.path");
10 | System.out.println("boot class path: " + bcp);
11 | System.out.println("user class path: " + jcp);
12 |
13 | String path = (args.length > 0 && args[0].equals("-bcp")) ? bcp : jcp;
14 |
15 | if (path.matches(".*BootClassPathTest.work.classes.*")
16 | && path.matches(".*tools.jar.*")) {
17 | System.out.println("classes found on expected path");
18 | } else {
19 | throw new Exception("classes not found on expected path");
20 | }
21 | }
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/test/bootclasspath/stdDir/TEST.properties:
--------------------------------------------------------------------------------
1 | bootclasspath.dirs = .
2 |
--------------------------------------------------------------------------------
/test/bootclasspath/stdDir/TestPath.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @run main TestPath -bcp
4 | */
5 | public class TestPath {
6 | public static void main(String... args) throws Exception {
7 | String bcp = System.getProperty("sun.boot.class.path");
8 | String jcp = System.getProperty("java.class.path");
9 | System.out.println("boot class path: " + bcp);
10 | System.out.println("user class path: " + jcp);
11 |
12 | String path = (args.length > 0 && args[0].equals("-bcp")) ? bcp : jcp;
13 |
14 | if (path.matches(".*BootClassPathTest.work.classes.*")
15 | && path.matches(".*tools.jar.*")) {
16 | System.out.println("classes found on expected path");
17 | } else {
18 | throw new Exception("classes not found on expected path");
19 | }
20 | }
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/test/bootclasspath/testNGDir/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 | bootclasspath.dirs = .
3 |
--------------------------------------------------------------------------------
/test/bootclasspath/testNGDir/TestPath.java:
--------------------------------------------------------------------------------
1 | import org.testng.annotations.*;
2 |
3 | @Test
4 | public class TestPath {
5 | public void run() throws Exception {
6 | String bcp = System.getProperty("sun.boot.class.path");
7 | String jcp = System.getProperty("java.class.path");
8 | System.out.println("boot class path: " + bcp);
9 | System.out.println("user class path: " + jcp);
10 |
11 | String path = bcp;
12 |
13 | if (path.matches(".*BootClassPathTest.work.classes.*")
14 | && path.matches(".*tools.jar.*")) {
15 | System.out.println("classes found on expected path");
16 | } else {
17 | throw new Exception("classes not found on expected path");
18 | }
19 | }
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/test/bugidtests/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/bugidtests/TEST.ROOT
--------------------------------------------------------------------------------
/test/build-wildcards/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/build-wildcards/TEST.ROOT
--------------------------------------------------------------------------------
/test/build-wildcards/lib/LA.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class LA { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/lib/LB.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class LB { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/lib/LC.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class LC { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/lib/p/LPA.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p; public class LPA { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/lib/p/LPB.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p; public class LPB { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/lib/p/LPC.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p; public class LPC { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/tests/A.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class A { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/tests/B.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class B { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/tests/C.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class C { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/tests/p/PA.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p; public class PA { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/tests/p/PB.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p; public class PB { }
25 |
--------------------------------------------------------------------------------
/test/build-wildcards/tests/p/PC.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p; public class PC { }
25 |
--------------------------------------------------------------------------------
/test/buildTag/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/buildTag/TEST.ROOT
--------------------------------------------------------------------------------
/test/cachingFilter/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/cachingFilter/TEST.ROOT
--------------------------------------------------------------------------------
/test/cachingFilter/exclude.jtx:
--------------------------------------------------------------------------------
1 | b/Test.java 0 generic-all
2 |
3 |
--------------------------------------------------------------------------------
/test/classIsolation/default/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/classIsolation/default/TEST.ROOT
--------------------------------------------------------------------------------
/test/classIsolation/default/Test1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test1 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/default/Test2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test2 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/default/Test3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test3 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/disable/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b07
2 |
--------------------------------------------------------------------------------
/test/classIsolation/disable/Test1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test1 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/disable/Test2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test2 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/disable/Test3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test3 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/enable/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b08
2 |
3 |
--------------------------------------------------------------------------------
/test/classIsolation/enable/Test1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test1 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/enable/Test2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test2 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/classIsolation/enable/Test3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test3 {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/cleanup/CreateUndeletableFile1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build CreateUndeletableFile
27 | * @run main CreateUndeletableFile
28 | */
29 |
--------------------------------------------------------------------------------
/test/cleanup/CreateUndeletableFile2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build CreateUndeletableFile
27 | * @run main CreateUndeletableFile
28 | */
29 |
--------------------------------------------------------------------------------
/test/cleanup/CreateUndeletableFile3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build CreateUndeletableFile
27 | * @run main CreateUndeletableFile
28 | */
29 |
--------------------------------------------------------------------------------
/test/cleanup/CreateUndeletableFile4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build CreateUndeletableFile
27 | * @run main CreateUndeletableFile
28 | */
29 |
--------------------------------------------------------------------------------
/test/cleanup/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/cleanup/TEST.ROOT
--------------------------------------------------------------------------------
/test/cleanupDirs/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/cleanupDirs/TEST.ROOT
--------------------------------------------------------------------------------
/test/compilejdk/CompileTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @compile CompileTest.java
27 | */
28 |
29 | class CompileTest { }
30 |
31 |
--------------------------------------------------------------------------------
/test/compilejdk/ShellTest.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # @test
4 |
5 | env
6 |
--------------------------------------------------------------------------------
/test/compilejdk/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/compilejdk/TEST.ROOT
--------------------------------------------------------------------------------
/test/cpappend/lib/p/Lib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package p;
25 |
26 | public class Lib {
27 | }
28 |
--------------------------------------------------------------------------------
/test/cpappend/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/cpappend/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/ctrl/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/ctrl/TEST.ROOT
--------------------------------------------------------------------------------
/test/ctrl/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 |
5 | public class Test {
6 | public static void main(String... args) {
7 | for (int i = 0; i < 40; i++) {
8 | if (i % 8 == 0) System.out.print(String.format("%3o: ", i));
9 | System.out.print((char) i);
10 | if (i % 8 == 7) System.out.println();
11 | }
12 | System.out.println("\u00E2");
13 | System.out.println("\\u0000\\u0001\\u0002");
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/test/debug/ExplicitCompile.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @compile ExplicitCompile.java
27 | */
28 | public class ExplicitCompile { }
29 |
30 |
--------------------------------------------------------------------------------
/test/debug/ImplicitCompile.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @run build ImplicitCompile
27 | */
28 | public class ImplicitCompile { }
29 |
30 |
--------------------------------------------------------------------------------
/test/debug/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/debug/TEST.ROOT
--------------------------------------------------------------------------------
/test/dupTests/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/dupTests/TEST.ROOT
--------------------------------------------------------------------------------
/test/dupTests/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/dupTests/Test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # @test
4 |
--------------------------------------------------------------------------------
/test/empty/ts1/TEST.ROOT:
--------------------------------------------------------------------------------
1 | groups = TEST.groups
2 |
--------------------------------------------------------------------------------
/test/empty/ts1/TEST.groups:
--------------------------------------------------------------------------------
1 | empty =
2 | empty2 =
3 |
--------------------------------------------------------------------------------
/test/empty/ts1/Test.java:
--------------------------------------------------------------------------------
1 | /* @test */
2 |
3 | public class Test {
4 | public static void main(String... args) { }
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/test/empty/ts1/empty/Empty.java:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/empty/ts2/TEST.ROOT:
--------------------------------------------------------------------------------
1 | groups = TEST.groups
2 |
--------------------------------------------------------------------------------
/test/empty/ts2/TEST.groups:
--------------------------------------------------------------------------------
1 | empty =
2 |
--------------------------------------------------------------------------------
/test/empty/ts2/empty/Empty.java:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/env/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b08
2 | keys = needDisplay
3 |
--------------------------------------------------------------------------------
/test/env/applet/lib/dummy:
--------------------------------------------------------------------------------
1 | This file exists so that the containing lib directory exists
2 |
--------------------------------------------------------------------------------
/test/env/compile/lib/dummy:
--------------------------------------------------------------------------------
1 | This file exists so that the containing lib directory exists
2 |
--------------------------------------------------------------------------------
/test/env/lib/dummy:
--------------------------------------------------------------------------------
1 | This file exists so that the containing lib directory exists
2 |
--------------------------------------------------------------------------------
/test/env/main/lib/dummy:
--------------------------------------------------------------------------------
1 | This file exists so that the containing lib directory exists
2 |
--------------------------------------------------------------------------------
/test/env/shell/lib/dummy:
--------------------------------------------------------------------------------
1 | This file exists so that the containing lib directory exists
2 |
--------------------------------------------------------------------------------
/test/exclude/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/exclude/TEST.ROOT
--------------------------------------------------------------------------------
/test/exclude/p/Pass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | public class Pass {
26 | public static void main(String... args) {
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/test/exitCodes/Error.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @ignore
27 | */
28 | public class Error {
29 | public static void main(String... args) { }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/exitCodes/Pass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class Pass {
28 | public static void main(String... args) { }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/test/exitCodes/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/exitCodes/TEST.ROOT
--------------------------------------------------------------------------------
/test/explicitIds/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/explicitIds/TEST.ROOT
--------------------------------------------------------------------------------
/test/extlib/libs/lib/Lib.java:
--------------------------------------------------------------------------------
1 | class Lib { }
2 |
--------------------------------------------------------------------------------
/test/extlib/test/TEST.ROOT:
--------------------------------------------------------------------------------
1 | external.lib.roots = ../libs
2 |
--------------------------------------------------------------------------------
/test/extlib/test/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @library /lib
4 | * @build Lib Test
5 | * @run main Test
6 | */
7 |
8 | public class Test {
9 | Lib lib = new Lib();
10 |
11 | public static void main(String... args) {
12 | }
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/test/extra-props/bad-compile/TEST.ROOT:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | requires.extraPropDefns = support/ExtraProps.java
25 | requires.properties = extra
26 |
--------------------------------------------------------------------------------
/test/extra-props/bad-execute/TEST.ROOT:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | requires.extraPropDefns = support/ExtraProps.java
25 | requires.properties = extra
26 |
--------------------------------------------------------------------------------
/test/extra-props/comments/TEST.ROOT:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | requires.extraPropDefns = support/ExtraProps.java
25 | requires.properties = extra
26 |
27 |
--------------------------------------------------------------------------------
/test/extra-props/error/TEST.ROOT:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | requires.extraPropDefns = \
25 | support/ExtraProps.java
26 |
27 | requires.properties = buggyExtra
28 |
--------------------------------------------------------------------------------
/test/fixup/tests/a/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/fixup/tests/a/TEST.ROOT
--------------------------------------------------------------------------------
/test/fixup/tests/a/dir!/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test {
5 | public static void main(String... args) {
6 | }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/test/fixup/tests/b/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/fixup/tests/b/TEST.ROOT
--------------------------------------------------------------------------------
/test/fixup/tests/b/d!r/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test {
5 | public static void main(String... args) {
6 | }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/test/groups/TEST.ROOT:
--------------------------------------------------------------------------------
1 | groups = TEST.groups [missingfile] [TEST.groups2] TEST.groups3
2 |
--------------------------------------------------------------------------------
/test/groups/TEST.groups:
--------------------------------------------------------------------------------
1 | g1 = d1/d11 d1/d13
2 | g2 = d1 -d1/d12
3 | g3 = d2
4 | g4 = :g1 :g3
5 | g5 = d3 -d3/d32/Bad.java
6 | g6 = d4
7 |
8 | # self-cycle
9 | g10 = :g10
10 |
11 | # cycle
12 | g11 = :g1 :g12
13 | g12 = :g11
14 |
15 | g13 = :g4 -:g1
16 | g14 = :g1 -d1/d11
17 |
18 | # empty
19 | g15 =
20 |
21 |
--------------------------------------------------------------------------------
/test/groups/TEST.groups2:
--------------------------------------------------------------------------------
1 | g20 = d1/d11
2 |
--------------------------------------------------------------------------------
/test/groups/TEST.groups3:
--------------------------------------------------------------------------------
1 |
2 | # g30: d1/
3 | g30 = d1 d1
4 |
5 | # g31: d1/
6 | g31 = d1 d1/d12
7 |
8 | # g32: d1/
9 | g32 = d1/d12 d1
10 |
11 | # g33: d1/d12/
12 | g33 = d1/d12
13 |
14 | # g34: d1/
15 | g34 = d1 :g33
16 |
17 | # g35: d2/
18 | g35 = d1/d12 d2 -:g30
19 |
20 | # g36: d1/d11/ d1/d13/
21 | g36: d1 -d1/d12
22 |
23 | # g37: d1/d11/ d1/d13/
24 | g37: d1 -:g33
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/test/groups/d4/NoTests.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | // no tests
25 |
--------------------------------------------------------------------------------
/test/groups2/TEST.ROOT:
--------------------------------------------------------------------------------
1 | groups = TEST.groups
--------------------------------------------------------------------------------
/test/groups2/TEST.groups:
--------------------------------------------------------------------------------
1 | all = .
2 |
3 | indirectAll = :all
4 |
5 | allWithExtra = Test1.java Test2.java :all
--------------------------------------------------------------------------------
/test/ignoreTag/Pass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class Pass {
28 | public static void main(String... args) { }
29 | }
30 |
--------------------------------------------------------------------------------
/test/ignoreTag/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/ignoreTag/TEST.ROOT
--------------------------------------------------------------------------------
/test/ignoresymbolfile/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/ignoresymbolfile/TEST.ROOT
--------------------------------------------------------------------------------
/test/javac/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/javac/TEST.ROOT
--------------------------------------------------------------------------------
/test/javacVMOptions/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/javacVMOptions/TEST.ROOT
--------------------------------------------------------------------------------
/test/jdkVersion/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/jdkVersion/TEST.ROOT
--------------------------------------------------------------------------------
/test/jdkVersion/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 |
26 | public class Test {
27 | public static void main(String... args) { }
28 | }
--------------------------------------------------------------------------------
/test/jtrContentTest/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/jtrContentTest/TEST.ROOT
--------------------------------------------------------------------------------
/test/junit/lib/libpkg/LibClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package libpkg;
25 |
26 | public class LibClass {
27 | public String hello() {
28 | return "hello!";
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/test/junitLibs/extlibs/extLib/ExtLib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class ExtLib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/junitLibs/tests/libs/absLib/AbsLib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class AbsLib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/junitLibs/tests/libs/relLib/RelLib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class RelLib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/junitQueryTest/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/junitQueryTest/TEST.ROOT
--------------------------------------------------------------------------------
/test/junitQueryTest/a/b/c/TEST.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | #
5 | # This code is free software; you can redistribute it and/or modify it
6 | # under the terms of the GNU General Public License version 2 only, as
7 | # published by the Free Software Foundation.
8 | #
9 | # This code is distributed in the hope that it will be useful, but WITHOUT
10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | # version 2 for more details (a copy is included in the LICENSE file that
13 | # accompanied this code).
14 | #
15 | # You should have received a copy of the GNU General Public License version
16 | # 2 along with this work; if not, write to the Free Software Foundation,
17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | #
19 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | # or visit www.oracle.com if you need additional information or have any
21 | # questions.
22 | #
23 |
24 | JUnit.dirs = .
--------------------------------------------------------------------------------
/test/junitTrace/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/junitTrace/TEST.ROOT
--------------------------------------------------------------------------------
/test/keywords/badProps/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/keywords/badProps/TEST.ROOT
--------------------------------------------------------------------------------
/test/keywords/badProps/badProps/TEST.properties:
--------------------------------------------------------------------------------
1 | keys = bad%word
2 |
--------------------------------------------------------------------------------
/test/keywords/badProps/badProps/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test {
5 | public static void main(String... args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/keywords/badTest/InvalidKeyword.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @key in%valid
4 | */
5 | public class InvalidKeyword {
6 | public static void main(String... args) { }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/test/keywords/badTest/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/keywords/badTest/TEST.ROOT
--------------------------------------------------------------------------------
/test/keywords/badTest/UnknownKeyword.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @key unknown
4 | */
5 | public class UnknownKeyword {
6 | public static void main(String... args) { }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/test/keywords/good/DashKeyword.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @key abc def two-words 1234567
4 | */
5 | public class DashKeyword {
6 | public static void main(String... args) { }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/test/keywords/good/TEST.ROOT:
--------------------------------------------------------------------------------
1 | keys = abc def two-words 1234567
2 |
3 |
--------------------------------------------------------------------------------
/test/libBuildArgs/bad/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 | lib.dirs = /lib
3 |
4 |
--------------------------------------------------------------------------------
/test/libBuildArgs/good/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 | lib.dirs = /lib
3 | lib.build = good.* mixed.Good
4 |
5 |
--------------------------------------------------------------------------------
/test/libBuildArgs/lib/bad/Bad1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package bad;
25 |
26 | public class Bad1 {
27 | #
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/test/libBuildArgs/lib/bad/Bad2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package bad;
25 |
26 | public class Bad2 {
27 | #
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/test/libBuildArgs/lib/mixed/Bad.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package mixed;
25 |
26 | public class Bad {
27 | #
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/test/libdirs/TEST.ROOT:
--------------------------------------------------------------------------------
1 | lib.dirs = l1 /l2
2 |
--------------------------------------------------------------------------------
/test/libdirs/t1/TEST.properties:
--------------------------------------------------------------------------------
1 | lib.dirs = l3 /l4
2 |
3 |
--------------------------------------------------------------------------------
/test/libdirs/t1/t2/LibTest.java:
--------------------------------------------------------------------------------
1 | import java.io.PrintStream;
2 | import org.testng.annotations.*;
3 |
4 | public class LibTest {
5 | @Test
6 | public void run() {
7 | PrintStream out = System.out;
8 | new L1(out);
9 | new L2(out);
10 | new L3(out);
11 | new L4(out);
12 | new L5(out);
13 | new L6(out);
14 | }
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/test/libdirs/t1/t2/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 | lib.dirs = ../l5 /l6
3 |
4 |
--------------------------------------------------------------------------------
/test/match/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/match/TEST.ROOT
--------------------------------------------------------------------------------
/test/match/p/Pass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | public class Pass {
26 | public static void main(String... args) {
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/test/maxOutputSize/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/maxOutputSize/TEST.ROOT
--------------------------------------------------------------------------------
/test/maxOutputSize/overrideMax/TEST.properties:
--------------------------------------------------------------------------------
1 | maxOutputSize = 4000
2 |
--------------------------------------------------------------------------------
/test/modlibs/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b08
2 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/BuildLibPatch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @library /libs/patchmods
27 | * @build java.base/java.util.streams.StreamsHelper
28 | */
29 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/BuildLibPkg.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @library /libs/packages
27 | * @build lp.lp_C
28 | */
29 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/BuildLibUserModClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @library /libs/usermods
27 | * @build lum1/lum1_p1.lum1_p1_C
28 | */
29 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/packages/BuildPkg.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build p.B
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/patch/BuildPatch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build java.base/java.io.IOHelper
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/BuildUserModClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build um1/module-info um1/um1_p1.um1_p1_B
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/BuildUserModModule.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @library /libs/usermods
27 | * @build um5/*
28 | */
29 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/BuildUserModPackage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @library /libs/usermods
27 | * @build um4/um4_p1.um4_q1.um4_r1.*
28 | */
29 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/um1/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um1 {
25 | exports um1_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/um2/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um2 {
25 | exports um2_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/um3/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um3 {
25 | exports um3_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/um4/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um4 {
25 | exports um4_p1.um4_q1.um4_r1;
26 | exports um4_p2.um4_q2.um4_r2;
27 | }
28 |
--------------------------------------------------------------------------------
/test/modlibs/buildAction/usermods/um5/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um5 {
25 | exports um5_p1.um5_q1.um5_r1;
26 | exports um5_p2.um5_q2.um5_r2;
27 | }
28 |
--------------------------------------------------------------------------------
/test/modlibs/compileAction/packages/CompilePkg.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @compile p/C.java
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/compileAction/usermods/CompileUserMod.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @compile/module=um1 module-info.java um1_p1/um1_p1_C.java
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/compileAction/usermods/um1/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um1 {
25 | exports um1_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/compileAction/usermods/um2/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um2 {
25 | exports um2_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/compileAction/usermods/um3/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um3 {
25 | exports um3_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/libs/patchmods/java.base/java/util/streams/StreamsHelper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package java.util.streams;
25 |
26 | public class StreamsHelper {
27 | }
28 |
--------------------------------------------------------------------------------
/test/modlibs/libs/usermods/lum1/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module lum1 {
25 | exports lum1_p1;
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/test/modlibs/libs/usermods/lum2/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module lum2 {
25 | exports lum2_p1;
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/test/modlibs/libs/usermods/lum3/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module lum3 {
25 | exports lum3_p1;
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/test/modlibs/mainAction/patchmods/RunPatchMod.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @run main java.base/java.util.TestHelper
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/mainAction/usermods/RunUserMod.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @run main um1/um1_p1.um1_p1_M1
27 | */
28 |
--------------------------------------------------------------------------------
/test/modlibs/mainAction/usermods/um1/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um1 {
25 | exports um1_p1;
26 | }
27 |
--------------------------------------------------------------------------------
/test/modlibs/testngAction/patchmods/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 |
--------------------------------------------------------------------------------
/test/modlibs/testngAction/patchmods/java.base/java/util/java_util_TestNGTest.java:
--------------------------------------------------------------------------------
1 | package java.util;
2 |
3 | import org.testng.Assert;
4 | import org.testng.annotations.Test;
5 |
6 | @Test
7 | public class java_util_TestNGTest {
8 | @Test
9 | public void test() {
10 | System.err.println(getClass().getName());
11 | Thread.dumpStack();
12 | Assert.assertTrue(true, "assert true");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/test/modlibs/testngAction/usermods/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 |
--------------------------------------------------------------------------------
/test/modlibs/testngAction/usermods/um1/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um1 {
25 | requires org.testng;
26 | exports um1_p1;
27 | }
28 |
--------------------------------------------------------------------------------
/test/modlibs/testngAction/usermods/um2/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | module um2 {
25 | requires org.testng;
26 | exports um2_p1;
27 | }
28 |
--------------------------------------------------------------------------------
/test/moduleOpens/TEST.ROOT:
--------------------------------------------------------------------------------
1 | useNewPatchModule=true
2 |
--------------------------------------------------------------------------------
/test/modules/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/modules/TEST.ROOT
--------------------------------------------------------------------------------
/test/multirun/a/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/multirun/a/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/multirun/b1/b/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/multirun/b1/b/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/multirun/b2/b/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/multirun/b2/b/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/nativepath/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/nativepath/TEST.ROOT
--------------------------------------------------------------------------------
/test/normalizeStatus/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/normalizeStatus/TEST.ROOT
--------------------------------------------------------------------------------
/test/normalizeStatus/Test.java:
--------------------------------------------------------------------------------
1 | /**
2 | * @test
3 | */
4 | public class Test {
5 | public static void main(String... args) {
6 | throw new Error("abc\ndef ghi");
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/test/notRunTests/TEST.ROOT:
--------------------------------------------------------------------------------
1 | keys = Keyword
--------------------------------------------------------------------------------
/test/openfiles/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/openfiles/TEST.ROOT
--------------------------------------------------------------------------------
/test/openfiles/Test1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class Test1 {
28 | public static void main(String... args) { }
29 | }
30 |
--------------------------------------------------------------------------------
/test/openfiles/Test3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class Test3 {
28 | public static void main(String... args) { }
29 | }
30 |
--------------------------------------------------------------------------------
/test/openfiles/Test5.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class Test5 {
28 | public static void main(String... args) { }
29 | }
30 |
--------------------------------------------------------------------------------
/test/pkgInfo/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/pkgInfo/TEST.ROOT
--------------------------------------------------------------------------------
/test/pkgInfo/lib/p/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | @Deprecated
25 | package p;
26 |
--------------------------------------------------------------------------------
/test/policy/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/policy/TEST.ROOT
--------------------------------------------------------------------------------
/test/policy/simple.policy:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | grant {
25 | permission java.util.PropertyPermission "test.*", "read";
26 | };
27 |
28 |
--------------------------------------------------------------------------------
/test/preview/TEST.ROOT:
--------------------------------------------------------------------------------
1 | #
2 | # Run `jtreg` with `-javacoptions:-XDforcePreview` to not rely JDK-specific preview features
3 | #
4 |
5 | keys = bad
6 | allowSmartActionArgs = true
7 |
--------------------------------------------------------------------------------
/test/preview/preview/TEST.properties:
--------------------------------------------------------------------------------
1 | enablePreview = true
2 |
--------------------------------------------------------------------------------
/test/previewLeaking/TEST.ROOT:
--------------------------------------------------------------------------------
1 | #
2 | # Run `jtreg` with `-javacoptions:-XDforcePreview` to not rely JDK-specific preview features
3 | #
4 |
--------------------------------------------------------------------------------
/test/previewLeaking/lib/Lib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | record Lib() {}
25 |
--------------------------------------------------------------------------------
/test/problemList/ExcludeNever.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 |
28 | public class ExcludeNever {
29 | public static void main(String[] args) { }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/problemList/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/problemList/TEST.ROOT
--------------------------------------------------------------------------------
/test/processid/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/processid/TEST.ROOT
--------------------------------------------------------------------------------
/test/processid/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class Test {
28 | public static void main(String[] args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/refIgnoreLines/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/refIgnoreLines/TEST.ROOT
--------------------------------------------------------------------------------
/test/refIgnoreLines/Test.out:
--------------------------------------------------------------------------------
1 | Test.java:30:5: compiler.err.illegal.start.of.type
2 | Test.java:30:6: compiler.err.expected: ';'
3 | Test.java:31:2: compiler.err.premature.eof
4 | 3 errors
5 |
--------------------------------------------------------------------------------
/test/reportOption/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/reportOption/TEST.ROOT
--------------------------------------------------------------------------------
/test/requires/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requires.properties=file.separator line.separator
2 |
--------------------------------------------------------------------------------
/test/rerun/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b08
2 | TestNG.dirs = testng
3 | keys = needDisplay
4 |
--------------------------------------------------------------------------------
/test/rerun/std/BuildTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @clean BuildTest
26 | * @build BuildTest
27 | * @build BuildTest
28 | */
29 | public class BuildTest { }
30 |
--------------------------------------------------------------------------------
/test/rerun/std/CleanTest.agentvm.out:
--------------------------------------------------------------------------------
1 | ### Section clean
2 | cd %BUILDTEST%/RerunTest.agentvm/work/scratch && \
3 | rm -f %BUILDTEST%/RerunTest.agentvm/work/classes/std/CleanTest.d/CleanTest.class
4 | ### Section clean
5 | cd %BUILDTEST%/RerunTest.agentvm/work/scratch && \
6 | for f in %BUILDTEST%/RerunTest.agentvm/work/classes/std/CleanTest.d/p/*; do
7 | if [ -f $f ]; then rm $f ; fi
8 | done
9 |
--------------------------------------------------------------------------------
/test/rerun/std/CleanTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @clean CleanTest
26 | * @clean p.*
27 | */
28 | public class CleanTest { }
29 |
--------------------------------------------------------------------------------
/test/rerun/std/CleanTest.othervm.out:
--------------------------------------------------------------------------------
1 | ### Section clean
2 | cd %BUILDTEST%/RerunTest.othervm/work/scratch && \
3 | rm -f %BUILDTEST%/RerunTest.othervm/work/classes/std/CleanTest.d/CleanTest.class
4 | ### Section clean
5 | cd %BUILDTEST%/RerunTest.othervm/work/scratch && \
6 | for f in %BUILDTEST%/RerunTest.othervm/work/classes/std/CleanTest.d/p/*; do
7 | if [ -f $f ]; then rm $f ; fi
8 | done
9 |
--------------------------------------------------------------------------------
/test/rerun/std/CompileTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @compile CompileTest.java
26 | */
27 | public class CompileTest { }
28 |
--------------------------------------------------------------------------------
/test/rerun/std/IgnoreTest.agentvm.out:
--------------------------------------------------------------------------------
1 | ### Section ignore
2 | cd %BUILDTEST%/RerunTest.agentvm/work/scratch && \
3 | # @ignore: (suppressed)
4 |
--------------------------------------------------------------------------------
/test/rerun/std/IgnoreTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @ignore
26 | */
27 |
--------------------------------------------------------------------------------
/test/rerun/std/IgnoreTest.othervm.out:
--------------------------------------------------------------------------------
1 | ### Section ignore
2 | cd %BUILDTEST%/RerunTest.othervm/work/scratch && \
3 | # @ignore: (suppressed)
4 |
--------------------------------------------------------------------------------
/test/rerun/std/MainTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | */
26 | public class MainTest {
27 | public static void main(String... args) { }
28 | }
29 |
--------------------------------------------------------------------------------
/test/rerun/std/ShellTest.agentvm.out:
--------------------------------------------------------------------------------
1 | ### Section shell
2 | cd %BUILDTEST%/RerunTest.agentvm/work/scratch && \
3 | DISPLAY=%DISPLAY% \
4 | HOME=%HOME% \
5 | JTREG_HOME=%JTREG_HOME% \
6 | LANG=en_US.UTF-8 \
7 | MY_ENV_VAR=x \
8 | PATH=/bin:/usr/bin:/usr/sbin \
9 | TZ=GMT+0.00 \
10 | TESTFILE=%WS%/test/rerun/std/ShellTest.sh \
11 | TESTSRC=%WS%/test/rerun/std \
12 | TESTSRCPATH=%WS%/test/rerun/std \
13 | TESTCLASSES=%BUILDTEST%/RerunTest.agentvm/work/classes/std/ShellTest.d \
14 | TESTCLASSPATH=%BUILDTEST%/RerunTest.agentvm/work/classes/std/ShellTest.d \
15 | COMPILEJAVA=%JDKHOME% \
16 | TESTJAVA=%JDKHOME% \
17 | TESTVMOPTS=-Dmy.vm.option=x \
18 | TESTTOOLVMOPTS=-J-Dmy.vm.option=x \
19 | TESTJAVACOPTS=-XDmy.javac.option=x \
20 | TESTJAVAOPTS=-Dmy.java.option=x \
21 | TESTTIMEOUTFACTOR=1.0 \
22 | TESTROOT=%WS%/test/rerun \
23 | FS=/ \
24 | PS=: \
25 | NULL=/dev/null \
26 | sh \
27 | %WS%/test/rerun/std/ShellTest.sh
28 |
--------------------------------------------------------------------------------
/test/rerun/std/ShellTest.othervm.out:
--------------------------------------------------------------------------------
1 | ### Section shell
2 | cd %BUILDTEST%/RerunTest.othervm/work/scratch && \
3 | DISPLAY=%DISPLAY% \
4 | HOME=%HOME% \
5 | JTREG_HOME=%JTREG_HOME% \
6 | LANG=en_US.UTF-8 \
7 | MY_ENV_VAR=x \
8 | PATH=/bin:/usr/bin:/usr/sbin \
9 | TZ=GMT+0.00 \
10 | TESTFILE=%WS%/test/rerun/std/ShellTest.sh \
11 | TESTSRC=%WS%/test/rerun/std \
12 | TESTSRCPATH=%WS%/test/rerun/std \
13 | TESTCLASSES=%BUILDTEST%/RerunTest.othervm/work/classes/std/ShellTest.d \
14 | TESTCLASSPATH=%BUILDTEST%/RerunTest.othervm/work/classes/std/ShellTest.d \
15 | COMPILEJAVA=%JDKHOME% \
16 | TESTJAVA=%JDKHOME% \
17 | TESTVMOPTS=-Dmy.vm.option=x \
18 | TESTTOOLVMOPTS=-J-Dmy.vm.option=x \
19 | TESTJAVACOPTS=-XDmy.javac.option=x \
20 | TESTJAVAOPTS=-Dmy.java.option=x \
21 | TESTTIMEOUTFACTOR=1.0 \
22 | TESTROOT=%WS%/test/rerun \
23 | FS=/ \
24 | PS=: \
25 | NULL=/dev/null \
26 | sh \
27 | %WS%/test/rerun/std/ShellTest.sh
28 |
--------------------------------------------------------------------------------
/test/rerun/testng/TestNGTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | import org.testng.annotations.*;
25 |
26 | public class TestNGTest {
27 | @Test
28 | public void test() {
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/test/rerun2/test/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion = 4.2 b08
2 |
3 |
--------------------------------------------------------------------------------
/test/rerun2/test/lib/MarkerText.java:
--------------------------------------------------------------------------------
1 | public class MarkerText {
2 | public static String get() {
3 | return "Lorem ipsum dolor sit amet, consectetur adipisicing elit.";
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/test/rerun2/test/lib/java/lang/MarkerText.java:
--------------------------------------------------------------------------------
1 | package java.lang;
2 |
3 | public class MarkerText {
4 | public static String get() {
5 | return "Lorem ipsum dolor sit amet, consectetur adipisicing elit.";
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/test/rerun2/test/std/MainBootLibTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @library /lib
4 | * @build java.lang.MarkerText
5 | * @run main/bootclasspath MainBootLibTest
6 | */
7 |
8 | public class MainBootLibTest {
9 | public static void main(String... args) {
10 | System.out.println(java.lang.MarkerText.get());
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/test/rerun2/test/std/MainLibTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @library /lib
4 | * @build MarkerText
5 | * @run main MainLibTest
6 | */
7 |
8 | public class MainLibTest {
9 | public static void main(String... args) {
10 | System.out.println(MarkerText.get());
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/test/rerun2/test/std/MainTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 |
5 | public class MainTest {
6 | private static final String markerText =
7 | "Lorem ipsum dolor sit amet, consectetur adipisicing elit.";
8 |
9 | public static void main(String... args) {
10 | System.out.println(markerText);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/test/rerun2/test/std/TestNGBootLibTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @library /lib
4 | * @build java.lang.MarkerText
5 | * @run testng/bootclasspath TestNGBootLibTest
6 | */
7 |
8 | import org.testng.annotations.*;
9 |
10 | public class TestNGBootLibTest {
11 | @Test
12 | public void test() {
13 | System.out.println(java.lang.MarkerText.get());
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/test/rerun2/test/std/TestNGLibTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @library /lib
4 | * @build MarkerText
5 | * @run testng TestNGLibTest
6 | */
7 |
8 | import org.testng.annotations.*;
9 |
10 | public class TestNGLibTest {
11 | @Test
12 | public void test() {
13 | System.out.println(MarkerText.get());
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/test/rerun2/test/std/TestNGTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | * @run testng TestNGTest
4 | */
5 |
6 | import org.testng.annotations.*;
7 |
8 | public class TestNGTest {
9 | private static final String markerText =
10 | "Lorem ipsum dolor sit amet, consectetur adipisicing elit.";
11 |
12 | @Test
13 | public void test() {
14 | System.out.println(markerText);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/test/rerun2/test/testng/bootlib/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 | lib.dirs = /lib
3 | bootclasspath.dirs = .
4 |
--------------------------------------------------------------------------------
/test/rerun2/test/testng/bootlib/TestNGBootLibTest.java:
--------------------------------------------------------------------------------
1 | import org.testng.annotations.*;
2 |
3 | public class TestNGBootLibTest {
4 | @Test
5 | public void test() {
6 | System.out.println(java.lang.MarkerText.get());
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/test/rerun2/test/testng/nolib/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 |
--------------------------------------------------------------------------------
/test/rerun2/test/testng/nolib/TestNGTest.java:
--------------------------------------------------------------------------------
1 | import org.testng.annotations.*;
2 |
3 | public class TestNGTest {
4 | private static final String markerText =
5 | "Lorem ipsum dolor sit amet, consectetur adipisicing elit.";
6 |
7 | @Test
8 | public void test() {
9 | System.out.println(markerText);
10 | }
11 | }
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/rerun2/test/testng/stdlib/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 | lib.dirs = /lib
3 |
--------------------------------------------------------------------------------
/test/rerun2/test/testng/stdlib/TestNGLibTest.java:
--------------------------------------------------------------------------------
1 | import org.testng.annotations.*;
2 |
3 | public class TestNGLibTest {
4 | @Test
5 | public void test() {
6 | System.out.println(MarkerText.get());
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/test/retain/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/retain/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/secprov/A.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build Test
27 | * @run main Test A 1.0 A
28 | */
29 |
30 |
--------------------------------------------------------------------------------
/test/secprov/B.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build Test
27 | * @run main Test B 1.0 B
28 | */
29 |
30 |
--------------------------------------------------------------------------------
/test/secprov/C.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @build Test
27 | * @run main Test C 1.0 C
28 | */
29 |
30 |
--------------------------------------------------------------------------------
/test/secprov/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/secprov/TEST.ROOT
--------------------------------------------------------------------------------
/test/share/basic/TEST.ROOT:
--------------------------------------------------------------------------------
1 | # This file identifies the root of the test-suite hierarchy.
2 |
3 | # Do not change the contents of this file unless you have spoken to
4 | # Mark Reinhold (mr@eng).
5 |
6 | # The list of acceptable keys for this testsuite.
7 | keys=2d dnd i18n needDisplay
8 |
9 | # TestNG subdirectories
10 | TestNG.dirs=testng/group
11 |
12 |
--------------------------------------------------------------------------------
/test/share/basic/clean/CreateDir.sh:
--------------------------------------------------------------------------------
1 | OS=`uname -s`
2 | case "$OS" in
3 | SunOS )
4 | FILESEP="/" ;;
5 | Windows_95 | Windows_NT )
6 | FILESEP="\\" ;;
7 | * )
8 | echo "Unrecognized system!"
9 | esac
10 |
11 | CURDIR="."
12 |
13 | mkdir ${CURDIR}${FILESEP}testDir
14 |
15 | date > "${CURDIR}${FILESEP}elk"
16 | date > "${CURDIR}${FILESEP}testDir${FILESEP}cow"
17 | date > "${CURDIR}${FILESEP}testDir${FILESEP}moose"
18 |
19 | echo "Directory structure created"
20 |
--------------------------------------------------------------------------------
/test/share/basic/shell/BadTag.sh:
--------------------------------------------------------------------------------
1 | # @test
2 | # @summary Error: Parse Exception: No script name provided for `shell'
3 | # @run shell
4 |
5 | # @test
6 | # @summary Error: Parse Exception: Bad option for shell: bad_opt
7 | # @run shell/bad_opt BadTag.sh
8 |
9 | # @test
10 | # @summary Error: Parse Exception: Bad integer specification: bad_int
11 | # @run shell/timeout=bad_int BadTag.sh
12 |
13 | echo "hi!"
14 |
--------------------------------------------------------------------------------
/test/share/basic/shell/Fail.sh:
--------------------------------------------------------------------------------
1 | # @test
2 | # @summary Failed: Execution failed: exit code 1
3 |
4 | # @test
5 | # @summary Failed: Execution failed: exit code 1
6 | # @run shell Fail.sh
7 |
8 | # @test
9 | # @summary Failed: Execution failed: exit code 1
10 | # @run shell/timeout=3 Fail.sh
11 |
12 | # @test
13 | # @summary Passed: Execution failed as exptected
14 | # @run shell/fail Fail.sh
15 |
16 | # @test
17 | # @summary Passed: Execution failed as expected
18 | # @run shell/fail/timeout=9 Fail.sh
19 |
20 | # @test
21 | # @summary Passed: Execution failed as expected
22 | # @run shell/fail Fail.sh arg0 arg1 arg2 arg3
23 |
24 | echo "I should fail"
25 | echo "My args: " $@
26 |
27 | exit 1
28 |
--------------------------------------------------------------------------------
/test/share/basic/shell/Pass.sh:
--------------------------------------------------------------------------------
1 | # @test
2 | # @summary Passed: Execution successful
3 |
4 | # @test
5 | # @summary Passed: Execution successful
6 | # @run shell Pass.sh
7 |
8 | # @test
9 | # @summary Passed: Execution successful
10 | # @run shell/timeout=4 Pass.sh
11 |
12 | # @test
13 | # @summary Failed: Execution passed unexptectedly: exit code 0
14 | # @run shell/fail Pass.sh
15 |
16 | # @test
17 | # @summary Failed: Execution passed unexptectedly: exit code 0
18 | # @run shell/fail/timeout=8 Pass.sh
19 |
20 | # @test
21 | # @summary Passed: Execution successful
22 | # @run shell Pass.sh arg0 arg1 arg2 arg3
23 |
24 | echo "I should pass"
25 | echo "My args: " $@
26 |
--------------------------------------------------------------------------------
/test/share/basic/tempFiles/Shell.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # @test
3 | # @summary Passed: Write a temporary file
4 | # @run shell Shell.sh
5 |
6 | echo Shell.sh running
7 | echo "file Shell.tmp" > Shell.tmp
8 |
--------------------------------------------------------------------------------
/test/share/simple/Error.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test
25 | * @summary This test should give an error, because the class is not found
26 | */
27 |
28 |
29 |
--------------------------------------------------------------------------------
/test/share/simple/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/share/simple/TEST.ROOT
--------------------------------------------------------------------------------
/test/shell/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/shell/TEST.ROOT
--------------------------------------------------------------------------------
/test/skip/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/skip/TEST.ROOT
--------------------------------------------------------------------------------
/test/smartActionArgs/TEST.ROOT:
--------------------------------------------------------------------------------
1 | requiredVersion=4.2 b14
2 |
--------------------------------------------------------------------------------
/test/smartActionArgs/optAuto/TEST.properties:
--------------------------------------------------------------------------------
1 | # allowSmartActionArgs=
2 |
--------------------------------------------------------------------------------
/test/smartActionArgs/optIn/TEST.properties:
--------------------------------------------------------------------------------
1 | allowSmartActionArgs=true
2 |
--------------------------------------------------------------------------------
/test/smartActionArgs/optOut/TEST.properties:
--------------------------------------------------------------------------------
1 | allowSmartActionArgs=false
2 |
--------------------------------------------------------------------------------
/test/statusFilter/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/statusFilter/TEST.ROOT
--------------------------------------------------------------------------------
/test/statusFilter/exclude.jtx:
--------------------------------------------------------------------------------
1 | # test exclude list
2 | p2/T4.java
3 |
--------------------------------------------------------------------------------
/test/statusFilter/p1/T1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T1 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/statusFilter/p1/T2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T2 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/statusFilter/p1/T4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T4 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/statusFilter/p1/T5.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T5 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/statusFilter/p2/T1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T1 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/statusFilter/p2/T2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | * @ignore
27 | */
28 | public class T2 {
29 | public static void main(String... args) {
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/test/statusFilter/p2/T4.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T4 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/statusFilter/p2/T5.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /*
25 | * @test
26 | */
27 | public class T5 {
28 | public static void main(String... args) {
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/test/streams/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/streams/TEST.ROOT
--------------------------------------------------------------------------------
/test/sysprops/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/sysprops/TEST.ROOT
--------------------------------------------------------------------------------
/test/testJavacExitCodes/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testJavacExitCodes/TEST.ROOT
--------------------------------------------------------------------------------
/test/testThreadFactory/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testThreadFactory/TEST.ROOT
--------------------------------------------------------------------------------
/test/testng-junit/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testng-junit/TEST.ROOT
--------------------------------------------------------------------------------
/test/testng-junit/testng/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 |
--------------------------------------------------------------------------------
/test/testng-junit/testng/p/T1.java:
--------------------------------------------------------------------------------
1 | package p;
2 |
3 | import org.junit.Test;
4 |
5 | public class T1 {
6 | @Test
7 | public void test() {
8 | System.out.println("test1");
9 | }
10 | @Test
11 | public void test2() {
12 | System.out.println("test2");
13 | }
14 | @Test
15 | public void test3() {
16 | System.out.println("test3");
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/test/testng-junit/testng/p/T2.java:
--------------------------------------------------------------------------------
1 | package p;
2 |
3 | import org.testng.annotations.Test;
4 |
5 | public class T2 {
6 | @Test
7 | public void test1() {
8 | System.out.println("test1");
9 | }
10 | @Test
11 | public void test2() {
12 | System.out.println("test2");
13 | }
14 | @Test
15 | public void test3() {
16 | System.out.println("test3");
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/test/testng/lib/libpkg/LibClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | package libpkg;
25 |
26 | public class LibClass {
27 | public String hello() {
28 | return "hello!";
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/test/testngFailureCount/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testngFailureCount/TEST.ROOT
--------------------------------------------------------------------------------
/test/testngLibs/extlibs/extLib/ExtLib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class ExtLib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/testngLibs/tests/libs/absLib/AbsLib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class AbsLib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/testngLibs/tests/libs/relLib/RelLib.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | public class RelLib { }
25 |
26 |
--------------------------------------------------------------------------------
/test/testngQueryTest/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testngQueryTest/TEST.ROOT
--------------------------------------------------------------------------------
/test/testngQueryTest/a/b/c/TEST.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | #
5 | # This code is free software; you can redistribute it and/or modify it
6 | # under the terms of the GNU General Public License version 2 only, as
7 | # published by the Free Software Foundation.
8 | #
9 | # This code is distributed in the hope that it will be useful, but WITHOUT
10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | # version 2 for more details (a copy is included in the LICENSE file that
13 | # accompanied this code).
14 | #
15 | # You should have received a copy of the GNU General Public License version
16 | # 2 along with this work; if not, write to the Free Software Foundation,
17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | #
19 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | # or visit www.oracle.com if you need additional information or have any
21 | # questions.
22 | #
23 |
24 | TestNG.dirs = .
25 |
--------------------------------------------------------------------------------
/test/testngTestDuration/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testngTestDuration/TEST.ROOT
--------------------------------------------------------------------------------
/test/testprops/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/testprops/TEST.ROOT
--------------------------------------------------------------------------------
/test/testprops/testng/TEST.properties:
--------------------------------------------------------------------------------
1 | TestNG.dirs = .
2 |
--------------------------------------------------------------------------------
/test/testprops/testng/pkg/ATest.java:
--------------------------------------------------------------------------------
1 | package pkg;
2 | import org.testng.annotations.*;
3 |
4 | @Test
5 | public class ATest {
6 | public void run() { }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/test/threadCleanup/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/threadCleanup/TEST.ROOT
--------------------------------------------------------------------------------
/test/timelimit/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/timelimit/TEST.ROOT
--------------------------------------------------------------------------------
/test/timeoutDefaultSeconds/TEST.ROOT:
--------------------------------------------------------------------------------
1 | timeout.default.seconds = 2
2 |
--------------------------------------------------------------------------------
/test/timeoutDefaultSeconds/junit/TEST.properties:
--------------------------------------------------------------------------------
1 | timeout.default.seconds = 1
2 | JUnit.dirs = .
3 |
--------------------------------------------------------------------------------
/test/timeoutDefaultSeconds/one/TEST.properties:
--------------------------------------------------------------------------------
1 | timeout.default.seconds = 1
2 |
--------------------------------------------------------------------------------
/test/timeoutHandler/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/timeoutHandler/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/timeouthandlers/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/timeouthandlers/TEST.ROOT
--------------------------------------------------------------------------------
/test/timeouthandlers/TestShellHang.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 | #
7 | # This code is free software; you can redistribute it and/or modify it
8 | # under the terms of the GNU General Public License version 2 only, as
9 | # published by the Free Software Foundation.
10 | #
11 | # This code is distributed in the hope that it will be useful, but WITHOUT
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 | # version 2 for more details (a copy is included in the LICENSE file that
15 | # accompanied this code).
16 | #
17 | # You should have received a copy of the GNU General Public License version
18 | # 2 along with this work; if not, write to the Free Software Foundation,
19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 | #
21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 | # or visit www.oracle.com if you need additional information or have any
23 | # questions.
24 | #
25 |
26 | # @test
27 |
28 | while :
29 | do
30 | sleep 2
31 | done
32 |
--------------------------------------------------------------------------------
/test/timeouts/README:
--------------------------------------------------------------------------------
1 | This directory provides a collection of tests designed to exercise jtreg's
2 | ability to handle tests that do not return or which kill the VM in which
3 | they are executing.
4 |
5 | The tests can be run locally via the build/TimeoutTest.ok target.
6 | They can also be run on the JDK team's JPRT build-and-test system
7 | by executing make/jprt-timeout.sh.
8 |
9 |
--------------------------------------------------------------------------------
/test/timeouts/test/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/timeouts/test/TEST.ROOT
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/duplicate.txt:
--------------------------------------------------------------------------------
1 | p/Pass2.java#id0 123 x
2 | p/Pass2.java#id0 123 y
3 |
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/exist.txt:
--------------------------------------------------------------------------------
1 | Noexist.java 123 x
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/format.1.txt:
--------------------------------------------------------------------------------
1 | p/Pass.java
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/format.2.txt:
--------------------------------------------------------------------------------
1 | p/Pass.java 123.123 xyz
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/format.whitespace.txt:
--------------------------------------------------------------------------------
1 | p/Pass.java 123 x
2 |
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/good.txt:
--------------------------------------------------------------------------------
1 | p/Pass.java 123 x
2 | p/Pass2.java#id1 123 x
3 | p/Pass2.java#id0 123 x,y
4 |
--------------------------------------------------------------------------------
/test/verifyexclude/ProblemList/id.txt:
--------------------------------------------------------------------------------
1 | p/Pass2.java 123 x
--------------------------------------------------------------------------------
/test/verifyexclude/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/verifyexclude/TEST.ROOT
--------------------------------------------------------------------------------
/test/verifyexclude/TEST.groups:
--------------------------------------------------------------------------------
1 | group1 = p/g
2 |
--------------------------------------------------------------------------------
/test/verifyexclude/p/Pass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | public class Pass {
26 | public static void main(String... args) {
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/test/verifyexclude/p/Pass2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | /* @test */
26 | public class Pass2 {
27 | public static void main(String... args) {
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/test/verifyexclude/p/g/Pass3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 | *
5 | * This code is free software; you can redistribute it and/or modify it
6 | * under the terms of the GNU General Public License version 2 only, as
7 | * published by the Free Software Foundation.
8 | *
9 | * This code is distributed in the hope that it will be useful, but WITHOUT
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 | * version 2 for more details (a copy is included in the LICENSE file that
13 | * accompanied this code).
14 | *
15 | * You should have received a copy of the GNU General Public License version
16 | * 2 along with this work; if not, write to the Free Software Foundation,
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 | *
19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 | * or visit www.oracle.com if you need additional information or have any
21 | * questions.
22 | */
23 |
24 | /* @test */
25 | public class Pass3 {
26 | public static void main(String... args) {
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/test/versionCheck/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/versionCheck/TEST.ROOT
--------------------------------------------------------------------------------
/test/versionCheck/Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * @test
3 | */
4 | public class Test {
5 | public static void main(String[] args) { }
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/test/vmopts/TEST.ROOT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/openjdk/jtreg/666453dc24ce74ec081664c7d048721ad2a4da81/test/vmopts/TEST.ROOT
--------------------------------------------------------------------------------
/test/vmopts/shell/Shell.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # @test
4 |
5 | echo TESTVMOPTS= $TESTVMOPTS
6 |
7 | for i in $TESTVMOPTS ; do
8 | case $i in
9 | -Dfoo=* ) exit 0 ;;
10 | esac
11 | done
12 |
13 | echo "-Dfoo=* not found in TESTVMOPTS"
14 | exit 1
15 |
--------------------------------------------------------------------------------