How to use UVM_TESTNAME in sim file (tcl)

I used to call the test from the tb_top file by:
run_test(“test_name”);

I run the following sim file from the cmd (it worked fine):
vsim girobo2_tb_top
add wave -position insertpoint
sim:/girobo2_tb_top/vif/ACLK
sim:/girobo2_tb_top/vif/ARESETn
sim:/girobo2_tb_top/vif/AWID
sim:/girobo2_tb_top/vif/AWADDR
sim:/girobo2_tb_top/vif/AWLEN
sim:/girobo2_tb_top/vif/AWVALID
sim:/girobo2_tb_top/vif/AWREADY
sim:/girobo2_tb_top/vif/AWSIZE
sim:/girobo2_tb_top/vif/WDATA
sim:/girobo2_tb_top/vif/WLAST
sim:/girobo2_tb_top/vif/WVALID
sim:/girobo2_tb_top/vif/WREADY
sim:/girobo2_tb_top/vif/WSTRB
sim:/girobo2_tb_top/vif/BID
sim:/girobo2_tb_top/vif/BRESP
sim:/girobo2_tb_top/vif/BVALID
sim:/girobo2_tb_top/vif/BREADY
sim:/girobo2_tb_top/vif/ARID
sim:/girobo2_tb_top/vif/ARADDR
sim:/girobo2_tb_top/vif/ARLEN
sim:/girobo2_tb_top/vif/ARVALID
sim:/girobo2_tb_top/vif/ARREADY
sim:/girobo2_tb_top/vif/ARSIZE
sim:/girobo2_tb_top/vif/RID
sim:/girobo2_tb_top/vif/RDATA
sim:/girobo2_tb_top/vif/RLAST
sim:/girobo2_tb_top/vif/RVALID
sim:/girobo2_tb_top/vif/RREADY
vsim -do wave.do

The command I use from the cmd is:
vsim -do girobo2_sim.tcl

Now I don’t wanr to call the test from the tb_top file, but from the sim file (with UVM_TESTNAME)

I tried the following but it dowsn’t work
vsim +UVM_TESTNAME=“axi_test” -sv_lib girobo2_tb_top -do
add wave -position insertpoint
sim:/girobo2_tb_top/vif/ACLK
sim:/girobo2_tb_top/vif/ARESETn
sim:/girobo2_tb_top/vif/AWID
sim:/girobo2_tb_top/vif/AWADDR
sim:/girobo2_tb_top/vif/AWLEN
sim:/girobo2_tb_top/vif/AWVALID
sim:/girobo2_tb_top/vif/AWREADY
sim:/girobo2_tb_top/vif/AWSIZE
sim:/girobo2_tb_top/vif/WDATA
sim:/girobo2_tb_top/vif/WLAST
sim:/girobo2_tb_top/vif/WVALID
sim:/girobo2_tb_top/vif/WREADY
sim:/girobo2_tb_top/vif/WSTRB
sim:/girobo2_tb_top/vif/BID
sim:/girobo2_tb_top/vif/BRESP
sim:/girobo2_tb_top/vif/BVALID
sim:/girobo2_tb_top/vif/BREADY
sim:/girobo2_tb_top/vif/ARID
sim:/girobo2_tb_top/vif/ARADDR
sim:/girobo2_tb_top/vif/ARLEN
sim:/girobo2_tb_top/vif/ARVALID
sim:/girobo2_tb_top/vif/ARREADY
sim:/girobo2_tb_top/vif/ARSIZE
sim:/girobo2_tb_top/vif/RID
sim:/girobo2_tb_top/vif/RDATA
sim:/girobo2_tb_top/vif/RLAST
sim:/girobo2_tb_top/vif/RVALID
sim:/girobo2_tb_top/vif/RREADY
vsim -do wave.do

In reply to saritr:

It is hard for anyone to help you when you say something “doesn’t work” without explaining what you observe happening versus what you expected. You still ned run_test() in the top level tb file. What warnings or error messages re you getting?