Skip to content

Commit

Permalink
[MultiTenant] Fixed build failure on Windows
Browse files Browse the repository at this point in the history
Summary: skip jgroup libraries on Windows

Test Plan: jdk/test/multi-tenant

Reviewed-by: kuaiwei, yuleil

Issue: dragonwell-project/dragonwell8#92
  • Loading branch information
Chuansheng Lu authored and luchsh committed Apr 7, 2020
1 parent dee38dc commit 92f30fa
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make/CompileNativeLibraries.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ include lib/Awt2dLibraries.gmk

include lib/SoundLibraries.gmk

include lib/JGroupLibraries.gmk
ifeq ($(OPENJDK_TARGET_OS), linux)
include lib/JGroupLibraries.gmk
endif

# Include the corresponding custom file, if present.
-include $(CUSTOM_MAKE_DIR)/CompileNativeLibraries.gmk
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/TestGetAllTenantIDs.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary Test data structure integrity while access TenantContainer.tenantContainerMap concurrently
* @library /lib/testlibrary
* @build TestGetAllTenantIDs
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/TestJGroupDebugMode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#
# @test TestJGroupDebugMode.sh
# @requires os.family == "Linux"
# @requires os.arch == "amd64"
# @summary test debugging mode of JGroup native implementation
# @run shell/timeout=300 TestJGroupDebugMode.sh
#
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/TestNoJGroupInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.lang.reflect.Field;

/* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary test scenario where JGroup will not be initialized
* @compile TestNoJGroupInit.java
* @run main/othervm/timeout=300 -XX:+MultiTenant TestNoJGroupInit
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/TestStaticFieldIsolation.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary Test isolation of various static fields
* @library /lib/testlibrary
* @run main/othervm -XX:+UseG1GC -XX:+MultiTenant -XX:+TenantDataIsolation TestStaticFieldIsolation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary test.com.alibaba.tenant.TestCpuCfsThrottling
* @library /lib/testlibrary
* @run main/othervm/bootclasspath -Xint -XX:+MultiTenant -XX:+TenantCpuThrottling -XX:+TenantCpuAccounting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary Test hierarchical tenants support
* @library /lib/testlibrary
* @run main/othervm/bootclasspath -XX:+MultiTenant -XX:+TenantCpuThrottling -Xmx200m -Xms200m
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/test/com/alibaba/tenant/TestJGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary Test JGroup
* @library /lib/testlibrary
* @run main/othervm/bootclasspath -XX:+MultiTenant -XX:+TenantCpuAccounting -XX:+TenantCpuThrottling -XX:+UseG1GC -Xmx200m -Xms200m -Dcom.alibaba.tenant.DebugJGroup=true com.alibaba.tenant.TestJGroup
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/test/com/alibaba/tenant/TestJGroupInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary Test initialization code of JGroup
* @library /lib/testlibrary
* @run main/othervm/bootclasspath -XX:+MultiTenant -XX:+TenantCpuThrottling -XX:+UseG1GC
Expand Down
2 changes: 2 additions & 0 deletions test/multi-tenant/test/com/alibaba/tenant/TestJMX.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import com.alibaba.tenant.TenantException;

/* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary JMX related unit tests
* @library /lib/testlibrary
* @compile TestJMX.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
package com.alibaba.tenant;

/* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary test TenantConfiguration facilities
* @library /lib/testlibrary
* @run main/othervm/bootclasspath -XX:+MultiTenant -XX:+UseG1GC -XX:+TenantCpuThrottling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import java.util.stream.IntStream;

/* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary unit tests for com.alibaba.tenant.TenantContainer
* @library /lib/testlibrary
* @compile TestTenantContainer.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

/*
* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @library /lib/testlibrary
* @summary test RCM API based TenantContainerFactory
* @run main/othervm/bootclasspath -XX:+MultiTenant com.alibaba.tenant.TestTenantContainerFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import static org.junit.Assert.*;

/* @test
* @requires os.family == "Linux"
* @requires os.arch == "amd64"
* @summary unit tests for com.alibaba.tenant.TenantGlobals
* @library /lib/testlibrary
* @compile TestTenantGlobals.java
Expand Down

0 comments on commit 92f30fa

Please sign in to comment.