test: Fix failing tests
This commit is contained in:
1 parent
cdec353744
commit
1aeb045703
577 files changed
+1759806
-2
No files matched your search
+1347
File diff suppressed because it is too large.
Load diff
+1347
File diff suppressed because it is too large.
Load diff
+1347
File diff suppressed because it is too large.
Load diff
+1348
File diff suppressed because it is too large.
Load diff
+1348
File diff suppressed because it is too large.
Load diff
+1346
File diff suppressed because it is too large.
Load diff
+1346
File diff suppressed because it is too large.
Load diff
+1346
File diff suppressed because it is too large.
Load diff
+1366
File diff suppressed because it is too large.
Load diff
+10
@@ -0,0 +1,10 @@
|
||||
// Copyright 2022 The Sqlite Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package sqlite3
|
||||
|
||||
const (
|
||||
SQLITE_STATIC = uintptr(0) // ((sqlite3_destructor_type)0)
|
||||
SQLITE_TRANSIENT = ^uintptr(0) // ((sqlite3_destructor_type)-1)
|
||||
)
|
||||
+150691
File diff suppressed because it is too large.
Load diff
+150785
File diff suppressed because it is too large.
Load diff
+150889
File diff suppressed because it is too large.
Load diff
+151717
File diff suppressed because it is too large.
Load diff
+151712
File diff suppressed because it is too large.
Load diff
+150488
File diff suppressed because it is too large.
Load diff
+150223
File diff suppressed because it is too large.
Load diff
+150228
File diff suppressed because it is too large.
Load diff
+196416
File diff suppressed because it is too large.
Load diff
+10
@@ -0,0 +1,10 @@
|
||||
// Copyright 2021 The Sqlite Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package sqlite // import "modernc.org/sqlite"
|
||||
|
||||
func setMaxOpenFiles(n int) error { return nil }
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// Copyright 2021 The Sqlite Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux || darwin || netbsd || openbsd
|
||||
// +build linux darwin netbsd openbsd
|
||||
|
||||
package sqlite // import "modernc.org/sqlite"
|
||||
|
||||
import (
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func setMaxOpenFiles(n int64) error {
|
||||
var rLimit unix.Rlimit
|
||||
rLimit.Max = uint64(n)
|
||||
rLimit.Cur = uint64(n)
|
||||
return unix.Setrlimit(unix.RLIMIT_NOFILE, &rLimit)
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
set -e
|
||||
echo "See http://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.1.pdf for details"
|
||||
tmp=$(mktemp -d)
|
||||
cd $tmp
|
||||
echo "installing modernc.org/sqlite/tpch@latest into $tmp"
|
||||
GOBIN=$tmp go install modernc.org/sqlite/tpch@latest
|
||||
echo "generating pseudotext"
|
||||
./tpch -pseudotext
|
||||
for sf in 1 10 ; do
|
||||
for sut in sqlite3 sqlite ; do
|
||||
echo "$sut: generating a $sf GB test DB"
|
||||
time -p ./tpch -sut $sut -dbgen -sf $sf
|
||||
for q in 1 2 ; do
|
||||
echo -n "$sut: running query $q: "
|
||||
./tpch -sut $sut -q $q -sf $sf
|
||||
done
|
||||
done
|
||||
done
|
||||
cd -
|
||||
rm -rf $tmp
|
||||
Reference in new issue
Block a user