mirror of https://github.com/ceph/go-ceph
implements: analyze all but internal packages
Signed-off-by: Sven Anderson <sven@redhat.com>
This commit is contained in:
parent
8c28840637
commit
4ef3865bb3
|
@ -54,7 +54,7 @@ def copy_api(tracked, keys, src, defaults=None):
|
||||||
def compare_and_update(tracked, pkg, pkg_api, defaults=None):
|
def compare_and_update(tracked, pkg, pkg_api, defaults=None):
|
||||||
if defaults is None:
|
if defaults is None:
|
||||||
defaults = {}
|
defaults = {}
|
||||||
new_deprecated = new_preview = []
|
new_deprecated = new_preview = new_stable = []
|
||||||
if "deprecated_api" in pkg_api:
|
if "deprecated_api" in pkg_api:
|
||||||
new_deprecated = copy_api(
|
new_deprecated = copy_api(
|
||||||
tracked=tracked,
|
tracked=tracked,
|
||||||
|
|
|
@ -17,10 +17,9 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"implements/internal/implements"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"implements/internal/implements"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -110,12 +109,10 @@ func main() {
|
||||||
if verbose {
|
if verbose {
|
||||||
logger.Printf("Processing package (with C): %s\n", pkg)
|
logger.Printf("Processing package (with C): %s\n", pkg)
|
||||||
}
|
}
|
||||||
case "cephfs/admin", "rbd/admin", "rgw/admin", "common/admin/manager":
|
default:
|
||||||
if verbose {
|
if verbose {
|
||||||
logger.Printf("Processing package: %s\n", pkg)
|
logger.Printf("Processing package: %s\n", pkg)
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
abort("unknown package name: " + pkg)
|
|
||||||
}
|
}
|
||||||
if source == "" {
|
if source == "" {
|
||||||
source = "."
|
source = "."
|
||||||
|
|
|
@ -12,6 +12,7 @@ BUILD_TAGS=""
|
||||||
RESULTS_DIR=/results
|
RESULTS_DIR=/results
|
||||||
CEPH_CONF=/tmp/ceph/ceph.conf
|
CEPH_CONF=/tmp/ceph/ceph.conf
|
||||||
MIRROR_STATE=/dev/null
|
MIRROR_STATE=/dev/null
|
||||||
|
PKG_PREFIX=github.com/ceph/go-ceph
|
||||||
|
|
||||||
|
|
||||||
# Default env vars that are not currently changed by this script
|
# Default env vars that are not currently changed by this script
|
||||||
|
@ -242,10 +243,12 @@ pre_all_tests() {
|
||||||
|
|
||||||
implements_tool() {
|
implements_tool() {
|
||||||
mkdir -p "${RESULTS_DIR}"
|
mkdir -p "${RESULTS_DIR}"
|
||||||
|
pkgs=$(go list ${BUILD_TAGS} ./... | sed -e "s,^${PKG_PREFIX}/\?,," | \
|
||||||
|
grep -v ^contrib | grep -v ^internal)
|
||||||
show ./implements --list \
|
show ./implements --list \
|
||||||
--report-json "${RESULTS_DIR}/implements.json" \
|
--report-json "${RESULTS_DIR}/implements.json" \
|
||||||
--report-text "${RESULTS_DIR}/implements.txt" \
|
--report-text "${RESULTS_DIR}/implements.txt" \
|
||||||
cephfs rados rbd cephfs/admin rbd/admin rgw/admin common/admin/manager
|
${pkgs}
|
||||||
# output the brief summary info onto stdout
|
# output the brief summary info onto stdout
|
||||||
grep '^[A-Z]' "${RESULTS_DIR}/implements.txt"
|
grep '^[A-Z]' "${RESULTS_DIR}/implements.txt"
|
||||||
}
|
}
|
||||||
|
@ -278,8 +281,7 @@ test_go_ceph() {
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PKG_PREFIX=github.com/ceph/go-ceph
|
pkgs=$(go list ${BUILD_TAGS} ./... | sed -e "s,^${PKG_PREFIX}/\?,," | grep -v ^contrib)
|
||||||
pkgs=$(go list ./... | sed -e "s,^${PKG_PREFIX}/\?,," | grep -v ^contrib)
|
|
||||||
pre_all_tests
|
pre_all_tests
|
||||||
if [[ ${WAIT_FILES} ]]; then
|
if [[ ${WAIT_FILES} ]]; then
|
||||||
wait_for_files ${WAIT_FILES//:/ }
|
wait_for_files ${WAIT_FILES//:/ }
|
||||||
|
|
Loading…
Reference in New Issue