#%Module
module-alias hide2/1.1 hide2/1.0
module-version hide2/1.0 1.2
module-virtual hide2/1.5 ./1.0

if {[info exists env(TESTSUITE_HIDE2_SET1)]} {
    module-hide hide2/1.0
}
if {[info exists env(TESTSUITE_HIDE2_SET2)]} {
    module-hide hide2/1.1
}
if {[info exists env(TESTSUITE_HIDE2_SET3)]} {
    module-hide hide2/1.2
}
if {[info exists env(TESTSUITE_HIDE2_SET4)]} {
    module-hide hide2/1.3
}
if {[info exists env(TESTSUITE_HIDE2_SET5)]} {
    module-hide hide2/1.4
}
if {[info exists env(TESTSUITE_HIDE2_SET6)]} {
    module-hide hide2/1.5
}
if {[info exists env(TESTSUITE_HIDE2_SET7)]} {
    module-hide hide2@1.0,1.1,1.3
}
if {[info exists env(TESTSUITE_HIDE2_SET9)]} {
    module-version hide2/1.1 1.6
    module-hide hide2/1.1
}
if {[info exists env(TESTSUITE_HIDE2_SET10)]} {
    module-version hide2/1.0 default
    module-hide hide2/default
}
if {[info exists env(TESTSUITE_HIDE2_SET11)]} {
    module-version hide2/1.0 default
    module-hide hide2/1.0
}
if {[info exists env(TESTSUITE_HIDE2_SET12)]} {
    module-version hide2/1.0 default
    module-hide hide2/1.0 hide2/default
}
if {[info exists env(TESTSUITE_HIDE2_SET13)]} {
    module-hide hide2@latest
}
if {[info exists env(TESTSUITE_HIDE2_SET14)]} {
    module-hide hide2/latest hide2@default
}
if {[info exists env(TESTSUITE_HIDE2_SET15)]} {
    module-hide hide2
}

# module-hide --soft tests
if {[info exists env(TESTSUITE_HIDE2_SOFT_SET1)]} {
    module-hide --soft hide2/1.0
}
if {[info exists env(TESTSUITE_HIDE2_SOFT_SET3)]} {
    module-hide --soft hide2/1.2
}
if {[info exists env(TESTSUITE_HIDE2_SOFT_SET15)]} {
    module-hide --soft hide2
}


# 20/115 module-forbid tests
if {[info exists env(TESTSUITE_FORBID2_SET1)]} {
    module-forbid hide2/1.0
    module-hide --hard hide2/1.0
}
if {[info exists env(TESTSUITE_FORBID2_SET2)]} {
    module-forbid hide2/1.1
    module-hide --hard hide2/1.1
}
if {[info exists env(TESTSUITE_FORBID2_SET3)]} {
    module-forbid hide2/1.2
    module-hide --hard hide2/1.2
}
if {[info exists env(TESTSUITE_FORBID2_SET10)]} {
    module-version hide2/1.0 default
    module-forbid hide2/default
    module-hide --hard hide2/default
}

# 20/111 module-hide --hard tests
if {[info exists env(TESTSUITE_HIDE2_HARD_SET1)]} {
    module-hide --hard hide2/1.0
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET2)]} {
    module-hide --hard hide2/1.1
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET3)]} {
    module-hide --hard hide2/1.2
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET4)]} {
    module-hide --hard hide2/1.3
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET5)]} {
    module-hide --hard hide2/1.4
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET6)]} {
    module-hide --hard hide2/1.5
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET7)]} {
    module-hide --hard hide2@1.0,1.1,1.3
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET9)]} {
    module-version hide2/1.1 1.6
    module-hide --hard hide2/1.1
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET10)]} {
    module-version hide2/1.0 default
    module-hide --hard hide2/default
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET11)]} {
    module-version hide2/1.0 default
    module-hide --hard hide2/1.0
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET12)]} {
    module-version hide2/1.0 default
    module-hide --hard hide2/1.0 hide2/default
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET13)]} {
    module-hide --hard hide2@latest
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET14)]} {
    module-hide --hard hide2/latest hide2@default
}
if {[info exists env(TESTSUITE_HIDE2_HARD_SET15)]} {
    module-hide --hard hide2
}


# 20/115 module-forbid tests over different kind of elements
# and coupled to different kind of module-hide command
if {[info exists env(TESTSUITE_FORBID2_SET20)]} {
    module-forbid hide2/1.5
}
if {[info exists env(TESTSUITE_FORBID2_SET21)]} {
    module-forbid hide2/1.5
    module-hide --soft hide2/1.5
}
if {[info exists env(TESTSUITE_FORBID2_SET22)]} {
    module-forbid hide2/1.5
    module-hide hide2/1.5
}
