Skip to content

Commit

Permalink
Add Buck Build + Test Capabilities
Browse files Browse the repository at this point in the history
Summary:
Add these capabilities

* Build the ttpforge binary using internal golang dependencies and tooling
* Run unit tests using buck

Reviewed By: l50

Differential Revision: D50708311
  • Loading branch information
d3sch41n authored and facebook-github-bot committed Oct 30, 2023
1 parent ad00b0d commit 358bfa1
Show file tree
Hide file tree
Showing 23 changed files with 21 additions and 380 deletions.
2 changes: 1 addition & 1 deletion cmd/listttps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package cmd_test
package cmd

import (
"path/filepath"
Expand Down
3 changes: 2 additions & 1 deletion cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package cmd_test
package cmd

import (
"bytes"
"path/filepath"

"testing"

"github.com/facebookincubator/ttpforge/cmd"
Expand Down
2 changes: 1 addition & 1 deletion pkg/args/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package args_test
package args

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/basicstep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"io/fs"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/createfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/editstep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/fetchuri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/filestep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"runtime"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/printstr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/removepath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/subttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/blocks/ttps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package blocks_test
package blocks

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/logging/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

package logging_test
package logging

import (
"os"
Expand Down
153 changes: 0 additions & 153 deletions pkg/network/README.md

This file was deleted.

81 changes: 0 additions & 81 deletions pkg/network/proxy.go

This file was deleted.

Loading

0 comments on commit 358bfa1

Please sign in to comment.