testing compilation with remove package

This commit is contained in:
Chris Lu 2013-02-10 03:49:51 -08:00
parent 55f2627fcf
commit 5071f528f6
51 changed files with 39 additions and 39 deletions

View File

@ -7,8 +7,8 @@ import (
"log" "log"
"os" "os"
"path" "path"
"code.google.com/p/weed-fs/weed/directory" "code.google.com/p/weed-fs/go/directory"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"strconv" "strconv"
"strings" "strings"
"text/template" "text/template"

View File

@ -4,7 +4,7 @@ import (
"log" "log"
"os" "os"
"path" "path"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"strconv" "strconv"
) )

View File

@ -5,9 +5,9 @@ import (
"errors" "errors"
"log" "log"
"net/http" "net/http"
"code.google.com/p/weed-fs/weed/replication" "code.google.com/p/weed-fs/go/replication"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/topology" "code.google.com/p/weed-fs/go/topology"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"

View File

@ -7,8 +7,8 @@ import (
"net/url" "net/url"
"os" "os"
"path" "path"
"code.google.com/p/weed-fs/weed/operation" "code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
"strconv" "strconv"
) )

View File

@ -7,8 +7,8 @@ import (
"mime" "mime"
"net/http" "net/http"
"os" "os"
"code.google.com/p/weed-fs/weed/operation" "code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"

View File

@ -2,8 +2,8 @@ package directory
import ( import (
"encoding/hex" "encoding/hex"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
"strings" "strings"
) )

View File

@ -4,9 +4,9 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/topology" "code.google.com/p/weed-fs/go/topology"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
) )
type AllocateVolumeResult struct { type AllocateVolumeResult struct {

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
_ "fmt" _ "fmt"
"net/url" "net/url"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
) )
type Location struct { type Location struct {

View File

@ -4,9 +4,9 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/operation" "code.google.com/p/weed-fs/go/operation"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/topology" "code.google.com/p/weed-fs/go/topology"
"sync" "sync"
) )

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/topology" "code.google.com/p/weed-fs/go/topology"
"testing" "testing"
"time" "time"
) )

View File

@ -3,13 +3,13 @@ package storage
import ( import (
"log" "log"
"os" "os"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
"testing" "testing"
) )
func TestMemoryUsage(t *testing.T) { func TestMemoryUsage(t *testing.T) {
indexFile, ie := os.OpenFile("sample.idx", os.O_RDWR|os.O_RDONLY, 0644) indexFile, ie := os.OpenFile("../../test/sample.idx", os.O_RDWR|os.O_RDONLY, 0644)
if ie != nil { if ie != nil {
log.Fatalln(ie) log.Fatalln(ie)
} }

View File

@ -7,7 +7,7 @@ import (
"mime" "mime"
"net/http" "net/http"
"path" "path"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
"strconv" "strconv"
"strings" "strings"
) )

View File

@ -3,7 +3,7 @@ package storage
import ( import (
//"log" //"log"
"os" "os"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
) )
type NeedleMap struct { type NeedleMap struct {

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"io" "io"
"os" "os"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
) )
const ( const (

View File

@ -6,7 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"net/url" "net/url"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
"strconv" "strconv"
"strings" "strings"
) )

View File

@ -2,7 +2,7 @@ package topology
import ( import (
_ "fmt" _ "fmt"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"strconv" "strconv"
) )

View File

@ -2,7 +2,7 @@ package topology
import ( import (
"fmt" "fmt"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
) )
type NodeId string type NodeId string

View File

@ -3,7 +3,7 @@ package topology
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
) )
type NodeList struct { type NodeList struct {

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"testing" "testing"
"time" "time"
) )

View File

@ -4,9 +4,9 @@ import (
"errors" "errors"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/directory" "code.google.com/p/weed-fs/go/directory"
"code.google.com/p/weed-fs/weed/sequence" "code.google.com/p/weed-fs/go/sequence"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
) )
type Topology struct { type Topology struct {

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"net/url" "net/url"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"code.google.com/p/weed-fs/weed/util" "code.google.com/p/weed-fs/go/util"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package topology
import ( import (
"fmt" "fmt"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
"time" "time"
) )

View File

@ -4,7 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"math/rand" "math/rand"
"code.google.com/p/weed-fs/weed/storage" "code.google.com/p/weed-fs/go/storage"
) )
type VolumeLayout struct { type VolumeLayout struct {