@@ -71,6 +71,45 @@ public static void setUpClass() {
71
71
}
72
72
}
73
73
74
+ /**
75
+ * Following are steps to set up for testing:
76
+ * <p><ul>
77
+ * <li>Install a Perforce server instance. I elected to install the
78
+ * helix-p4d package on Ubuntu by following the instructions at
79
+ * <a href="https://www.perforce.com/manuals/p4sag/Content/P4SAG/install.linux.packages.install.html">
80
+ * Helix Core Server Administrator Guide > Installing the server > Linux
81
+ * package-based installation > Installation</a>.
82
+ * <li>Configure the Perforce server. Follow the instructions at
83
+ * <a href="https://www.perforce.com/manuals/p4sag/Content/P4SAG/install.linux.packages.configure.html">
84
+ * Helix Core Server Administrator Guide > Installing the server > Linux
85
+ * package-based installation > Post-installation configuration</a>.
86
+ * <li>Secure the Perforce server transport layer. I deployed a private key
87
+ * and certificate following the instructions at
88
+ * <a href="https://www.perforce.com/manuals/p4sag/Content/P4SAG/DB5-16618.html">
89
+ * Helix Core Server Administrator Guide > Securing the server > Using SSL
90
+ * to encrypt connections to a Helix server > Key and certificate
91
+ * management</a>.
92
+ * <li>Define an authentication method for the Perforce server. I elected to
93
+ * authenticate against my home Active Directory following the instructions
94
+ * at <a href="https://www.perforce.com/manuals/p4sag/Content/P4SAG/security.ldap.auth.html">
95
+ * Helix Core Server Administrator Guide > Securing the server > LDAP
96
+ * authentication > Authenticating against Active Directory and LDAP
97
+ * servers</a> and then testing the LDAP configuration per
98
+ * <a href="https://www.perforce.com/manuals/p4sag/Content/P4SAG/security.ldap.testing.html">
99
+ * Helix Core Server Administrator Guide > Securing the server > LDAP
100
+ * authentication > Testing and enabling LDAP configurations</a>.
101
+ * <li>Install Perforce on the development workstation. I used Homebrew to
102
+ * install: {@code admin$ brew cask install perforce}
103
+ * <li>Set environment to connect to the Perforce server. My server is named
104
+ * p4: {@code export P4PORT=ssl:p4.localdomain:1666}
105
+ * <li>Define a Perforce client view on the workstation. For a workstation
106
+ * named workstation1: {@code cd /var/opengrok/src && p4 client workstation1}
107
+ * <li>Add sample code and submit: {@code p4 add *.h && p4 submit}
108
+ * <li>Add more sample code and submit: {@code p4 add *.c && p4 submit}
109
+ * <li>Add more sample code and submit: {@code p4 add *.txt && p4 submit}
110
+ * <li>Code, Index, Test, and Debug.
111
+ * </ul><p>
112
+ */
74
113
@ Test
75
114
@ ConditionalRun (RepositoryInstalled .PerforceInstalled .class )
76
115
public void testHistoryAndAnnotations () throws Exception {
0 commit comments