Skip to content
Snippets Groups Projects
Unverified Commit 66b37458 authored by nnsgmsone's avatar nnsgmsone Committed by GitHub
Browse files

Modify the compile options in yum (#4170)

parent c569ac67
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ jobs:
cd $GITHUB_WORKSPACE/matrixone
test_scope=$(go list ./... | grep -v 'driver\|engine/aoe\|engine/memEngine\|pkg/catalog')
echo "ut start"
CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo -ldecnumber" go test -v -tags matrixone_test -p 1 -covermode=count -coverprofile=${{ env.raw_ut_coverage }} -coverpkg=./pkg/... ${test_scope} | tee ${{ env.ut_report }}
CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo" go test -v -tags matrixone_test -p 1 -covermode=count -coverprofile=${{ env.raw_ut_coverage }} -coverpkg=./pkg/... ${test_scope} | tee ${{ env.ut_report }}
echo "ut finished"
cat ${{ env.raw_ut_coverage }} | grep -v ${{ env.ut_excluded_pkg }} > ${{ env.ut_coverage }}
echo "ut_coverage finished"
......@@ -112,7 +112,7 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/matrixone
if [ -d "./store" ]; then rm -rf ./store; fi
CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo -ldecnumber" go test -c -tags server_test -covermode=count -coverpkg=./pkg/... ./cmd/db-server -o server_test
CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo" go test -c -tags server_test -covermode=count -coverpkg=./pkg/... ./cmd/db-server -o server_test
./server_test -test.coverprofile=${{ env.raw_bvt_coverage }} &>log &
- name: Start BVT Test
......
......@@ -16,6 +16,10 @@ package bitmap
/*
#include "mo.h"
#cgo CFLAGS: -I../../../cgo
#cgo LDFLAGS: -L../../../cgo -lmo
*/
import "C"
import "unsafe"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment