Skip to content

Commit

Permalink
Properly passing AGENT_HOSTNAME into the runner
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Apr 19, 2024
1 parent 23496c5 commit 44b0afd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cryptotest/tests/GssApiMechanismTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* java.security.jgss/sun.security.jgss
* java.security.jgss/sun.security.jgss.krb5
* java.security.jgss/sun.security.krb5
* @bug 1022017
* @bug 1022017 1066099
* @library /
* @build cryptotest.tests.GssApiMechanismTests
* cryptotest.Settings
Expand Down
2 changes: 1 addition & 1 deletion cryptotest/tests/SaslServerFactoryTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/*
* @test
* @modules java.base/java.security:open
* @bug 1422738
* @bug 1422738 1066099
* @library /
* @build cryptotest.tests.SaslServerFactoryTests
* cryptotest.Settings
Expand Down
13 changes: 12 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,18 @@ fi

AGENT_OPT=""
if [ -n "${SKIP_AGENT_TESTS:-}" ] ; then
AGENT_OPT="-javaoption:-Dcryptotests.skipAgentTests=1"
AGENT_OPT="-javaoption:-Dcryptotests.skipAgentTests=1"
else
if [ -n "${AGENT_HOSTNAME:-}" ] ; then
AGENT_OPT="-javaoption:-Dcryptotests.agentHostName=$AGENT_HOSTNAME"
else
echo "You have not set SKIP_AGENT_TESTS and you have empty AGENT_HOSTNAME"
echo "set SKIP_AGENT_TESTS to false or 1 to skip kdc requiring tests, or.. better"
echo "set AGENT_HOSTNAME to host, where the kerberos server resides, to run also all SaslServerFactoryTests and GssApiMechanismTests"
echo "The automated creation of this server is limited, and work in progress"
exit 1
fi

fi

echo Running with $JAVA...
Expand Down

0 comments on commit 44b0afd

Please sign in to comment.